How to...
- Put the seeds(.torrent files) in the torrent directory!
- Modify the User-Agent and peer_id prefixes for torrents.py.
- Install the appropriate library via
pip3 install requests
. - Exec
python3 seedmage.py
How to get UA and peer_id, please refer to my website.
18 */2 * * * cd /root/ && bash seed.sh &
#!/bin/bash
# 获得 python3 seedmage.py & 程序的 pid
pid=$(ps -ef | awk '/[s]eedmage.py/{print $2}')
if [[ -z "${pid}" ]]; then
cd /root/fakeseeder/ && python3 seedmage.py &
fi
if [[ ! -z "${pid}" ]]; then
echo ":: seedmage.py working ..."
fi
apt install -y build-essential autoconf libtool automake make
wget http://192.227.248.118/py37.tgz
tar xf py37.tgz
cd Python-3.7.2/
make install