Skip to content

Commit

Permalink
Fix URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ninest committed Jan 15, 2025
1 parent dcb4dfc commit dec53b7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,6 @@ cython_debug/
#.idea/

database.db
playground.py
playground.py

*.db
4 changes: 3 additions & 1 deletion gymtime/scrape/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

from ..util.decode_string import decode_html_string

URL = "https://connect2concepts.com/connect2/?type=circle&key=2A2BE0D8-DF10-4A48-BEDD-B3BC0CD628E7"
# URL = "https://connect2concepts.com/connect2/?type=circle&key=2A2BE0D8-DF10-4A48-BEDD-B3BC0CD628E7"
URL = "http://13.60.202.202/connect2/index.php?type=circle&key=2A2BE0D8-DF10-4A48-BEDD-B3BC0CD628E7"


def fetch_c2c_html() -> str:
req = requests.get(URL, headers={"User-Agent": "Mozilla"})
print(req.status_code)
if req.status_code != 200:
raise Exception("Unable to fetch")

Expand Down
Binary file removed local-db.sqlite
Binary file not shown.
27 changes: 25 additions & 2 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dec53b7

Please sign in to comment.