Skip to content

For loop with lot of different Urls

totally novice in python, after many youtube videos and tutorial i’m trying to scrape basketball starting lineups from flashscore. Here’s an example of a link: https://www.flashscore.it/partita/6PN3pAhq/#informazioni-partita/formazioni As you can see in the middle there’s a code (6PN3pAhq) t…

Google translate in python

When using this code from https://stackabuse.com/text-translation-with-google-translate-api-in-python/ I get ‘AttributeError: ‘NoneType’ object has no attribute ‘group”, and i was wondering what is wrong, the error seems to be on the ‘result = tra…’ line, Thank …

Why is `server_hostname` required for an SSL-wrapped socket?

I’m writing some Python code that needs to communicate with a remote host via a TLS connection. I set up an SSL context like this: Then, I connected to domain d over port p like this: I was met with a protocol violation on an unexpected EOF. The fix was to create the socket like this: As I know next