Guest User

Untitled

a guest
Aug 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. for i in range (Count_Row):
  2. page = requests.get('https://www.example.com'+ df2.loc[i,'ga:pagePath'])
  3. tree = html.fromstring(page.content)
  4. postalcode = tree.xpath('//span[@itemprop="addressRegion"]/text()')
  5. df2.loc[i,'postcode']=postalcode[1]
  6. postalcode= ['']
Add Comment
Please, Sign In to add comment