I've committed 1 (technically 2, if you count this) last time(s). Uploading prototype.py
to the repository, which was supposed to be a tiny optimization and more prettifying the code.
I do not use GFN anymore, and haven't in a longer period, therefore this repository is simply not of use to me, if you wish to fix the code, feel free to and open a PR.
Prerequisites:
requests
library (pip install requests
)
Open up a supported browser - such as vanilla Google Chrome
Open DevTools by pressing the three dots in the top left -> More Tools -> Developer Tools
(MAKE SURE TO DO THIS IN A NEW TAB / BEFORE LOADING GFN WEB)
Navigate over to the Network tab in the DevTools
Navigate over to the GeForce NOW web library (play.geforcenow.com) in your browser
Find and press on the token
request, go to the payload tab, press view source, select it all and copy it
After copying the token request, open up settings.py and put it in the data = ""
(between the quotation marks) (make sure to wipe the text beforehand.. obviously..)
Go back to the network tab in DevTools, start any game you want (it does not matter which)
Find and press the second session?keyboardLayout=en-US&languageCode=en_US
request, go to the payload tab, press view source, select it all and copy it
Open up any text editor of your liking (notepad works too), paste the previously obtained data in there and save it as request.json
(it's important that it's a json file.. obviously..)
Now just run main.py for EU and main_us.py for US and let the program do its thing. (US is for now not going to be updated - if anyone actually decides to use this and actually uses the US version, open an issue on the repo)
(I will work on automating all of this eventually)