To use this program, put your Twitter OAuth credentials in ~/.config/twitter/oauth.json
(or customize this path in tw-init.py
). oauth.json
should look like
{
"consumer_key": "...",
"consumer_secret": "...",
"access_token": "...",
"access_token_secret": "..."
}
See tw-init.py -h
for usage. There are several external dependencies:
colorama
(viapip
)libmagic
(viabrew
, for instance)python-magic
(viapip
)tweepy
(viapip
)
Currently automatic updating is not implemented, but this functionality is already planned out and very easy to add (simply parse out the last traversed status id from status.log
written by tw-init.py
).
Currently downloads are processed one at a time. While it is super fast for me, I have to say good luck if you have a bad connection to Twitter's CDN. I could write a simple concurrent model with multiprocessing
, but it's kind of awkward and I don't like it. You might want to DIY. I would use Go instead if I want to do concurrency right, but Go doesn't have tweepy (no tweepy.Cursor
!), and I'm not familiar enough with Go.
If you really have a bad connection to Twitter, and don't want to write concurrency code yourself (it's really simple), the legacy version is for you. Browse the commit history. See "Note on legacy version" for details.
In a previous version, I used my own generic image downloader, which turned out to be a really bad decision. Now the program should be much faster, much less resource intensive, and easily adapted to Windows (without cygwin, mingw, etc.).
thanks!