bbriggs / bitbot

A golang IRC bot
MIT License
13 stars 15 forks source link

Specific parsers for youtube and twitter #215

Open m-242 opened 4 years ago

m-242 commented 4 years ago

Due to YouTube and Twitter generating page title with JavaScript, the URL reader fails to find a title.

Because of how often pages of these two sites are linked, we can afford and need parsers specific to these.

Note: Both provide oembed pages providing information on pages sending back information about a page in json. Youtube's is at : https://www.youtube.com/oembed?url={url} Twitter's is at : https://publish.twitter.com/oembed?url={url}