You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OnionIngestor/setup.md

52 lines
1.3 KiB
Markdown

4 years ago
# Install following docker images
### splash javascript render browser
>sudo docker pull scrapinghub/splash
4 years ago
>sudo docker run -d -p 8050:8050 --net="host" scrapinghub/splash
4 years ago
```
sudo docker run -it -p 8050:8050 --net="host" \
-v /home/<USER>/splash/proxy-profiles:/etc/splash/proxy-profiles \
-v /home/<USER>/splash/js-profiles:/etc/splash/js-profiles \
scrapinghub/splash \
-v2
4 years ago
```
4 years ago
#### Fix for issue proxy not working
https://github.com/scrapinghub/splash/issues/268
>must add --net="host"
In docker localhost doesn't refer to 127.0.0.1
4 years ago
### alpine-tor image Lots of IP addresses. One single endpoint for your client. Load-balancing by HAproxy.
>sudo docker pull zeta0/alpine-tor:latest
4 years ago
>sudo docker run -d -p 5566:5566 -p 2090:2090 -e tors=5 zeta0/alpine-tor
4 years ago
#### create file in /home/<USER>/splash/proxy-profiles/default.ini
```
[proxy]
host=localhost
port=9050
type=SOCKS5
4 years ago
```
4 years ago
#### Tests
>wget 'http://localhost:8050/render.png?url=http://ifconfig.me' -O test_ifconfig.png
4 years ago
>wget 'http://localhost:8050/render.png?url=http://archivecaslytosk.onion/' -O test_onion.png
4 years ago
>curl -x socks5h://localhost:5566 http://archivecaslytosk.onion/
### Docker useful commands
4 years ago
>docker ps -aq
4 years ago
4 years ago
>docker stop $(docker ps -aq)
4 years ago
4 years ago
>docker rm $(docker ps -aq)
4 years ago
4 years ago
>docker rmi $(docker images -q)