Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.04 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.04 KB

aops-tools

Extract data from the Art of Problem Solving website with Python Selenium, which can be exported to JSON or HTML format. It first executes a JavaScript code and then displays the result on the terminal.

The configuration file is located at config.py, which can be manually edited.

Requirements

  • pip install -r requirements.txt
  • Install ChromeDriver and add it to PATH.

Usage

from aops_tools import show_aops_data

show_aops_data("c6h1671291", stalk_users={"mijail"})
show_aops_data("c6184h1061455", write_files=True)
show_aops_data("c6h2484456", verbose=True)
show_aops_data("c3838", find_text="windmill")
show_aops_data("c13", search_method=["National Olympiads", "All-Russian", "2021"], verbose=True)
show_aops_data("c3831", brave=True, verbose=True)
show_aops_data("c14", verbose=True)

Their outputs are located in the assets folder.