MissingSchema: Invalid Url ''
socc_link = socc_link.strip() before making the request. I have a feeling a stray whitespace character made it in there somehow.
@SixBeeps Just tried it and got the same error, seems like there are no issues with whitespace. function works at https://replit.com/@EricDaniel/testsoccerway#main.py so im not sure whats wrong with it here