Skip to content

Instantly share code, notes, and snippets.

@korenmiklos
Created March 24, 2014 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korenmiklos/9736496 to your computer and use it in GitHub Desktop.
Save korenmiklos/9736496 to your computer and use it in GitHub Desktop.
from urllib2 import urlopen
from lxml.etree import parse
HOSTNAME = 'http://kozbeszerzes.ceu.hu'
otp = parse(urlopen(HOSTNAME + '/entity/t/10537914.xml'))
for tender in otp.xpath('//all_tenders_won/tender'):
print urlopen(HOSTNAME + tender.attrib['url'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment