Free-Games
Free-Games copied to clipboard
Sytax Error: Invalid Syntax
i do all the instructions you said and run python Free_Games.py
, it come with error
Did you clone this using Git or did you download it by hand?
i clone using Git
Do you care to copy and paste that line from the file? And maybe grab a few lines around it for context?
try: if not wait_until_xpath_clickable_then_click("//*[text() = 'Get']"): raise TypeError("Unable to find 'Get' button") except: print("Failed to click on 'Get' button. Using parent element workaround... ", end='') if not wait_until_xpath_clickable_then_click("//*[text() = 'Get']/.."): raise TypeError("Workaround failed") else: print("Worked") if not wait_until_xpath_clickable_then_click("//*[text() = 'Place Order']"): raise TypeError("Unable to find 'Place Order' button")
and if i comment that line, new error occur
Looks like you're trying to run this with Python 2.7. You'll need to switch to Python 3 in order for this to work.
You can find that here: https://www.python.org/downloads/
Did you run the commands from the README? Specifically the "pip install -r requirements.txt"?
That should install all the modules you need
@MasonStooksbury I followed the installation instructions but end up on the dotenv error as well, despite pip3 saying it is installed:
Try using the --user flag or using pip instead of pip3. Lemme know if that works or not.
I'm no longer going to update this repository. Please use this new and improved one that makes use of the Epic Games desktop app rather than logging in via the browser:
https://github.com/MasonStooksbury/Free-Games-V2