This project can crawl your own accepted problems from SPOJ/PTIT.
This are some packages and an open source tool you must install.
- pip
- venv
- chrome driver (existed in project(chrome-driver version 88.) or download the corresponding version of your chrome-browser)
$ sudo apt-get update
$ sudo apt-get install python-pip
$ sudo pip install --upgrade pip
$ sudo easy_install pip
$ sudo pip install --upgrade pip
follow this: https://phoenixnap.com/kb/install-pip-windows
$ python3 -m pip install --user virtualenv
$ py -m pip install --user virtualenv
- Clone this project:
$ git clone https://github.com/hoaf13/SPOJ_PTIT_CRAWLER.git
- Open project, create and cctivate your virtual environment
- create virtual env
On macOS and Linux:
$ python3 -m venv myenv
On window:
py -m venv myenv
- activate virtual env
$ source myenv/bin/actiavte
- Install requirements
$ pip install -r requirements.txt
$ python3 main.py <username> <password>
All the sources has just been saved in <username>_sources
.
That's all
- github: hoaf13
- facebook: hoaf13.6
- email: gam.nhosmiles2000@gmail.com