-1

I would like to be able to get recent tweets of an individual from their page. Is there anyway I can do this? I'm sorry if this isn't enough informations, but I don't even know where to get started and I couldn't find anything else online to help.

Tanner Ellis
  • 39
  • 1
  • 8

5 Answers5

6

You're looking for the Twitter API.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
0

For fetching the tweets client side, you would have to use cross-domain AJAX. See: jsonp with jquery (first answer actually has twitter-specific loading code).

Alternatively, you could fetch the tweets server-side, by (for example) using file_get_contents to download their tweet stream, and then parsing it however you choose.

Community
  • 1
  • 1
jli
  • 6,523
  • 2
  • 29
  • 37
0

usually, to get information from a website with a program, you will have to "scrape" the website (search how to do that on Google). Sometimes it's illegal though, so you might want to check the privacy terms and stuff. Thats just general, not specifically tweets.

udpatil
  • 529
  • 2
  • 6
  • 14
0

Tanner Ellis, you are in software industry, you always have something to study. Even experienced people have to study more to know new things.. Anyway, you can use curl which is faster than file_get_contents. and cross domain ajax is not allowed in most of browsers/sites. you can use api if provided by that site.

web2students.com
  • 307
  • 2
  • 16
0

Why not just add them as a friend in twitter?

user1244123
  • 163
  • 1
  • 1
  • 6