Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alwa97/codeforces-1000
/ functions
Functions
34 in github.com/alwa97/codeforces-1000
⨍
Functions
34
◇
Types & classes
5
↓ 10 callers
Method
close
Release network resources.
annual_update.py:389
↓ 5 callers
Function
open_db
Open the SQLite database with schema ensured.
annual_update.py:150
↓ 4 callers
Method
_run_applescript
Run AppleScript and return stdout.
annual_update.py:433
↓ 3 callers
Method
_quote_applescript
Escape a string for AppleScript.
annual_update.py:405
↓ 2 callers
Method
_ensure_window
Create a dedicated Chrome window for scraping.
annual_update.py:535
↓ 2 callers
Method
_execute_javascript
Run JavaScript in the current automation tab.
annual_update.py:453
↓ 2 callers
Function
configure_statement_session
Apply the standard headers and optional cookies for statement requests.
annual_update.py:157
↓ 2 callers
Function
extract_statement_length_from_page_html
Extract the problem statement from a full page HTML document.
annual_update.py:343
↓ 2 callers
Function
get_current_status
Check what we currently have
annual_update.py:210
↓ 2 callers
Function
mark_problem_as_pdf
Persist that a problem statement is handled as a PDF.
annual_update.py:202
↓ 2 callers
Function
response_is_pdf
Return True when an HTTP response is a PDF document.
annual_update.py:181
↓ 1 callers
Method
_get_page_source
Fetch the raw page source through the browser session.
annual_update.py:469
↓ 1 callers
Method
_get_page_state
Read the current browser page state via JavaScript.
annual_update.py:457
↓ 1 callers
Method
_normalize_applescript_integer
Parse AppleScript numeric output into a stable integer.
annual_update.py:410
↓ 1 callers
Method
_open_url
Navigate the automation tab to a new URL.
annual_update.py:449
↓ 1 callers
Method
_prompt_for_manual_step
Let the user finish Cloudflare/login in the real browser.
annual_update.py:494
↓ 1 callers
Function
create_statement_fetcher
Build the requested statement fetcher.
annual_update.py:580
↓ 1 callers
Function
default_statement_fetcher
Use Chrome by default on macOS, where the browser automation path exists.
annual_update.py:83
↓ 1 callers
Function
ensure_schema
Create tables and apply lightweight schema migrations.
annual_update.py:112
↓ 1 callers
Function
extract_statement_length
Normalize a problem statement and measure the remaining HTML length.
annual_update.py:314
↓ 1 callers
Function
fetch_new_problems
Fetch new problems from Codeforces API
annual_update.py:232
↓ 1 callers
Function
generate_readme
Generate complete README with all short problems
annual_update.py:715
↓ 1 callers
Method
get_length
Fetch and measure a Codeforces problem statement.
annual_update.py:380
↓ 1 callers
Function
main
()
annual_update.py:816
↓ 1 callers
Function
parse_args
Parse command-line options.
annual_update.py:88
↓ 1 callers
Function
probe_pdf_statement
Fallback probe used after scrape errors to classify PDF-backed statements.
annual_update.py:187
↓ 1 callers
Function
scrape_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
Method
close
The browser keeps its window/session open for reuse.
annual_update.py:525
Method
get_length
Fetch and measure a Codeforces problem statement from a browser.
annual_update.py:505