twitter bleg
How can I send an old tweet to myself as an email? In other words, if I see a tweet from last year from a buddy, how can I send it to my email account?
Adverts: From Black Power/Grad Skool Rulz
How can I send an old tweet to myself as an email? In other words, if I see a tweet from last year from a buddy, how can I send it to my email account?
Adverts: From Black Power/Grad Skool Rulz
Click on the timestamp, copy the URL, paste into e-mail.
Jacob T. Levy
December 12, 2011 at 9:04 pm
Jacob: I mean send the twitter as text, not the URL.
fabiorojas
December 12, 2011 at 9:08 pm
I don’t understand — does copy and paste not work?
You can email tweets directly from Echofon/Twitter apps for iOS, I think.
Trey
December 12, 2011 at 9:13 pm
I want to scrape a tweet for content analysis. Problem: the text of the tweet does not appear in the HTML code. The content is called.
Possible solution: email the text of the tweet to myself.
fabiorojas
December 12, 2011 at 9:14 pm
The API is best for that stuff, but for a single tweet, it looks like you can find the text in the div with class “tweet-text js-tweet-text.”
Trey
December 12, 2011 at 9:29 pm
My workflow relies on html because I’m too lazy to learn the API.
http://codeandculture.wordpress.com/2011/03/01/scraping-twitter/
Also, I don’t know what you’re talking about that “the text of the tweet does not appear in the HTML code.” Try this little experiment, read a tweet, then “view source” and command-F to find the text you just read. I guarantee you it’s somewhere in there.
gabrielrossman
December 12, 2011 at 9:41 pm
@gabriel:
Try it yourself. “View source” shows that function that calls the tweet.
fabiorojas
December 12, 2011 at 10:01 pm
fabio,
i did try it on my end and it worked w the URLs I had
can i see the URL you’re using?
gabrielrossman
December 12, 2011 at 10:05 pm
Ah, I see the problem. Tweets that start with a user’s name do not have the raw text of the tweet in the source.
Trey
December 12, 2011 at 10:10 pm
Could this work for you? http://digestly.com/
Patricia Ledesma
December 12, 2011 at 10:15 pm
This R code should get most of your tweets and store them in an R list object:
install.packages(“twitteR”)
library(twitteR)
fabio <- userTimeline('fabiorojas', n = 450)
Substitute user name as needed
Trey
December 12, 2011 at 10:17 pm
Or perhaps this tool, which allows for lists and allows filtering by keywords: http://listimonkey.com/
Patricia Ledesma
December 12, 2011 at 10:18 pm
The power of blogging! We (my student and I) will try these to see what works.
fabiorojas
December 12, 2011 at 10:19 pm
[...] I’d discussed scraping Twitter using Bash and Perl. Then yesterday on an orgtheory thread Trey mentioned the R library TwitteR and with some help from Trey I worked out a simple script that [...]
Scraping Using TwitteR « Code and Culture
December 13, 2011 at 9:21 pm