I am using twitter api to get some tweets. However I realized that for #congress I also get tweets about the congress in US. How do I restrict it to Indian congress only? I can limit it based on the location, but then I lose out on tweets about Indian congress by people living in the US. Also if I search for Indian National Congress or INC it reduces the no of tweets as most of the people just say congress.
One suggestion might be to use different search criteria, like names of specific Indian politicians. Another might be to look at tweets in Hindi. I imagine there is a rich corpus of tweets in Hindi that will give you what you want. Also, there may be another hashtag to use as a filter.
Hope this helps.
Related
I want to buy data from twitter or any other source that can sell twitter data legally. I want all tweets that mention a specific keyword in the last six months. I want them to make analysis for a research purpose.
It seems that plan were changed in recent days for twitter and Gnip.
I'd recommend going to https://developer.twitter.com/en/docs/tutorials/one-time-historical-powertrack-jobs.html.
It'll ask you to submit the query rules you're looking for and the duration of time. Once that's set up, a Twitter employee should reach out with an estimate.
i'm University students of South korea
I'm developing analysis application using bigdata of twitter with my advisor professor. So i'm gathering tweets contains specific keyword(relevant word of crime) at period. I use 'streaming api' and 'search api' now. I have seen that using search api and streaming api result is return tweets of only one week.
I should be get the old data that have keyword of crime and since 2006 until 2016
do you have any idea?
Sadly you can't get tweets from that time range.
From the documentation:
The Search API is not complete index of all Tweets, but instead an index of recent Tweets. At the moment that index includes between 6-9 days of Tweets.
So, you can only get recent tweets from the search API. Be careful too with the data beacuse it's about relevance not completeness, from the same documentation:
Before getting involved, it’s important to know that the Search API is focused on relevance and not completeness. This means that some Tweets and users may be missing from search results. If you want to match for completeness you should consider using a Streaming API instead.
If you really need older tweets you will have to get them from other sources like Gnip. Otherwise you will have to approach differently your problem.
If you have the names (or id's) of all the users that you want to get info you could get the timelines from each user getting up to 3200 tweets.
According to Twitter API, it returns up to 100 of the first retweets of a given tweet.
What is the best way to measure number of retweets, when the amount
is higher than 100?
What is the best way to find top influencer of my tweet (Person, who retweeted my tweet, and he has the highest number of retweets)?
I found the answers:
Twitter API Get Status provide amount of retweets: "retweet_count"
If you want to get all retweets you should periodically query Twitter to get retweets.
Note: In spite, Twitter API allows to return up to 100 retweets, it usually return only latest retweets during last random timing frame.
New style retweets track only first level. Example:
#bob: My Awesome application http://bit.ly/1234
#alice: RT: #bob My Awesome application http://bit.ly/1234
But if #eve RT #alice retweet, the message will be similar to alice's and she won't be mentioned in it.
#eve: RT: #bob My Awesome application http://bit.ly/1234
The old style was (not in use anymore): RT: #alice: RT: #bob My Awesome application http://bit.ly/1234
Important!
There is some Twitter API limit https://dev.twitter.com/docs/rate-limiting/1.1. OAuth-enabled application could initiate 350 GET-based requests per hour per access token.
If you want to work with the Instagram API, the method suggested above will work really well.
I you do not want to work with the API, many free social media tools are available that will do this stuff for you. Search "twitter analytics tools" and you will find an array of options. Crowdbabble has a free trial that will let you track your retweets and the top influencers who follow you -- you can sort your followers in a table by the number of followers they have.
This is a question about the Twitter API, which doesn't provide any information on this issue.
It's possible to get the current trending topic for a location, for example: United States:
https://api.twitter.com/1/trends/23424977.json
where 23424977 is the location code for the United States.
It's also possible to get the hourly trending topic for a given day, but world-wide:
https://api.twitter.com/1/trends/daily.json?date=2012-06-10/
However, I have not been able to find out how to get the trending topics on a given day in a given location, that is, a way to combine these two separate calls together.
Anyone has a solution to this?
Thanks.
You can't get this information from twitter API directly. You must regularly query the locations you are interested in for current trends. If you are interested in covering the globe, then you will need some oAuth drones to get past 150/350 request limit per hour.
And then in no time you will have your own archive of trending topics.
Quick question, I'm having trouble finding this info on the Twitter dev centre.
On the object for a tweet, in the user section there is 'favourites_count', what exactly does this imply? Is that how many tweets they themsevles have favourited? or is it perhaps how many of their tweets have been favourited? Or is it something else?
It's the number of tweets that given user has marked as favorite.
I check'd this with an API call with my own screen name.
The number of Tweets this user has liked in the account’s lifetime. British spelling used in the field name for historical reasons.