Get rid of nodejs/jsontool dependency

This commit is contained in:
Kai Hendry
2013-06-15 22:09:09 +08:00
parent 352c60a6c4
commit 48cfcdc24f
4 changed files with 33 additions and 3 deletions

View File

@@ -32,8 +32,8 @@ then
test "$2" && since='&max_id='$(tail -n1 $1.txt | cut -d'|' -f1) # use max_id to get older tweets
fi
while urlargs="screen_name=${1}&count=200&page=${page}${since}&include_rts=1&trim_user=0&include_entities=1"; echo $urlargs; $(dirname $0)/oauth.php $urlargs |
json -d '|' -a id_str created_at -e 'this.t = this.text.replace(/\s*\n\s*/g, " "); this.entities.urls.forEach(function (u) { this.t = this.t.replace(u.url, u.expanded_url) });' t > $temp2; test $(wc -l < $temp2) -gt 0;
while urlargs="screen_name=${1}&count=200&page=${page}${since}&include_rts=1&trim_user=0"; echo $urlargs; $(dirname $0)/oauth.php $urlargs |
$(dirname $0)/json-to-text.php > $temp2; test $(wc -l < $temp2) -gt 0;
do
#cat temp2