I need to write a python script to do some validation on GSH number, the page is here: https://www.businessregistration-inscriptionentreprise.gc.ca/ebci/brom/registry/registryPrompt.do
As you can see there are three parameters to be provided. My script is as below (thanks to enter link description here):
import urllib
import urllib2
url = 'https://www.businessregistration-inscriptionentreprise.gc.ca/ebci/brom/registry/registryPromptSubmit.do'
values = {'businessNumber' : 'Michael Foord',
'businessName' : 'Northampton',
'requestDate' : '2016-10-23' }
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
the_page = response.read()
print the_page
I inspect the result and it shows the response ends with something like these:
, here is a screenshot:
What happened to the response? where is the mainContentOfPage indicated in the right after the section?
Thank you very much.