Add custom output formats for sites to UrlGrabber plugin
Frost opened this issue · comments
Given: https://twitter.com/#!/eslinge/status/125580490223783937
Current output in channel:
<Hink> Frost's URL title: Twitter | http://bit.ly/qpkEVv
What would be awesome:
<Hink> [Twitter] @eslinge: Vidi Vici Veni - I saw, I conquered, I came. | http://bit.ly/qpkEVv
That is, the bot should make a request to the twitter api and extract the information that way.
See https://dev.twitter.com/docs/api/1/get/statuses/show/%3Aid for details.
More requested formats:
<@Nihplod > http://open.spotify.com/track/6TZHtS4pLhJhSEfyV7bmyj
Desired output:
<Hink> [Spotify] Eskmo - Cloudlight | http://bit.ly/qh66YG
Lookups can be made using the spotify metadata API at http://developer.spotify.com/en/metadata-api/lookup/track/, and this way, Hink could also trigger on spotify URI's (e.g. spotify:track:6TZHtS4pLhJhSEfyV7bmyj).
The twitter format is now implemented.
I rewrote much of the url_grabber plugin in doing so. That plugin is much more readable now.