title: Get field ids from a google form, python BeautifulSoup
body: <p>In a google form like this for example: how would you create a list of this 'field IDs'</p>
  <pre><code>var FB_PUBLIC_LOAD_DATA_ = [null,[null,[[831400739,&quot;Product Title&quot;,null,0,[[1089277187,null,0]
  ]
  ]
  ,[2054606931,&quot;SKU&quot;,null,0,[[742914399,null,0]
  ]
  ]
  ,[1620039602,&quot;Size&quot;,null,0,[[2011436433,null,0]
  ]
  ]
  ,[445859665,&quot;First Name&quot;,null,0,[[638818998,null,0]
  ]
  ]
  ,[1417046530,&quot;Last Name&quot;,null,0,[[1952962866,null,0]
  ]
  ]
  ,[903472958,&quot;E-mail&quot;,null,0,[[916445513,null,0]
  ]
  ]
  ,[549969484,&quot;Phone Number&quot;,null,0,[[848461347,null,0
  </code></pre>
  <p>This is the relevant section of the HTML ^</p>
  <p>I have the code so far:</p>
  <pre><code>    from bs4 import BeautifulSoup as bs
      a = requests.get(url, proxies=proxies)
      soup = bs(a.text, 'html.parser')
      fields = soup.find_all('script', {'type': 'text/javascript'})
      form_info = fields[1]
      print(form_info)
  </code></pre>
  <p>but this returns, lot's of irrelevant data and unless I include lots of <code>str.replace()</code>, <code>str.split()</code> sections of code I can't see an easy way to do this. That would also be extremely messy.</p>
  <p>I do not have to use BeautifulSoup although it seems the obvious way to go.</p>
  <p>In the example above I would need a list like:</p>
  <p><code>[1089277187, 742914399, 2011436433, 638818998, 1952962866, 916445513, 848461347]</code></p>