limnoria-plugins icon indicating copy to clipboard operation
limnoria-plugins copied to clipboard

Tweety/SpiffyTitles - Twitter Events

Open fred0r opened this issue 4 years ago • 3 comments

Bot isnt able to announce a 'Twitter-Event' URL - https://twitter.com/i/events/1272797478157299712 :

ERROR 2020-06-17T01:59:14 SpiffyTitles: Twitter Error: 404 Client Error: Not Found for url: https://publish.twitter.com/oembed?url=https://twitter.com/i/events/1272797478157299712&omit_script=True
ERROR 2020-06-17T01:59:14 SpiffyTitles: Unable to parse title from html response for https://twitter.com/i/events/1272797478157299712        

Bot just shows the default Errormsg in IRC.

fred0r avatar Jun 17 '20 00:06 fred0r

The oembed API endpoint that SpiffyTitles uses doesn't handle events and so would require authenticating to the full Twitter API. Support for this would be easier to add to Tweety since that already handles Twitter authentication. When i fix the Twitch handler it will require adding OAuth support, which will open the door to expanding this functionality to the Twitter handler as well.

https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-event

oddluck avatar Jun 17 '20 00:06 oddluck

Would it be enough to set supybot.plugins.SpiffyTitles.twitter.enabled to False after enabling the Twitter-Plugin - or must the Twitter-Urls be also added to supybot.plugins.SpiffyTitles.ignoredDomainPattern ?

fred0r avatar Jun 17 '20 01:06 fred0r

Yes, if you don't want the default handler to handle those URLs either you'll need to set ignoredDomainPattern

oddluck avatar Jun 17 '20 01:06 oddluck

Twitter no longer offers free API access, plugin officially terminated.

oddluck avatar Apr 29 '23 23:04 oddluck