Guest User

Untitled

a guest
Sep 21st, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. # _*_ coding: utf-8 _*_
  2. from lxml import html
  3. import requests
  4.  
  5. p = requests.get('http://fucking-great-advice.ru/')
  6. t = html.fromstring(p.text)
  7. a = t.xpath('//p[@id="advice"]/text()')
  8.  
  9. print a[0].replace(u'\x97', '')
Advertisement
Add Comment
Please, Sign In to add comment