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.

75 lines
4.1 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. child-info: "//"
  15. child-period: "/"
  16. child-sponsor: "/"
  17. entry:
  18. info-1:
  19. parent: '//html//body//form//table'
  20. #child-name: '//html//body//form//table//tr[1]//td[2]//span'
  21. #child-sum: '//html//body//form//table//tr[2]//td[1]//span//img'
  22. #child-deadline: '//html/body/form/table/tr[2]/td[3]/span + label.1'
  23. foerderinfo.bund.de-bekanntmachungen:
  24. domain: 'http://foerderinfo.bund.de'
  25. entry-list:
  26. link1: 'https://www.foerderinfo.bund.de/SiteGlobals/Forms/foerderinfo/bekanntmachungen/Bekanntmachungen_Formular.html?gtp=407348_list%253D'
  27. link2: '#searchResults'
  28. iteration-var-list: '[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]'
  29. #parent: "//html//body//div//main//div//div[@class='row']//div[@class='large-12']//a[@class='c-teaser']"
  30. parent: "//html//body//div//main//div[@class='row']//a[contains(@class, 'c-teaser--announcement')]"
  31. child-name: "//div[@class='c-teaser__text-wrapper']//span[@class='c-teaser__title']/text()"
  32. child-link: "/@href"
  33. child-info: "//div[@class='c-teaser__text-wrapper']//div[@class='c-teaser__text']/p/text()"
  34. #child-period: "//div[@class='c-teaser__text-wrapper']//small[@class='c-topline']/span[@class='c-topline__item']/text()"
  35. child-period: "//div[@class='c-teaser__text-wrapper']//small//span/time/text()"
  36. child-sponsor: "//div[@class='c-teaser__text-wrapper']//small[@class='c-topline']//span[@class='c-topline__item']/span[@class='c-topline__category']/text()"
  37. entry:
  38. general:
  39. uniform: 'FALSE'
  40. unitrue:
  41. parent: '//html//body//form//table'
  42. #child-name: '//html//body//form//table//tr[1]//td[2]//span'
  43. #child-sum: '//html//body//form//table//tr[2]//td[1]//span//img'
  44. #child-deadline: '//html/body/form/table/tr[2]/td[3]/span + label.1'
  45. unifalse:
  46. wordlist: "['Mobilität', 'Energie', 'Off-grid', 'regenerative Energien', 'Solar', 'Energienetze', 'Elektromobilität']"
  47. giz:
  48. domain: 'https://ausschreibungen.giz.de'
  49. entry-list:
  50. link1: 'https://ausschreibungen.giz.de/Satellite/company/welcome.do?method=showTable&fromSearch=1&tableSortPROJECT_RESULT=2&tableSortAttributePROJECT_RESULT=publicationDate&selectedTablePagePROJECT_RESULT='
  51. link2: ''
  52. iteration-var-list: "[1,2,3,4,5,6,7]"
  53. #parent: "//html//body//div//main//div//div[@class='row']//div[@class='large-12']//a[@class='c-teaser']"
  54. parent: "//html//body//div//div//table[contains(@class, 'csx-new-table')]//tbody//tr"
  55. child-name: "//td[3]//text()"
  56. child-link: "//a/@href"
  57. child-info: "/td[4]/text()[1]"
  58. child-period: "//td[2]/abbr/text()"
  59. #child-period: "//div[@class='c-teaser__text-wrapper']//small//span/time/text()"
  60. child-sponsor: "/tr/td[4]/text()"
  61. entry:
  62. general:
  63. uniform: 'FALSE'
  64. unitrue:
  65. parent: '//html//body//form//table'
  66. #child-name: '//html//body//form//table//tr[1]//td[2]//span'
  67. #child-sum: '//html//body//form//table//tr[2]//td[1]//span//img'
  68. #child-deadline: '//html/body/form/table/tr[2]/td[3]/span + label.1'
  69. unifalse:
  70. wordlist: "['Mobilität', 'Energie', 'Off-grid', 'regenerative Energien', 'Solar', 'Energienetze', 'Elektromobilität']"