MCPcopy Create free account

hub / github.com/alwa97/codeforces-1000 / functions

Functions34 in github.com/alwa97/codeforces-1000

↓ 10 callersMethodclose
Release network resources.
annual_update.py:389
↓ 5 callersFunctionopen_db
Open the SQLite database with schema ensured.
annual_update.py:150
↓ 4 callersMethod_run_applescript
Run AppleScript and return stdout.
annual_update.py:433
↓ 3 callersMethod_quote_applescript
Escape a string for AppleScript.
annual_update.py:405
↓ 2 callersMethod_ensure_window
Create a dedicated Chrome window for scraping.
annual_update.py:535
↓ 2 callersMethod_execute_javascript
Run JavaScript in the current automation tab.
annual_update.py:453
↓ 2 callersFunctionconfigure_statement_session
Apply the standard headers and optional cookies for statement requests.
annual_update.py:157
↓ 2 callersFunctionextract_statement_length_from_page_html
Extract the problem statement from a full page HTML document.
annual_update.py:343
↓ 2 callersFunctionget_current_status
Check what we currently have
annual_update.py:210
↓ 2 callersFunctionmark_problem_as_pdf
Persist that a problem statement is handled as a PDF.
annual_update.py:202
↓ 2 callersFunctionresponse_is_pdf
Return True when an HTTP response is a PDF document.
annual_update.py:181
↓ 1 callersMethod_get_page_source
Fetch the raw page source through the browser session.
annual_update.py:469
↓ 1 callersMethod_get_page_state
Read the current browser page state via JavaScript.
annual_update.py:457
↓ 1 callersMethod_normalize_applescript_integer
Parse AppleScript numeric output into a stable integer.
annual_update.py:410
↓ 1 callersMethod_open_url
Navigate the automation tab to a new URL.
annual_update.py:449
↓ 1 callersMethod_prompt_for_manual_step
Let the user finish Cloudflare/login in the real browser.
annual_update.py:494
↓ 1 callersFunctioncreate_statement_fetcher
Build the requested statement fetcher.
annual_update.py:580
↓ 1 callersFunctiondefault_statement_fetcher
Use Chrome by default on macOS, where the browser automation path exists.
annual_update.py:83
↓ 1 callersFunctionensure_schema
Create tables and apply lightweight schema migrations.
annual_update.py:112
↓ 1 callersFunctionextract_statement_length
Normalize a problem statement and measure the remaining HTML length.
annual_update.py:314
↓ 1 callersFunctionfetch_new_problems
Fetch new problems from Codeforces API
annual_update.py:232
↓ 1 callersFunctiongenerate_readme
Generate complete README with all short problems
annual_update.py:715
↓ 1 callersMethodget_length
Fetch and measure a Codeforces problem statement.
annual_update.py:380
↓ 1 callersFunctionmain
()
annual_update.py:816
↓ 1 callersFunctionparse_args
Parse command-line options.
annual_update.py:88
↓ 1 callersFunctionprobe_pdf_statement
Fallback probe used after scrape errors to classify PDF-backed statements.
annual_update.py:187
↓ 1 callersFunctionscrape_missing_statements
Scrape statement lengths for problems that don't have them
annual_update.py:589
Method__init__
(self)
annual_update.py:376
Method__init__
(self, timeout_seconds=DEFAULT_BROWSER_TIMEOUT)
annual_update.py:399
Method_ensure_window
Create a dedicated browser window for scraping.
annual_update.py:445
Method_execute_javascript
Run JavaScript in Chrome.
annual_update.py:570
Method_open_url
Navigate the automation tab to a new URL.
annual_update.py:550
Methodclose
The browser keeps its window/session open for reuse.
annual_update.py:525
Methodget_length
Fetch and measure a Codeforces problem statement from a browser.
annual_update.py:505