surf
surf copied to clipboard
browser.Body() Error, replace with Text()
Open this page,
link := https://player.vimeo.com/video/244405542/config
assuming,
bow := surf.NewBrowser(); bow.Open(link); res := bow.Body()
In here res is parsed wrongly, it's better to make
bow.Body()
return doc.Find("body").Text()
Edit:
This works only for this document and for other documents it seems to include the rest of body
element.
Problem in parsing is with the double quotes for video->embed_code object
Thank you