factures.py 330 B

12345678910111213141516
  1. '''
  2. Created on 27 juin 2017
  3. @author: olivier.massot
  4. '''
  5. from _io import BytesIO
  6. import urllib.request
  7. from lxml import etree # @UnresolvedImport
  8. URL = 'http://localhost:2890/public/WsPDE.asmx/GetPDETitres'
  9. data = urllib.request.urlopen(URL).read()
  10. for _, element in etree.iterparse(BytesIO(data)):
  11. print(element.attrib)