badoux / goscraper

Golang pkg to quickly return a preview of a webpage (title/description/images)
MIT License
108 stars 38 forks source link

Add preferTag option to `Scrape` function #8

Open perrito666 opened 5 years ago

perrito666 commented 5 years ago

Add the possibility to get the title from the tag even if the og:title meta tag is present since sometimes it can be a bit disapointing in terms of info. Additionally added a few comments to make lint happier