P
Panagiotis Atmatzidis
Hello,
I want to know what is the best way to gather tweets from a specific=20
date till 'time.now'.=20
I have a database which I dumped all user tweet history. Tweets are=20
dumped in a sqlite3 database. My db fields are tweet.created_at,=20
tweet.text and tweet.id plus an integer as key.=20
I use tweet.id to perform a match test before accepting new tweets on=20
the database.=20
However, now the script tries to dump all possible=20
tweets from twitter's API every time, do the match and add the ones=20
that are missing (which are the ones of course). The procedure, as you=20=
imagine, causes big delays.
The created_at date string is like this: "Tue Jul 06 10:08:23 +0000 =
2010"
Time matters, I can't deal only with dates.
I have a couple of solutions in mind, but I'd like to know from more=20
experienced users which way to approach this:=20
1) Convert the 'created_at' string to YYYY-MM-DD date? This could be=20
tricky because there's also the exact time of the tweet to consider. =
(didn't try it out yet)
2) Using sqlite3's "id integer primary key" which uses the biggest=20
number for the latest entry and extract date from there?=20
3) Any smarter way?=20
Thanks
I want to know what is the best way to gather tweets from a specific=20
date till 'time.now'.=20
I have a database which I dumped all user tweet history. Tweets are=20
dumped in a sqlite3 database. My db fields are tweet.created_at,=20
tweet.text and tweet.id plus an integer as key.=20
I use tweet.id to perform a match test before accepting new tweets on=20
the database.=20
However, now the script tries to dump all possible=20
tweets from twitter's API every time, do the match and add the ones=20
that are missing (which are the ones of course). The procedure, as you=20=
imagine, causes big delays.
The created_at date string is like this: "Tue Jul 06 10:08:23 +0000 =
2010"
Time matters, I can't deal only with dates.
I have a couple of solutions in mind, but I'd like to know from more=20
experienced users which way to approach this:=20
1) Convert the 'created_at' string to YYYY-MM-DD date? This could be=20
tricky because there's also the exact time of the tweet to consider. =
(didn't try it out yet)
2) Using sqlite3's "id integer primary key" which uses the biggest=20
number for the latest entry and extract date from there?=20
3) Any smarter way?=20
Thanks