Skip to content

Instantly share code, notes, and snippets.

@PavelPenkov
Created February 1, 2011 17:38
Show Gist options
  • Save PavelPenkov/806236 to your computer and use it in GitHub Desktop.
Save PavelPenkov/806236 to your computer and use it in GitHub Desktop.
import urllib2, sys, re
from urllib import urlencode
params = [('pol', 2), ('spol', 2), ('foto', 1), ('a', 'search')]
expr = re.compile('page.*"')
for s in urllib2.urlopen('http://loveplanet.ru/a-search', urlencode(params)):
#if expr.match(s):
print s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment