Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ['United States'] 328,131,075
- allowed_domains = ["geoba.se/country.php?cc=DE"]
- start_urls = ['http://geoba.se/country.php?cc=DE/']
- def parse(self, response):
- country = response.xpath('//*[@id="wrap"]/div[2]/div[2]/div[1]/div[1]/h2/b/text()').extract()
- pop_total = response.xpath('//td/div/table/tr/td[2]/text()').extract_first()
- print(country, pop_total)
- ['Germany'] 80,594,017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement