forum

[resolved] HTTP connection denied

posted
Total Posts
3
Topic Starter
Circle
Problem Details:

This is actually for third-party development. I am building a bot that will periodically check maps for FC's. I hope to compile this and place this on reddit or a separate website.

I just started and a noob at coding, so please be patient with the problems.

So for the technical issue, I'm getting HTTP connection with map page of osu! website denied.

Here is my error message:
ConnectionError: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //osu.ppy.sh/s/628149 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x000000000871E6A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))

Here is my code:
url = 'http://https://osu.ppy.sh/s/{0}'.format(str(id))
print('Trying to access info from: {0}'.format(url))
page = requests.get(url)

I'm not sure if Peppy is intentionally not allowing programs to access the website, or if it is a stupid mistake from my side. Any help/hints/pointers are appreciated.
Topic Starter
Circle
Nevermind. My url itself was wrong...
Pawsu
Probably isn't the place for coding related questions anyways, as no actual devs are actively checking this forum. This forum is more for bugs and questions relating to osu! itself.
Please sign in to reply.

New reply