title: Python : Extract requests query parameters that any given URL receives
body: <p><strong>Background:</strong>
  Typically, if I want to see what type of requests a website is getting, I would open up chrome developer tools (F12), go to the Network tab and filter the requests I want to see. </p>
  
  <p>Example: 
  <a href="https://i.stack.imgur.com/iBVNd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iBVNd.png" alt="A sample request URL that the site receives"></a></p>
  
  <p>Once I have the request URL, I can simply parse the URL for the query string parameters I want. </p>
  
  <p>This is a very manual task and I thought I could write a script that does this for any URL I provide. I thought Python would be great for this. </p>
  
  <p><strong>Task:</strong></p>
  
  <p>I have found a library called requests that I use to validate the URL before opening. </p>
  
  <pre><code>testPage = "http://www.google.com"
  validatedRequest = str(requests.get(testPage, verify=False).url)
  page = urlopen(validatedRequest)
  </code></pre>
  
  <p>However, I am unsure of how to get the requests that the URL I enter receives. Is this possible in python? A point in the right direction would be great. Once I know how to access these request headers, I can easily parse through. </p>
  
  <p>Thank you. </p>