09-05-2014, 10:47 AM
Hello!
I´d appreciate it if you could help me out.
I need to fetch air pollutant concentrations from the following site:
http://siga.jalisco.gob.mx/ramag/ImecasParticulasR.aspx
I tryed the following code, but, since the concentrations are not in the main html, I get nothing.
import urllib
import re
htmlfile = urllib.urlopen('The site above')
htmltext = htmlfile.read()
print htmltext
regex = '<div style="WIDTH:223.48mm;">(.+?)</div>'
pattern = re.compile(regex)
print pattern
con = re.findall(pattern, htmltext)
print con
I´d appreciate it if you could help me out.
I need to fetch air pollutant concentrations from the following site:
http://siga.jalisco.gob.mx/ramag/ImecasParticulasR.aspx
I tryed the following code, but, since the concentrations are not in the main html, I get nothing.
import urllib
import re
htmlfile = urllib.urlopen('The site above')
htmltext = htmlfile.read()
print htmltext
regex = '<div style="WIDTH:223.48mm;">(.+?)</div>'
pattern = re.compile(regex)
print pattern
con = re.findall(pattern, htmltext)
print con