Hi, I am using beautiful soup to get data from a webpage. With help I was able to get a list of cities with correct accents.
Now am trying to get a list of movie theaters in a selected city but these come with no accents, but with weird characters.
Code:
from urllib2 import urlopen
from BeautifulSoup import BeautifulSoup
page = urlopen("http://www.cinepolis.com/_CARTELERA/cartelera.aspx?ic=2")
html = page.read()
soup = BeautifulSoup(html)
complejos = soup.findAll('span',{'class':'TitulosBlanco'})
compList = []
for comp in complejos:
name = comp.contents[0]
compList.append(name)
print "Complejo %s agregado áé" % name
I get this
Complejo Cinépolis VIP GalerÃas Diana Acapulco agregado áé
Complejo Cinépolis GalerÃas Diana Acapulco agregado áé
Complejo Cinépolis Acapulco agregado áé
Complejo Cinépolis Acapulco Renacimiento agregado áé
Complejo Cinépolis La Isla agregado áé
Complejo Cinépolis Pie de la Cuesta agregado áé
Complejo Cinépolis Sendero Acapulco agregado áé