PinPopular “Twitter tweet” bug fix
@PinPopular is a Twitter bot for tweeting the most popular posts from the Pinboard.in.
Recently some nice people notify me on Twitter that often there are some tweet with no context at all , then I found that the title of the image post from Twitter in Pinboard is just “Twitter”, like this:
Twitter pic.twitter.com/KGgzOG8iF4— Pinboard Popular (@PinPopular) April 1, 2016
PinPopular’s data is actually crawl from the Pinboard Popular page’s rss feed. After checked the feed then I found that some post’s title is just “Twitter” like this:
<item rdf:about="https://twitter.com/Snowden/status/716683740903247873/photo/1"> <title>Twitter</title> <dc:date>2016-04-05T14:12:01+00:00</dc:date> <link> https://twitter.com/Snowden/status/716683740903247873/photo/1 </link> <dc:creator>dalcrose</dc:creator> <description> <![CDATA[ Biggest leak in the history of data journalism just went live, and it's about corruption. ]]> </description> <dc:source>http://twitter.com/</dc:source> <dc:identifier>http://pinboard.in/u:dalcrose/b:5a523455b927/</dc:identifier> </item>
The solution is using the description instead of the “Twitter” title for the tweet content, it seems working good now.
I also appreciate warm, soft, and blue. pic.twitter.com/uS0LbCbiYd— Pinboard Popular (@PinPopular) April 4, 2016
P.S. I also transfered the PinPopular from the Linode where it lives for years to DigitalOcean now.