title: Google Sheets - Python Access timeout
body: <p>I'am trying to read and write from and to a Google Spreadsheet. I've found this tutorial online, which seems to work for a lot of people:</p>
  
  <p><a href="https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html?utm_source=youtube&amp;utm_medium=video&amp;utm_campaign=youtube_python_google_sheets" rel="nofollow noreferrer">https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html?utm_source=youtube&amp;utm_medium=video&amp;utm_campaign=youtube_python_google_sheets</a></p>
  
  <p>What I did so far:</p>
  
  <ul>
  <li>Created the credentials according to the guide and downloaded the .json file</li>
  <li><p>Shared a copy of the Legislator Spreadsheet (now in my google Drive) with the client e-mail.</p></li>
  <li><p>I received an E-Mail after sharing that the message wasn't delivered as the service account domain wasn't found.</p></li>
  <li><p>I adopted the code </p>
  
  <pre><code>import gspread
  from oauth2client.service_account import ServiceAccountCredentials
  
  scope = ['https://spreadsheets.google.com/feeds']
  creds = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope)
  client = gspread.authorize(creds)
  
  sheet = client.open("Copy of Legislators 2017", scope)
  list_of_hashes = sheet.get_all_records()
  print(list_of_hashes)
  </code></pre></li>
  </ul>
  
  <p>The client_secret.json file is in the same folder as the project.</p>
  
  <p><a href="https://i.stack.imgur.com/yKuKh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yKuKh.png" alt="enter image description here"></a></p>
  
  <p>But when I run the code, I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/YOsW8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YOsW8.png" alt="enter image description here"></a></p>
  
  <p>The Japanese says:　”It was not possible to connect because the connected callee did not respond correctly even after a certain period of time. Or the connected host failed because the connected host did not respond.”</p>
  
  <p>There seems to be a problem with the log in, but I have no clue how to fix it.
  Also, while researching, I found that the <code>scope</code> part is always different. Can someone explain to me what needs to be insert there?
  Does anyone have an experience with it? Thank you for your help :)</p>