1. Create a google login.
2. Enable the API by clicking a button on their dev webpage
3. The credentials are downloaded in a json file, move it to the working directory
4. Run the python script that they supply in the working directory
5. The python script provides a URL to paste into a browser that opens request to synch with the python script.
6. viola, it should work
https://developers.google.com/sheets/ap ... art/python
Problem is that I am trying to do this on a different machine. I'm running the python script on a linux machine that I'm SSH'd into. When I run the python script I get the URL, then I paste it into a browser on the Windows machine that I'm sitting at, Google tries to synch with the python script that is running on the linux machine and I get a "local host refused to connect" error in my browser.
I also tried going to that address on the Linux machine with Curl and the output was pretty cryptic:
What can I do to get the API to synch with the correct machine?
Code: Select all
[email protected]:/home/shadow_saunter# curl https://accounts.google.com/o/oauth2/auth(I'm not sure how much of this URL is secret, but its a long hashed out address)&access_type=offline  3357  3358  3359  3360  3361 [email protected]:/var/www/DataBase# <!DOCTYPE html><html ....(a bunch of html follows, this line launches automatically after the previous with no input from me. I don't see any error message in it)