twitter has been blocked in China. Thus we need proxies to access it from mobile phones.
We need:
- android phone
- twitter client for android (e.g. twitter.com's client)
- [SSHTunnel][] (also available in Android market)
- ssh access to remote machine [SSHTunnel]: http://code.google.com/p/sshtunnel/
Setup on vps:
- install squid
- run squid with default configuration
We use squid proxy instead of socks proxy directly because android phone is poor at dynamic port forwarding.
Setup on phone:
- root your phone
- install and run SSHTunnel
- Host: ssh server domain/ip
- Port: ssh port (usually 22)
- User: ssh username
- Password: ssh password (If you prefer public key authentication, store your key as /sdcard/sshtunnel/key.)
- disable 'Use socks proxy'
- Local Port: any port >1024 (default 1984)
- Remote Address: 127.0.0.1
- Remote Port: 3128
Unrooted users need to also setup APN in android settings. More info: http://madeye.me/2011/02/10/ssh-tunnel-on-the-android-application-puff-android-edition/
You can download all your microblogs in atom. (In identi.ca website, settings, backup account.)
pip install twitter
twitter-log username > username.tweets
twitter-log username max_id > username.tweets.update
TODO I want to also backup comments and reposts.
Will this work for both android & iPhones?
I will try it out later today, using sock5 and proxies generated from a reputable site.