title: python gspread - How to get a spreadsheet URL path in after i create it?
body: <p>I'm trying to create a new spreadsheet using the <code>gspread</code> python package, then get its URL path (inside the google drive) and send it to other people so they could go in as well.</p>
  
  <p>I tried to find an answer <a href="https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html" rel="nofollow noreferrer">here</a> and <a href="https://github.com/burnash/gspread" rel="nofollow noreferrer">here</a>, with no luck.</p>
  
  <p>I created a brand new Spreadsheet:</p>
  
  <p><code>import gspread
  from gspread_dataframe import get_as_dataframe, set_with_dataframe 
  gc = gspread_connect()
  spreadsheet = gc.create('TESTING SHEET')</code></p>
  
  <p>Then i Shared it with my account:
  <code>
  spreadsheet.share('my_user@my_company.com', perm_type='user', role='writer')</code></p>
  
  <p>Then i wrote some random stuff into it:
  <code>
  worksheet = gc.open('TESTING SHEET').sheet1
  df = pd.DataFrame.from_records([{'a': i, 'b': i * 2} for i in range(100)])
  set_with_dataframe(worksheet, df)
  </code></p>
  
  <p>Now when i go to my google drive i can find this sheet by looking for its name ("TESTING SHEET")</p>
  
  <p>But i didn't figure how do i get the URL path in my python code, so i could pass it right away to other people.</p>
  
  <p>Tnx!</p>