want to get infobox contents of https://en.wikipedia.org/wiki/Air_Alg%C3%A9rie
I followed this article.
import requests
from lxml import etree
url='https://en.wikipedia.org/wiki/Air_Alg%C3%A9rie'
req = requests.get(url)
store = etree.fromstring(req.text)
# this will give Motto portion of above
# URL's info box of Wikipedia's page
output = store.xpath('//table[@class="infobox vcard"]/tr[th/text()="Destinations"]/td/i')
# printing the text portion
print output[0].text
even though req.text exists, returns null. How can I get this infobox contents? especially,
IATA ICAO
AH DAH
I need IATA, ICAO code. please help.
Also remember that DBPedia is not synchronized in real-time with Wikipedia, you may experience a few months delay between wikipedia version and corresponding entry in DBPedia. I don't want DBPedia contents.