Skip to content

Instantly share code, notes, and snippets.

@jh00nbr
Created March 14, 2016 13:36
Show Gist options
  • Save jh00nbr/bba088ffca426aef370e to your computer and use it in GitHub Desktop.
Save jh00nbr/bba088ffca426aef370e to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
from lxml import html
url = "http://www.freeproxylists.net/?c=br&f=1&s=rs"
req = requests.get(url)
string = html.fromstring(req.content)
#result = string.xpath('//title/text()')
result2 = string.xpath('//table[@class="DataGrid"]//tr[@class="Odd"/td/text')
print result2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment