diff --git a/.gitignore b/.gitignore index 605b6a0..5f3c234 100644 --- a/.gitignore +++ b/.gitignore @@ -160,4 +160,6 @@ cython_debug/ #.idea/ database.db -playground.py \ No newline at end of file +playground.py + +*.db \ No newline at end of file diff --git a/gymtime/scrape/fetch.py b/gymtime/scrape/fetch.py index 028e130..1ee73ac 100644 --- a/gymtime/scrape/fetch.py +++ b/gymtime/scrape/fetch.py @@ -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") diff --git a/local-db.sqlite b/local-db.sqlite deleted file mode 100644 index 964fb0f..0000000 Binary files a/local-db.sqlite and /dev/null differ diff --git a/pdm.lock b/pdm.lock index b258823..07633bb 100644 --- a/pdm.lock +++ b/pdm.lock @@ -4,8 +4,11 @@ [metadata] groups = ["default"] strategy = ["cross_platform"] -lock_version = "4.4.1" -content_hash = "sha256:f51601bd5b4e4a17a2eeab1290f2764cad1ab91b74fe1ad1bda4d4c628035477" +lock_version = "4.5.0" +content_hash = "sha256:5be700216b7b33b3f7a9c11a0e6c555b9c284ace94aecca6c1643a141623cac6" + +[[metadata.targets]] +requires_python = ">=3.8" [[package]] name = "aiohttp" @@ -130,6 +133,9 @@ name = "async-timeout" version = "4.0.3" requires_python = ">=3.7" summary = "Timeout context manager for asyncio programs" +dependencies = [ + "typing-extensions>=3.6.5; python_version < \"3.8\"", +] files = [ {file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"}, {file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"}, @@ -150,6 +156,9 @@ name = "backports-zoneinfo" version = "0.2.1" requires_python = ">=3.6" summary = "Backport of the standard library zoneinfo module" +dependencies = [ + "importlib-resources; python_version < \"3.7\"", +] files = [ {file = "backports.zoneinfo-0.2.1-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:8961c0f32cd0336fb8e8ead11a1f8cd99ec07145ec2931122faaac1c8f7fd987"}, {file = "backports.zoneinfo-0.2.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:e81b76cace8eda1fca50e345242ba977f9be6ae3945af8d46326d776b4cf78d1"}, @@ -183,6 +192,7 @@ dependencies = [ "pathspec>=0.9.0", "platformdirs>=2", "tomli>=1.1.0; python_full_version < \"3.11.0a7\"", + "typed-ast>=1.4.2; python_version < \"3.8\" and implementation_name == \"cpython\"", "typing-extensions>=3.10.0.0; python_version < \"3.10\"", ] files = [ @@ -236,6 +246,7 @@ requires_python = ">=3.7" summary = "Composable command line interface toolkit" dependencies = [ "colorama; platform_system == \"Windows\"", + "importlib-metadata; python_version < \"3.8\"", ] files = [ {file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"}, @@ -510,6 +521,9 @@ files = [ name = "mypy-extensions" version = "0.4.3" summary = "Experimental type system extensions for programs checked with the mypy typechecker." +dependencies = [ + "typing>=3.5.3; python_version < \"3.5\"", +] files = [ {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"}, {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"}, @@ -565,6 +579,9 @@ name = "pluggy" version = "1.0.0" requires_python = ">=3.6" summary = "plugin and hook calling mechanisms for python" +dependencies = [ + "importlib-metadata>=0.12; python_version < \"3.8\"", +] files = [ {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, @@ -684,6 +701,7 @@ dependencies = [ "attrs>=19.2.0", "colorama; sys_platform == \"win32\"", "exceptiongroup>=1.0.0rc8; python_version < \"3.11\"", + "importlib-metadata>=0.12; python_version < \"3.8\"", "iniconfig", "packaging", "pluggy<2.0,>=0.12", @@ -725,6 +743,9 @@ name = "soupsieve" version = "2.3.2.post1" requires_python = ">=3.6" summary = "A modern CSS selector implementation for Beautiful Soup." +dependencies = [ + "backports-functools-lru-cache; python_version < \"3\"", +] files = [ {file = "soupsieve-2.3.2.post1-py3-none-any.whl", hash = "sha256:3b2503d3c7084a42b1ebd08116e5f81aadfaea95863628c80a3b774a11b7c759"}, {file = "soupsieve-2.3.2.post1.tar.gz", hash = "sha256:fc53893b3da2c33de295667a0e19f078c14bf86544af307354de5fcf12a3f30d"}, @@ -737,6 +758,7 @@ requires_python = ">=3.7" summary = "Database Abstraction Library" dependencies = [ "greenlet!=0.4.17; platform_machine == \"win32\" or platform_machine == \"WIN32\" or platform_machine == \"AMD64\" or platform_machine == \"amd64\" or platform_machine == \"x86_64\" or platform_machine == \"ppc64le\" or platform_machine == \"aarch64\"", + "importlib-metadata; python_version < \"3.8\"", "typing-extensions>=4.6.0", ] files = [ @@ -850,6 +872,7 @@ summary = "Yet another URL library" dependencies = [ "idna>=2.0", "multidict>=4.0", + "typing-extensions>=3.7.4; python_version < \"3.8\"", ] files = [ {file = "yarl-1.9.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a8c1df72eb746f4136fe9a2e72b0c9dc1da1cbd23b5372f94b5820ff8ae30e0e"},