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.
Related
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.
Is there currently a way to query the Microsoft Graph for contacts by phone number. I see that it is possible to filter contacts by the 'mobilePhone' field, but not by 'businessPhones' or 'homePhones' fields. Any way to search in all those fields at once? That would be handy!
It doesn't look like there's a way to do this currently. It doesn't look like filtering is supported on those collections. We'll need to go back and see whether we can add filtering support for these attributes.
I have list of users
['foo','bar']
I want to search whether they have checked in somewhere or not (using 4sq api)..
So basically, all I am looking for is that whether their tweets contain "\4sq.com\" or not?
I get very confused looking into their api?
Bonus points if the steps can be implemented in python.
Thanks
You have two options for checking a user's tweets:
One option is to look through the tweets in their User Timeline (accessible in Tweepy through api.user_timeline). However, you may have to search through a lot of unrelated Tweets before you come across the one your looking for. Given how many tweets some users have, you might want to only look thorough tweets more recent than a certain date (you can look at the created_at attribute of returned tweets).
The other option is to use the Search API (accessible in Tweepy though 'api.search'). This has the advantage of allowing you specify a search query, giving you relevant tweets. However, you will need to search through the tweets until you find one by the user you're looking for. Again, you might want to limit the date range of tweets that you search through.
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..
I want to start to create an app that allows the user to read feeds from multiple sites. The user can add a new feed and all the news from all stored feeds will be presented in a tableview. Thus, i wanted to ask if it is possible to a way to load the content from multiple xml feeds into one feed and order it by date of publish?
What would be the best approach?
Thank you very much!
Grouping all feeds into one is usually a bad call if you want to have reasonable latency as grouping usually means caching of each individual feeds before they're grouped.