RSS feed only showing top 20 feeds of twitter account - twitter

My account has over 450 tweets but when I try to fetch it's rss feed it's only giving me latest 20feeds. Is there any way to fetch all of tweets together?

You can fetch up to 200 tweets on a single RSS feed.
http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=rvn&count=200
200 is the API limit. But you can add a page number to get past 200:
http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=rvn&count=200&page=2
which will display tweets 201 to 401. Also, the Twitter profile should not be private.
Check the documentation at:
http://dev.twitter.com/doc/get/statuses/user_timeline

I believe by default Twitter returns top 20 records.
What are you trying to do? If you are trying some library to query RSS feed, then I am sure that library will have option to specify that you wish to retrieve more than 20 records.

A twitter's user RSS feed is limited to the last 20 tweets, as far as I know. I don't think there's any parameter you can pass to increase the count. If you want to fetch more tweets, you'd have to use the API rather than the RSS feed. Even that won't go back infinitely in history, though -- once you're over some set limit (though I can't remember what it is off-hand) there's no way of retrieving older tweets.

Related

Get tweets from a keyword without any api as there is a restiction of 450

Using the url I am getting the tweets for the keywords I want a search in the tweeter
https://twitter.com/search-home
Now is there any url which I can call which will return me the json so that I can parse it and display the tweets to the user in his mobile?
Like this url
http://search.twitter.com/search.json?rpp=50&q=abelvros
but it gives me an error.
The Twitter API has certain restrictions regarding the time and amount of data.
Take a look:
https://dev.twitter.com/docs/rate-limiting/1.1/limits
https://dev.twitter.com/docs/rate-limiting/1.1
There's absolutely nothing you can legally do to get around it.

What is the best approach to working out if I have retweeted a tweet from another user, via the Twitter API?

So, I am currently working on an application that allows me to search journalists and view their contact details including, among other things, their latest tweets.
Calling the Twitter API is no problem at all, and I have a list of tweets for the current journo showing up fine. However, I am trying to decide the best approach to seeing if I (the user logged into our application) have retweeted any of the journo's tweets, so that I can display the tweet as having been retweeted.
Looking at the API documentation, I am looking into the following options:
1 - Use /statuses/retweeted_by_me to get the list of tweets that I
have retweeted, specifying max_id to be the highest id from the
list of tweets for the journo I am looking at. What I am not sure of
here is if the max_id is going to limit by the max id of my tweets or
the max id of the retweeted tweets.
2 - Use /statuses/:id/retweeted_by for each of the journo's tweets to
get a list of all the users who have retweeted that tweet and to check to
see if my user is in the returned list of users. Downfalls of this is that there
could be thousands of retweeters and I can only return a maximum of
100 at a time. That could mean a lot of requests just to find if I
retweeted one tweet. This also means that I need to do this for each
of the journo's tweets as opposed to getting the list of all my
rewteets above.
3 - Use /statuses/retweets/:id to get a list of the retweets for
each of the journo's tweets. This option has the same limitations as
#2.
I'm currently leaning towards #1, however, I'm not sure as yet if this will work. I need to do some more investigation. In the mean time, my question to you is:
What is the best approach to working out if I have retweeted a tweet from another user?
Ok, so I must have been having a brain fart moment when looking into this yesterday. It occurred to me this morning that you can simply make an authenticated call to /statuses/user_timeline which will set the retweeted property to true if you have retweeted that tweet.
Simples.

What is the best way to get 24 hours worth of a user's Twitter feed?

Using the Twitter API, what's the best way to collect 24 hours of a user's Twitter feed? In other words I want to collect every tweet that showed up in my personal Twitter stream (those tweets posted by people I'm following) over the course of 24 hours.
Does the API allow you to get that many tweets? Is it possible to accomplish this without using the streaming (real-time) API?
it is possible, and I have been doing it for some testing over the last few days. If you have a look at the Streaming API Methods page on Twitter, there is a mention of the filter stream. Read up on the "follow" method, which takes a text file with the IDs of the users you want to watch (can also be gotten though GET Friends and GET Followers). It will start streaming JSON back to you. Using CURL, you can stream direct to a file and then use that for later. I ran it last night on the sample stream and got back about 1.7Gb of Tweets in about 5 hours (but that's a 5% "sample" of tweets). I will be using this for testing...

Pulling large number of tweets by id

I have a list of 5500 tweet ids. For each tweet id, I'm downloading the associated tweet text. The ids are non-sequential and from many different users.
The only API option I see for pulling a specific tweet is GET statuses/show/:id.
That gives only a tweet at a time. With rate limiting of 350 API calls / hr, that means ~16 hrs to download the data.
Is there an API call or better technique that I'm missing?
You can buy tweets from GNIP.
No. I'm afraid none. There's no way to bypass twitters 350 API Calls per hour for authenticated users.
As far as I understood, Twitter API has an end point to fetch up to 100 tweets per request. You can find the details at: https://dev.twitter.com/rest/reference/get/statuses/lookup
I use tweepy's statuses_lookup method: http://tweepy.readthedocs.org/en/v3.1.0/api.html#timeline-methods So, you can retrieve tweets much faster than requesting one tweet at a time.

How do I get the follower count for thousands of Twitter users per hour, without getting rate limited?

I know that I can use "users/show" and get "followers_count" or I can do "followers/ids" and count the number of IDs returned, but both of these methods are rate-limited at 150 requests per hour when anonymous and 350 when signed w OAuth.
The program I'm writing uses the Twitter Search API to look for all mentions of a hashtag. I'm using the Search API and not the Streaming API because I need to look for historical tweets, not just real time.
When I find a tweet that contains the hashtag, I want to save the user's handle, tweet ID, time of tweet, and the number of followers that user has. Since the number of followers per user isn't returned with the Search API, I need to use another API call for that. That extra call is what's causing me trouble.
Are there any more efficient ways to get the number of followers for more than 350 users per hour? (There are a TON of tweets coming in...)
Your only option is GET users/lookup which supports fetching up too 100 user objects in a single request. Authentication is required so you will be allowed 35000 user objects/hour. If that still isn't enough should look into queueing the requests.

Resources