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.
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..
On Twitter there is a page that lists some users that are suggested "Twitter accounts suggested for you based on who you follow and more." from this link: https://twitter.com/i/#!/who_to_follow/suggestions
I didn't find an API to retrieve the same list (maybe I am missing it?).
Does anybody knows how that list can be accessed? (other than parsing the html)
The good thing about that list, is that it is not categorized and it does contain common people (ie. not sport/cinema superstars etc.)
I think this can be achieved in two steps by twitter API. Seems like first you need to get the categories that twitter suggested to user, then from those categories you can get the suggested users to the authenticated user.
https://dev.twitter.com/docs/api/1.1/get/users/suggestions
https://dev.twitter.com/docs/api/1.1/get/users/suggestions/%3Aslug
I'm interested in adding a twitter feed to my iOS app but I had a quick question: I'd like to stream the most recent updates from a group of about 10 different users - is there a way to do this directly using the twitter api? (Just to clarify - I'm trying to make an app for a sports team and id like a section where users can check out the most recent tweets from all the athletes)
I've been looking around but I can't find a way to do this directly. I'd rather not search for each account individually and have to aggregate the results. Any thoughts on how to handle this?
thanks
Looking here: https://dev.twitter.com/discussions/3941 seems to make me think it cannot be done directly. They recommend creating a list and simply pulling that feed. Another idea would be creating an account that only follows the users you're interested in and pulling that feed. Not sure how appropriate that would be.
I'm interested in building a simple demo and need a list of top twitter users. Is there a web site that offers a JSON or RSS feed (or otherwise easily parseable list) of the top 1000 twitter users by number of followers. Is there a web site that offers something like this? (I know I can scrape one of the many sites like Twitaholic but I'd rather not bother with that if there is an easier alternative.)
Twitter Counter , they also have a nice REST api that I like. Lady Gaga is #1 of course.
Edit based on comment
Here is a Yahoo Pipe for Top5 which can probably be edited for more
http://pipes.yahoo.com/pipes/pipe.info?_id=10ba4ad51d85cbf06d97236a2a291ac6
http://twittercounter.com/
http://twittercounter.com/pages/api?ref=footer
Recently search engines have been able to page dynamic content on social networking sites. I would like to understand how this is done. Are there static pages created by a site like Facebook that update semi frequently. Does Google attempt to store every possible user name?
As I understand it, a page like www.facebook.com/username, is not an actual file stored on disk but is shorthand for a query like: select username from users and display the information on the page. How does Google know about every user, this gets even more complicated when things like tweets are involved.
EDIT: I guess I didn't really ask what I wanted to know about. Do I need to be as big as twitter or facebook in order for google to make special ways to crawl my site? Will google automatically find my users profiles if I allow anyone to view them? If not what do I have to do to make that work?
In the case of tweets in particular, Google isn't 'crawling' for them in the traditional sense; they've integrated with Twitter to provide the search results in real-time.
In the more general case of your question, dynamic content is not new to Facebook or Twitter, though it may seem to be. Google crawls a URL; the URL provides HTML data; Google indexes it. Whether it's a dynamic query that's rendering the page, or whether it's a cache of static HTML, makes little difference to the indexing process in theory. In practice, there's a lot more to it (see Michael B's comment below.)
And see Vartec's succinct post on how Google might find all those public Facebook profiles without actually logging in and poking around FB.
OK, that was vastly oversimplified, but let's see what else people have to say..
As far as I know Google isn't able to read and store the actual contents of profiles, because the Google bot doesn't have a Facebook account, and it would be a huge privacy breach.
The bot works by hitting facebook.com and then following every link it can find. Whatever content it sees on the page it hits, it stores. So even if it follows a dynamic url like www.facebook.com/username, it will just remember whatever it saw when it went there. Hopefully in that particular case, it isn't all the private data of said user.
Additionally, facebook can and does provide special instructions that search bots can follow, so that google results don't include a bunch of login pages.
profiles can be linked from outside;
site may provide sitemap