I have been using the "Twitter" node in Node-RED app and I have tried various alternatives.
If I use the node on the public stream for tweets containing the configured search term all I get is "rate limit hit" irrespective of the search term. I have tried #hybridcloud, #IoT and #cognitive
If I use the node to search all the tweets from accounts that I follow it works perfectly.
If I use the node to search all tweets by specified users it does not appear to work at all. I can see no errors and even though I can tweets on Twitter itself nothing appears in app. I have used common twitter users like #IBMWatson, #NodeRED #the_jsf and #IBMBluemix Now working
I have used the same basic flow, see diagram, for each of the 3 variants.
Any assistance gratefully received.
Related
I am trying to get the trending hashtags and keywords for certain countries. Now I know that there is Twitter API and I've been using Twitter API V2, where there is no API call that will allow us to extract the trending hashtags for specific countries.
I then used Twitter V1 to extract the list of trending hashtags, but I realised that some countries are missing (For example, Iraq).
But what was intriguing was the fact, if you go to the settings section and choose to show the trends according to a location of your choice and you choose Iraq, you will get a list of the most trending hashtags for Iraq.
I tried to automate this using Selenium. It worked locally, but I faced issues when I tried to deploy it on a server. I used XFVB to run chrome and selenium on my Linux server but for some reason after a while, the automation process stops as I'm taken suddenly back into the login page.
Does any know of any alternative way, where I can extract the trending hashtags for countries such as Tunisia, Iraq or Algeria. Countries that are not part of the countries listed as part of the Twitter V1, but are available if you manually pick the location you want the trends to be showcased. (https://twitter.com/settings/trends, this URL in the explore locations option, you can pick your country. Here you can find Iraq among other countries)
Does Twitter still allow searching tweets by location (for tweets that have been geo-tagged)? The articles I've read describe an advanced search that no longer works the same way, so I'm thinking Twitter discontinued this capability sometime within the past year or two.
I want to filter tweets by geo location programmatically using their API. I can't find documentation on how to do this anywhere. There is one search query operator called point_radius that is exactly what I want, but it appears only accessible to "Academic Research only" projects while I've only been granted "Standard product track".
I've got a bunch of free online HTML, CSS, and JS tutorials under my belt and I want to try using them to make a browser extension. But I want to make sure that the data I want to use is actually accessible before getting started.
My goal is to make a browser extension for twitter.com that shows the number of impressions of any tweet next to the likes, retweets, and replies. My basic idea is to get the status URL of any given tweet, poll the Twitter API for the number of impressions of that tweet, store that in a variable, and then use CSS to display a little eye icon and the number stored in the impressions variable.
I know that I can find the number of impressions of all of my tweets, both through Twitter Analytics, and also just going to my profile page and clicking the little bar chart icon next to views, retweets, etc. But I'm not clear on whether I can do that for other people's tweets via Twitter's API or anything else. Can you?
For the record, I'm not too concerned about the varying definition of "impression," since it will be consistently applied across all tweets and I'm mostly interested in giving users a comparison between tweets. This is part of a research project to see how this might change how people engage with social media if they know how many views a given post has. If there's a simpler way to go about that using existing platforms, I'm open to suggestions.
Thanks for the advice!
No, impressions data is private. If you are authenticated to the Twitter API then you can use the new Twitter Developer Labs Tweets API to get private metrics like impressions, but you cannot get that for other people's Tweets. Also, the Twitter API does not support CORS, so I don't think you'll be successful trying to use it from a browser extension.
I'm trying to implement a "search for username" feature using the Twitter Api. Specifically, I need autocomplete.
I've noticed that /users/search/ doesn't work well, while looking for friends it keeps suggesting people that has nothing to do with me until i enter the full name.
I thought of loading the list of friends, but:
It only gives IDs. With the limitations of the number of requests, getting all the IDs and calling the API again to get the screen_names would consume it all
It gives chunks of 5000 users. Again, for people followin 100.000+ users it would not be usable.
Any suggestion?
I am new to Twitter and need some tips.
I need to display tweet feed from multiple users on some webpage.
The first thing I stumbled upon is Embedded Timelines. It allows to display tweets from list of users but the gotcha is that those lists should be maintained on Twitter-side (i.e. I cannot specify #qwe and #asd only on my side and get timeline without adding those users into list on Twitter-side).
The thing is that list of users that should be included into timeline is dynamic and managing those lists through Twitter API will probably be painful. Not to mention that my website will probably generate tons of those lists and I feel that I will violate some api quotas sooner or later.
So, my question is - am I stuck with using Embedded Timelines that refer some user list on Twitter-side and managing those lists through, say Twitter REST api, or there is a simplier way to do what I want?
It's pretty simple to display tweets for multiple users.
Links to start with
This post explains some of the search queries you can make
This post is a simple library to make requests to the twitter API that 'just works'
Your Query
Okay, so you want multiple users. The endpoint you're looking at using is the search/tweets one: https://api.twitter.com/1.1/search/tweets.json.
The query string uses :from and you can interpolate multiple froms with AND/OR.
An example query for the GET request:
?q=from:user1+OR+from:user2
Read more about the search API queries here.
Your "over-the-quote" issue
This is something you're going to need to figure out yourself - depending on the number of requests you expect to make, and the twitter imposed limits, maybe some sort of caching or saving information when you hit your limit, and only pull back from the cache whilst you're hitting your limit..