I'd like to embed two lists in same timeline on my website. I'm trying to search for two Twitter lists using Twitter search but i can't make it work.
I'm able to do it i.e. with two accounts. from:NASA OR from:NBA
But it doesn't work with lists list:NASA/astronauts-in-space-now OR list:NBA/ESPN
Am I doing something wrong here or is this even possible at all?
The list:[handle]/[list-name] is a filter operator and not a Boolean argument, therefore impossible to use twice (two list filters) in the same search.
Depending on what you wish to do with the results of such (necessary) two separate searches, you can merge their respective results into one unified place like another Tweeter feed or a designated Google Sheet using a free web automation service like IFTTT.
You'll need to create two separate IFTTT recipes. The first will have as trigger a Twitter search for the list:NASA/astronauts-in-space-now, the second will have as trigger a Twitter search for the list:NBA/ESPN.
For both recipes, use the same Google Sheet (new line) or Twitter Account (new tweet) as an action, and throw the content triggered by both recipes into a unified table / account.
Related
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..
Is there a way you can dynamically combine multiple Twitter timelines into a single display? For example, I want to allow a user to set a preference for which timelines they want to be displayed, and then have the results displayed in a single table.
I have seen the posts regarding creating a list as a way to combine multiple twitter timelines into one request, and displaying that. But this is me predefining which timelines the user gets, and they display all or nothing.
I'd like each user to be able to pick between TimelineA, TimelineB, TimelineC. And then the table dynamically update to display only those chosen. I was hoping there was a means to manipulate the GET statuses/user_timeline parameter so that it would return results from multiple screen_name. But, I've not been able to sort it out.
I'm targeting iOS 6, using Twitter 1.1 API, and currently have a single timeline displaying successfully in a table, thanks to the Techotopia tutorial.
Thanks for any suggestions.
You can create an array containing the tweets from all the timelines sorted by a date parameter like created_at. You can sort this array using something like:
How to sort an NSMutableArray with custom objects in it?
This array would be your data source for a UITableView.
I am looking for a solution that would provide subscription-like responses that would contain results for particular tag from twitter.
I saw plenty of REST/ STREAM scripts for node.js but these scripts connect to twitter just once.
I would like not to be worried about rate limits.
Basically what I want to do is set up a notification (ex. console log) if there is a new search result for 20 different tags.
Is that possible?
With the streaming API you are only supposed to use a single connection, however it can contain multiple keywords (comma delimited) in the track attribute, and can be combined with other search parameters such as location and user filters.
The idea is that you use the one stream to collect all the data you need, and then process/filter that data independently to display or store as you please.
I have some lists of twitter accounts that I would like to recommend on my website (e.g. follow these great crafting bloggers). If I have the twitter ID for each of these people, is it possible to create a list of items that show their twitter info (pic, number of tweets/followers, etc.) as well as controls that allow the user to follow each (or multiple) twitter account? I'd like to be able to do it dynamically based on the list of accounts so that I can update the list and not have to redesign the page. I feel like I've seen this around the web before, but I don't see any widgets for doing it and I'm wondering how it's done.
(I would like to use javascript/jquery, but am pretty flexible here)
Thanks!
Jeff
I would first look at the Twitter API. You will find more information on how Twitter works, and you may find information applicable to what you want to accomplish on your website. It's a start, and there's no better place to start than the source itself.
The Twitter-search features the possibility to search for a source of tweet by using the parameter "source:" (e.g. source:tweetdeck).
If I just search for that it complains about a missing query, but I actually want to search for any tweets from a certain source.
Is that possible?
You need to have some form of criteria, even if it's just 'recent tweets'. To query every single tweet is, I suspect, not possible at all and certainly not within the capabilities of the API.
Note: My mistake - was thinking of one of the REST APIs.