fix: remove debug script
This commit is contained in:
parent
06f8627331
commit
6647e4120e
1 changed files with 0 additions and 18 deletions
18
script.py
18
script.py
|
|
@ -1,18 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
from bs4 import BeautifulSoup
|
|
||||||
from scrapling.fetchers import StealthyFetcher
|
|
||||||
|
|
||||||
URL = "https://codeforces.com/contest/1974/problem/A"
|
|
||||||
|
|
||||||
page = StealthyFetcher.fetch(
|
|
||||||
URL,
|
|
||||||
headless=True,
|
|
||||||
solve_cloudflare=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
soup = BeautifulSoup(page.html_content, "html.parser")
|
|
||||||
title = soup.find("div", class_="title")
|
|
||||||
if title:
|
|
||||||
print("Page fetched successfully. Problem title:", title.get_text(strip=True))
|
|
||||||
else:
|
|
||||||
print("Page fetched but could not find problem title.")
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue