Metadata-Version: 2.1
Name: universal-parser-tool
Version: 3.0.0
Summary: Useful tool to speedup testing codes in cp-programming
Home-page: https://github.com/ParsaAlizadeh/universal-parser-tool
Author: Parsa Alizadeh
Author-email: parsa.alizadeh1+upt@gmail.com
License: GPL
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: selenium
Requires-Dist: requests
Requires-Dist: bs4
Requires-Dist: markdown

# Universal Problem Parser Tool

## Install

Simple and straight. Make sure you have Python3 and pip. Then install using this command.

`pip install universal-parser-tool`

This script needs selenium to login services. This python library will be added by default if you use the above command. 
The below link has explained how to install selenium drivers.
Firefox is the default driver for this code, so install Firefox and it's driver (geckodriver) as in the link below.

https://selenium-python.readthedocs.io/installation.html

The main idea is based on [cf-tool](https://github.com/xalanq/cf-tool) and [oj](https://github.com/online-judge-tools/oj).

After installing, the `upt` command will be added to your PATH.

## Upgrade
Run this command to upgrade to newer version.

`pip install --upgrade universal-parser-tool`

## Configuration

All configs stored at `~/.config/upt`, including `upt.conf` (general configs) and `cookie.jar` (cookies).

After installing, first run `upt init` to initialize config files
Find more details about parameters in wiki.

## Parse

You can use `upt` like this script:

`upt {parser} {task} [options...]`

Parsers are listed below. You can find their options and task pattern in the repository's wiki.

## Supported Parsers

In this time, these judges have parsers.

- [AtCoder](https://github.com/ParsaAlizadeh/universal-parser-tool/wiki/AtCoder)
- [Codeforces](https://github.com/ParsaAlizadeh/universal-parser-tool/wiki/Codeforces)
- [Quera](https://github.com/ParsaAlizadeh/universal-parser-tool/wiki/Quera)

**NOTE**: You need to login a service if you want to use it during contest.



