Skip to content

hoaf13/SPOJ_PTIT_CRAWLER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPOJ PTIT CRAWLER

image image image image

This project can crawl your own accepted problems from SPOJ/PTIT. image

Prerequisites

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)

- pip

on Linux:
$ sudo apt-get update
$ sudo apt-get install python-pip
$ sudo pip install --upgrade pip
On Macos:
$ sudo easy_install pip
$ sudo pip install --upgrade pip
On Window:

follow this: https://phoenixnap.com/kb/install-pip-windows

- venv

On macOS and Linux:
$ python3 -m pip install --user virtualenv
On Windows:
$ py -m pip install --user virtualenv

Installation

  1. Clone this project: $ git clone https://github.com/hoaf13/SPOJ_PTIT_CRAWLER.git
  2. 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
  1. Install requirements $ pip install -r requirements.txt

USE

$ python3 main.py <username> <password>

All the sources has just been saved in <username>_sources. That's all

Contact: author