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.

23 lines
1.2 KiB

  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//div//main//div//div[@class='row']//section[@class='l-search-result-list']//div[@class='l-search-result-list__item']"
  12. child-name: "//div[@class='c-search-result__text-wrapper']//span[@class='c-search-result__title']/text()"
  13. child-link: "/a[@class='c-search-result']/@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'
  20. foerderinfo.bund.de-mobilitaet: