kaihendry / greptweet

Sane twitter backup and search
https://greptweet.com/
Other
76 stars 10 forks source link

When create new account with x-rate-limit exceeded, return with error #50

Open kaihendry opened 10 years ago

kaihendry commented 10 years ago

Also clean up this mess:

[hendry@nl mrhackobi]$ ls -lah
total 2.7M
drwxr-xr-x 2 http   http 4.0K Aug 10 02:57 .
drwxrwxr-x 1 hendry http 2.7M Aug 11 12:51 ..
-rw-r--r-- 1 http   http  760 Aug 10 02:57 fetch-1407639464.log
lrwxrwxrwx 1 http   http   14 Aug 10 02:57 grep.php -> ../../grep.php
-rw-r--r-- 1 http   http  368 Aug 10 02:57 greptweet.appcache
lrwxrwxrwx 1 http   http   16 Aug 10 02:57 index.html -> ../../index.html
lrwxrwxrwx 1 http   http   16 Aug 10 02:57 tweets.txt.gz -> mrhackobi.txt.gz
[hendry@nl mrhackobi]$ cat fetch-1407639464.log
screen_name=mrhackobi&count=200&page=1&include_rts=1&trim_user=0
HTTP/1.1 429 Client Error (429)
content-length: 56
content-type: application/json; charset=utf-8
date: Sun, 10 Aug 2014 02:57:45 UTC
server: tfe
set-cookie: guest_id=v1%3A140763946578241258; Domain=.twitter.com; Path=/; Expires=Tue, 09-Aug-2016 02:57:45 UTC
strict-transport-security: max-age=631138519
x-rate-limit-limit: 300
x-rate-limit-remaining: 0
x-rate-limit-reset: 1407640254

PHP Fatal error:  Cannot use object of type stdClass as array in /srv/www/greptweet.com/json-to-text.php on line 6
mrhackobi saved 0 tweets
gzip: mrhackobi.txt: No such file or directory
'tweets.txt.gz' -> 'mrhackobi.txt.gz'
removed 'mrhackobi.68uB'
removed 'mrhackobi.THgV'
removed directory: 'lock'
[hendry@nl mrhackobi]$