halsk / covid19-surveryor

主要省庁と都道府県や自治体の経済支援制度をまとめる

Home Page:https://help.stopcovid19.jp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

covid19-surveryor

シェルスクリプト書かれた主要省庁と都道府県のWebサイトを収集し分類するシステム

Warning

このスクリプトを実行するとかなりのディスク容量を消費します

Setup for Ubuntu

  • sudo apt install make wget jq nginx fcgiwrap squid

copy nginx config

cp nginx_config /etc/nginx/site-available/
ln -s /etc/nginx/site-available/nginx_config /etc/nginx/site-enabled/nginx_config
sudo service nginx restart

copy squid config

cp -f squid.conf /etc/squid/
sudo service squid restart

copy wget config

cp .wgetrc ~/

Setup for macOS

  • brew install wget jq nginx fcgiwrap squid

Install GNU xargs in macOS

$ brew install findutils
$ export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"

Intall GNU grep in macOS

$ brew install grep
$ export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"

Intall GNU sed in macOS

$ brew install gnu-sed
$ export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"

Development

$ make test

Run with docker

cd docker
docker build -t vscovid-crawler .
cd ..
docker run --rm -d -p 8080:80 -v $(pwd):/home/ubuntu/vscovid-crawler --entrypoint /home/ubuntu/vscovid-crawler/docker/entrypoint.sh -it vscovid-crawler

About

主要省庁と都道府県や自治体の経済支援制度をまとめる

https://help.stopcovid19.jp/

License:Do What The F*ck You Want To Public License


Languages

Language:Shell 94.9%Language:Makefile 3.0%Language:Dockerfile 2.1%