Question: This is a javascript program that uses twitter API to scrape tweets off of a user's profile and output the text. I only want this

This is a javascript program that uses twitter API to "scrape" tweets off of a user's profile and output the text. I only want this script to output the lines that do not start with "RT @." In other words, I only want the program to output the tweets tweeted by the profile and not to output the retweets on the profile. This needs to work for other situations so setting i to "9" won't help. Please see the code and the output below.

This is a javascript program that uses twitter API to "scrape" tweets

Here is the output of the code above:

off of a user's profile and output the text. I only want

I only want the output to output the lines that do not contain "RT @"!!! Please help!!

var handle = 'myiostsoul'; T.get('statuses/user_timeline', ( screen_name: handle, count: 20, exclude_replies: true, function (err, data, response) if (data) for (var 1.0 ; 1data.length; 1++) console.log (data[i].text); L1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!