We now have a news bot that tweets news (or posts status updates) on its own timeline. We will look at how to set it to run on a regular basis in a little while. Let us now build a more interesting bot that can tweet to its followers using the news stories that they might like. In other words, let's personalize the news:
- Let's assume that we have information about the users and their interests. Add the following to the tweeter.js file. For now, we are hardcoding the user interests information into the code itself. Later we will see how they can be stored and retrieved from a database:
var userInterests = [{'screen_name':'srinivasancj',
'user_interest': 'technology'}];
- Create a tweetUserSpecificNews module that uses userInterests to get the...