Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # _*_ coding: utf-8 _*_
- from lxml import html
- import requests
- p = requests.get('http://fucking-great-advice.ru/')
- t = html.fromstring(p.text)
- a = t.xpath('//p[@id="advice"]/text()')
- print a[0].replace(u'\x97', '')
Advertisement
Add Comment
Please, Sign In to add comment