Closed gbordapoo closed 2 years ago
This is a frequently recurring issue in the undetected-chromedriver repo. See for example, #561. Basically, you have to protect the constructor when you run it from a script.
import soccerdata as sd
if __name__ == '__main__':
ws = sd.WhoScored(proxy='tor')
Which Python version are you using?
Python 3.9.12
Which version of soccerdata are you using?
import soccerdata as sd ws = sd.WhoScored(proxy='tor')
What did you do?
Install soccerdata with 'python3 -m pip install soccerdata'
What did you expect to see?
create ws variable
What did you see instead?
Output from spyder call 'get_cwd': [06/05/22 22:08:48] INFO Saving cached data to /Users/gustavob _common.py\:\91\ orda/soccerdata/data/WhoScored
[06/05/22 22:08:50] INFO patching driver executable /Users/gu \patcher.py\:\231\ stavoborda/Library/Application Suppo
rt/undetected_chromedriver/b170e9511
dda09d2_chromedriver
[06/05/22 22:08:50] INFO No custom team name replacements _config.py:85 found. You can configure these in /Us
ers/gustavoborda/soccerdata/config/te
amname_replacements.json.
INFO No custom league dict found. You can _config.py:155 configure additional leagues in /Use
rs/gustavoborda/soccerdata/config/le
ague_dict.json.
INFO Saving cached data to /Users/gustavob _common.py:91 orda/soccerdata/data/WhoScored
[06/05/22 22:08:52] INFO patching driver executable /Users/gu patcher.py:231 stavoborda/Library/Application Suppo
rt/undetected_chromedriver/a44ea0bfa
6137f97_chromedriver
Output from spyder call 'get_cwd':