Twitter Feeds

2015

The step-by-step guide explains how you can easily create Twitter RSS feeds for the new Twitter API with the help of Twitter widgets and a Google Script.

Twitter does not offer RSS Feeds but there is a simple solution that you can use to generate RSS feeds for your various Twitter streams including Twitter search results, user timelines, favorites, lists and even the new Twitter collections.

RSS feeds are essential if you need to use your Twitter data elsewhere. For instance, you cannot create recipes in IFTTT that get triggered when there’s a new @mentions or a new tweet is added to search results. You cannot import your Twitter timeline automatically into your blog. You cannot follow Twitter feeds in an RSS reader like Feedly or even Google Docs.

The trick is simple. Twitter offers JavaScript based widgets to help you embed user timelines and Twitter search results into your website. What we’ll do is transform these HTML Twitter widgets into regular XML Feeds with the help of a Google Script. Here’s a step-by-step guide:

  1. On the Twitter website, go to Settings -> Widgets (link) and create a new widget. You can create widgets for user timelines, favorites, Twitter lists, collections and search results.
  2. Once the new widget is published, make a note of the widget ID which you can find in the URL of the widget. It is a long string of numbers.
  3. Click here to make a copy of the Google Script and choose Run -> Twitter_RSS to authorize the script. You’ve to do this only once.
  4. Inside the Script Editor, go to Publish -> Deploy as Web App and click the “Save New Version” button. Set Anyone, including Anonymous under Who has access to the app and hit Deploy.

Google Script will now create a unique URL for your RSS web app that will look something like .

Just append the Twitter Widget ID (created in Step 2) to this URL and your RSS feed for Twitter is ready. For instance, if the Twitter widget ID is 123456, your RSS Feed URL would be:

The Twitter RSS feed will have all details about the tweet including the date when that tweet was posted, the full name, user name and profile picture of the Twitter user and the actual text of the tweet. You can see some real examples of Twitter RSS feeds here and here.

You might also like
Add Twitter Feed to Google Site
Add Twitter Feed to Google Site
08 - Twitter Marketing - Twitter Feed By Abdelkarim Habbou
08 - Twitter Marketing - Twitter Feed By Abdelkarim Habbou ...
Twitter feed asks for drunken UNH pics
Twitter feed asks for drunken UNH pics
Related Posts