Use user_timeline instead of search
This commit is contained in:
parent
7c508ddff5
commit
003183ed0d
1 changed files with 1 additions and 2 deletions
|
@ -3,11 +3,10 @@
|
|||
import argparse, dbtools, filters.filler, mediatools, requests, setuptools, time, twitools
|
||||
|
||||
def getTweets(db=dbtools.dbHelper(), user=twitools.twObject().whoami(), two=twitools.twObject()):
|
||||
query = "from:" + user
|
||||
savepoint = db.getLatestTweet() + 1
|
||||
last = savepoint
|
||||
|
||||
timeline = two.search(query, savepoint)
|
||||
timeline = two.api.user_timeline(screen_name = user, since_id = savepoint, include_rts = True)
|
||||
|
||||
tw_counter = 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue