Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range (Count_Row):
- page = requests.get('https://www.example.com'+ df2.loc[i,'ga:pagePath'])
- tree = html.fromstring(page.content)
- postalcode = tree.xpath('//span[@itemprop="addressRegion"]/text()')
- df2.loc[i,'postcode']=postalcode[1]
- postalcode= ['']
Add Comment
Please, Sign In to add comment