0.4.35 • Published 1 year ago

exhaustive-twitter-crawler v0.4.35

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

コマンド集

declare -a array=("tokyo003-10g" "tokyo005-10g" "tokyo006-10g" "tokyo007-10g" "tokyo008-10g" "tokyo009-10g" "tokyo010-10g" "tokyo022-10g" "tokyo023-10g" "tokyo024-10g" "tokyo025-10g" "tokyo026-10g" "tokyo027-10g" "tokyo028-10g" "tokyo029-10g" "tokyo030-10g") for i in "${!array@}" do echo ${array$i} ssh ${array$i} "rm -rf $PTWEET_LOCAL/" done rm -rf /data/str01_03/twitter/shohei/result/

全ノードの一時ファイルを消す

declare -a array=("tokyo013-10g" "tokyo014-10g" "tokyo017-10g" "tokyo016-10g" "tokyo015-10g" "tokyo009-10g" "tokyo008-10g" "tokyo030-10g" "tokyo028-10g" "tokyo026-10g" "tokyo006-10g" "tokyo010-10g" "tokyo027-10g" "tokyo005-10g" "tokyo029-10g" "tokyo007-10g") for i in "${!array@}" do echo ${array$i} ssh ${array$i} "rm -rf $PTWEET_LOCAL/*" done

declare -a array=("tokyo003-10g" "tokyo005-10g" "tokyo006-10g" "tokyo007-10g" "tokyo008-10g" "tokyo009-10g" "tokyo010-10g" "tokyo022-10g" "tokyo023-10g" "tokyo024-10g" "tokyo025-10g" "tokyo026-10g" "tokyo027-10g" "tokyo028-10g" "tokyo029-10g" "tokyo030-10g") for i in "${!array@}" do echo ${array$i} ssh ${array$i} "ps -aux | grep node | grep -v grep | awk '{ print \"kill -9\", \$2 }' | sh" done

ssh tokyo003-10g  "tail -n 1 $PTWEET_LOCAL/out_tokyo003-10g.txt" 
ssh tokyo005-10g  "tail -n 1 $PTWEET_LOCAL/out_tokyo005-10g.txt"
ssh tokyo006-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo006-10g.txt
ssh tokyo007-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo007-10g.txt
ssh tokyo008-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo008-10g.txt
ssh tokyo009-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo009-10g.txt
ssh tokyo010-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo010-10g.txt
ssh tokyo022-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo022-10g.txt
ssh tokyo023-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo023-10g.txt
ssh tokyo024-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo024-10g.txt
ssh tokyo025-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo025-10g.txt
ssh tokyo026-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo026-10g.txt
ssh tokyo027-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo027-10g.txt
ssh tokyo028-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo028-10g.txt
ssh tokyo029-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo029-10g.txt
ssh tokyo030-10g  tail -n 1 $PTWEET_LOCAL/out_tokyo030-10g.txt
node instant.mjs --id testquery --term 2021/10/01T00:00-2021/10/05T00:00 --keywords コロナ マスク --url ws://tokyo004:45803/ --webdav --destination https://file.tmu.ac:4580/home/Drive/labo/twitter/ --user shohei.yokoyama
npx -y -p exhaustive-twitter-crawler -- instant --id testwebdav --term 2021/10/31T00:00-2021/11/02T00:00 --keywords ハロウィン --url ws://tokyo004:45803/ --giveaway webdav --destination https://file.tmu.ac:4580/home/Drive/labo/twitter/ --user shohei.yokoyama
npx -y -p exhaustive-twitter-crawler -- instant --id testlocal --term 2021/10/31T21:00-2021/11/01T03:00 --keywords ハロウィン --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst
npx -y -p exhaustive-twitter-crawler -- instant --id kurouzu-drink --term 2021/01/01T00:00-2022/01/01T00:00 --keywords 🍺 🍻 🍷 🥂 🍶 🍸 🍹 🏮 🍾 🥃 --keywords-match text-or --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id shohei-ki --term 2022/01/01T00:00-2022/01/02T00:00 --keywords 😀 😃 😄 😁 😆 --keywords-match text-or --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id shohei-vaccine --term 2021/01/01T00:00-2022/01/01T00:00 --keywords 😤 ワクチン --keywords-match text-and --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id shohei-ai --term 2022/01/01T00:00-2022/01/02T00:00 --keywords 😭 😱 😢 😥 --keywords-match text-or --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id shohei-1-mask --term 2021/12/20T00:00-2022/01/10T00:00 --keywords 😷 --keywords-match text-or --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id shohei-1-netsu --term 2021/12/20T00:00-2022/01/10T00:00 --keywords 🤒 --keywords-match text-or --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id shohei-1-party --term 2021/12/20T00:00-2022/01/10T00:00 --keywords 🥳 --keywords-match text-or --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id shohei-1-yuki --term 2021/12/20T00:00-2022/01/10T00:00 --keywords ❄️ 🌨️ ⛄ ☃️ --keywords-match text-or --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst --mask id_str,user\(id_str,name,screen_name\),text,created_at,timestamp_ms
npx -y -p exhaustive-twitter-crawler -- instant --id eguchi_fox2 --term 2020/10/01T00:00-2020/12/01T00:00 --keywords election Trump Biden --keywords-match text-or --mask created_at,timestamp_ms,id_str,text,user\(id_str,name\),extended_tweet\(full_text\),entities\(hashtags,urls\),retweeted_status\(id_str,user\(id_str,name\),text,entities\(hashtags,urls\),created_at\) --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output --jst
npx -y -p exhaustive-twitter-crawler -- instant --id narita2022 --term 2022/01/01T00:00-2022/01/02T00:00 --keywords コロナ 新型肺炎 COVID-19 --keywords-match text-or --lang ja --mask id_str,user\(id_str\),retweeted_status\(text,id_str,user\(id_str\),created_at\),created_at,timestamp_ms --lang ja --only-retweet --jst --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output/
npx -y -p exhaustive-twitter-crawler -- instant --id kurouzu-ukraine --term 2022/02/20T00:00-2022/02/21T00:00 --keywords [[\"ゼレンスキー\",\"合成\"],[\"ゼレンスキー\",\"フェイク\"]] --keywords-match text-and --mask text,id,user\(id\),created_at,timestamp_ms,retweeted_status\(text,id_str,user\(id_str\),created_at\) --url ws://tokyo004:45803/ --giveaway local --destination $WORK/output/



npx -y -p exhaustive-twitter-crawler -- instant --id kurouzu-ukraine-or --term 2022/02/20T00:00-2022/04/01T00:00 --keywords [[\"ゼレンスキー\",\"合成\"],[\"ゼレンスキー\",\"フェイク\"]] --keywords-match text-or --mask text,id,user\(id\),created_at,timestamp_ms,retweeted_status\(text,id_str,user\(id_str\),created_at\) --url ws://tokyo004:45803/ --giveaway webdav --destination https://file.tmu.ac:4580/home/Drive/labo/twitter/ --user shohei.yokoyama

npx -y -p exhaustive-twitter-crawler -- instant --id april-fool --term 2022/04/01T00:00-2022/04/02T00:00 --keywords エイプリルフール --keywords-match text-or --mask text,id,user\(id\),created_at,timestamp_ms,retweeted_status\(text,id_str,user\(id_str\),created_at\) --url wss://tokyo.jp.ngrok.io --giveaway webdav --destination https://file.yokoyama.ac:4580/twitter --user yokoyamalab --token  TKN7GnAzUAzVWJfpb4S


npx -y -p exhaustive-twitter-crawler -- instant --id kurouzu-tokyo0202-or --term 2021/04/01T00:00-2021/10/01T00:00 --keywords [[\"東京五輪\",\"無観客\"],[\"東京五輪\",\"有観客\"],[\"オリンピック\",\"無観客\"],[\"オリンピック\",\"有観客\"],[\"tokyo2020\",\"無観客\"],[\"tokyo2020\",\"有観客\"]] --keywords-match text-or --mask text,id,user\(id\),created_at,timestamp_ms,retweeted_status\(text,id_str,user\(id_str\),created_at\) --url ws://tokyo004:45803/ --giveaway webdav --destination https://file.tmu.ac:4580/home/Drive/labo/twitter/ --user shohei.yokoyama
npx -y -p exhaustive-twitter-crawler@latest instant --term 2022-02-20T00:00~2022-04-08T00:00 --no-keywords --has-geo --giveaway here --id has-geo --giveaway webdav --destination https://file.tmu.ac:4580/home/Drive/labo/twitter/ --user shohei.yokoyama

npm deprecate exhaustive-twitter-crawler@"< 0.3" "super buggy versions < v0.3.x"

read -p "Please enter the file name: " __file
read -p "Please enter your name: " __user
read -sp "Please enter your password: " __pass; echo
curl -K- -T ${__file} --url https://file.tmu.ac:4580/home/Drive/labo/twitter/  -X PUT <<< "-u ${__user}:${__pass}" | tee -a "${LOG_FILE}" ; test ${PIPESTATUS[0]} -eq 0
nohup "curl -K- -T ${__file} --url https://file.tmu.ac:4580/home/Drive/labo/twitter/  -X PUT <<< \"-u ${__user}:${__pass}\"" &
0.4.35

1 year ago

0.4.30

1 year ago

0.4.34

1 year ago

0.4.28

1 year ago

0.4.29

1 year ago

0.4.26

1 year ago

0.4.27

1 year ago

0.4.24

1 year ago

0.4.25

1 year ago

0.4.22

1 year ago

0.4.23

1 year ago

0.4.21

1 year ago

0.4.20

1 year ago

0.4.19

2 years ago

0.4.17

2 years ago

0.4.18

2 years ago

0.4.16

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.3.62

2 years ago

0.3.61

2 years ago

0.3.60

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.3.0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.53

2 years ago

0.3.52

2 years ago

0.3.51

2 years ago

0.3.50

2 years ago

0.3.59

2 years ago

0.3.58

2 years ago

0.3.57

2 years ago

0.3.56

2 years ago

0.3.55

2 years ago

0.3.54

2 years ago

0.3.42

2 years ago

0.4.10

2 years ago

0.3.41

2 years ago

0.3.40

2 years ago

0.3.49

2 years ago

0.4.15

2 years ago

0.3.48

2 years ago

0.3.47

2 years ago

0.4.13

2 years ago

0.3.46

2 years ago

0.4.14

2 years ago

0.3.45

2 years ago

0.3.44

2 years ago

0.4.12

2 years ago

0.3.43

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.3.31

2 years ago

0.3.30

2 years ago

0.3.39

2 years ago

0.3.38

2 years ago

0.3.37

2 years ago

0.3.36

2 years ago

0.3.35

2 years ago

0.3.34

2 years ago

0.3.33

2 years ago

0.3.32

2 years ago

0.3.29

2 years ago

0.3.20

2 years ago

0.3.28

2 years ago

0.3.27

2 years ago

0.3.26

2 years ago

0.3.25

2 years ago

0.3.24

2 years ago

0.3.23

2 years ago

0.3.22

2 years ago

0.3.21

2 years ago

0.3.19

2 years ago

0.3.18

2 years ago

0.3.9

2 years ago

0.3.17

2 years ago

0.3.16

2 years ago

0.3.15

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago