You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1022 B

  1. # Settings for the PEP crawler per country to crawl
  2. # Follow the syntax and dont use tbody as it gets added by the browser (when researching xpath through inspector)
  3. # xpath syntax: https://www.w3schools.com/xml/xpath_syntax.asp
  4. # lxml xpath syntax: https://www.geeksforgeeks.org/web-scraping-using-lxml-and-xpath-in-python/
  5. foerderinfo.bund.de:
  6. domain: 'http://foerderinfo.bund.de'
  7. entry-list:
  8. link1: 'https://www.foerderinfo.bund.de/SiteGlobals/Forms/foerderinfo/expertensuche/Servicesuche_Formular.html?gtp=33498_list%253D'
  9. link2: '#searchResults'
  10. iteration-var-list: [1,2,3,4,5,6,7,8]
  11. parent: '//html//body//form//table//tr//td//table//tr'
  12. child-name: '//td//a/text()'
  13. child-link: '//td//a/@href'
  14. entry:
  15. info-1:
  16. parent: '//html//body//form//table'
  17. #child-name: '//html//body//form//table//tr[1]//td[2]//span'
  18. #child-sum: '//html//body//form//table//tr[2]//td[1]//span//img'
  19. #child-deadline: '//html/body/form/table/tr[2]/td[3]/span + label.1'