Skip to content

Instantly share code, notes, and snippets.

@lijiang2087
Forked from ivorytowerdds/twitter
Last active September 16, 2020 04:45
Show Gist options
  • Save lijiang2087/c482ea765f0c8c51a8f70eb22e503fea to your computer and use it in GitHub Desktop.
Save lijiang2087/c482ea765f0c8c51a8f70eb22e503fea to your computer and use it in GitHub Desktop.
harmony-twitter
#!/bin/bash
for name in stse rongjianlan leo_hao denni_swon gupadhyaya thechaindev xiaopen01917726 janetlharmony danielvdmaden potvik1 haodi2best JackyTheCoder sahildewan nickwh8te lijiang2087 dirschmidt NikolaosKost GIZEMCAKIL shmula maggiewangharm1 alex_kretsch niteesh_harmony vasilich_nick mannymcoy ashraf_tuhin alpgasimov danboyden drop101001 alex_yatesalex iBruno_marshall sophoah JB273_Jurgen yeiliowsin mindpop3 mirrormirage0 OHHHtis Jenya94203826 derekleesoft; do
echo -n $name ''
curl -s "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=$name&count=200&tweet_mode=extended" \
-H 'x-csrf-token: d39ff7dfbf373012ea78f82d9888d9ed' \
-H 'authorization: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA' \
-H 'cookie: auth_token=aaaa326d1ee4f9248644fc06996d9ea7ea4e950b; ct0=d39ff7dfbf373012ea78f82d9888d9ed' \
--compressed | python3 -c $'import json, sys\nfor x in json.load(sys.stdin):\n if x["in_reply_to_status_id"] == int(sys.argv[1]):\n print(x["full_text"].replace("\\n", "..").replace("&", "&"), ":"); exit()\nprint()' $1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment