采集要准备的环境。
python3.7
redis
chrome
nginx
python 相关
需要的环境
1 2 3 4 5 6 7 8 9 10
| selenium==3.141.0 urllib3==1.24.2 pyyaml RhinoLogger dingtalkchatbot redis flask flask_cors gunicorn web3==5.19.0
|
运行采集
采集目前没有什么要说的。
运行 API
由于 API
是通过 flask
写的,所以,我们用 gunicorn
来运行。
chrome
使用无头浏览器。
nginx
1 2 3 4 5 6 7 8 9 10 11 12
| server { server_name thlm.bond; listen 443 ssl; ssl_certificate /home/ubuntu/https/fullchain.crt; ssl_certificate_key /home/ubuntu/https/private.pem; location / { proxy_pass http://127.0.0.1:8081/; } }
|