headzoo / surf

Stateful programmatic web browsing in Go.
MIT License
1.48k stars 159 forks source link

browser.Body() Error, replace with Text() #85

Open nilsocket opened 6 years ago

nilsocket commented 6 years ago

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