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.

89 lines
5.4 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-bekanntmachungen:
  6. domain: 'http://foerderinfo.bund.de'
  7. entry-list:
  8. link1: 'https://www.foerderinfo.bund.de/SiteGlobals/Forms/foerderinfo/bekanntmachungen/Bekanntmachungen_Formular.html?gtp=407348_list%253D'
  9. link2: '#searchResults'
  10. # here jsdomain has to be specified None with this syntax, if html pages of entrylists are not depending on javascript actions
  11. jsdomain: 'None'
  12. 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]'
  13. #iteration-var-list: '[1,2]'
  14. #parent: "//html//body//div//main//div//div[@class='row']//div[@class='large-12']//a[@class='c-teaser']"
  15. parent: "//html//body//div//main//div[@class='row']//a[contains(@class, 'c-teaser--announcement')]"
  16. child-name: "//div[@class='c-teaser__text-wrapper']//span[@class='c-teaser__title']/text()"
  17. javascript-link: ""
  18. child-link: "/@href"
  19. child-info: "//div[@class='c-teaser__text-wrapper']//div[@class='c-teaser__text']/p/text()"
  20. #child-period: "//div[@class='c-teaser__text-wrapper']//small[@class='c-topline']/span[@class='c-topline__item']/text()"
  21. child-period: "//div[@class='c-teaser__text-wrapper']//small//span/time/text()"
  22. child-sponsor: "//div[@class='c-teaser__text-wrapper']//small[@class='c-topline']//span[@class='c-topline__item']/span[@class='c-topline__category']/text()"
  23. entry:
  24. general:
  25. uniform: 'FALSE'
  26. unitrue:
  27. parent: '//html//body//form//table'
  28. #child-name: '//html//body//form//table//tr[1]//td[2]//span'
  29. #child-sum: '//html//body//form//table//tr[2]//td[1]//span//img'
  30. #child-deadline: '//html/body/form/table/tr[2]/td[3]/span + label.1'
  31. unifalse:
  32. wordlist: "['Mobilität', 'Energie', 'Off-grid', 'regenerative Energien', 'Solar', 'Energienetze', 'Elektromobilität']"
  33. giz:
  34. domain: 'https://ausschreibungen.giz.de'
  35. entry-list:
  36. link1: 'https://ausschreibungen.giz.de/Satellite/company/welcome.do?method=showTable&fromSearch=1&tableSortPROJECT_RESULT=2&tableSortAttributePROJECT_RESULT=publicationDate&selectedTablePagePROJECT_RESULT='
  37. link2: ''
  38. jsdomain: 'None'
  39. iteration-var-list: "[1,2,3,4,5,6,7]"
  40. #iteration-var-list: "[1,2]"
  41. #parent: "//html//body//div//main//div//div[@class='row']//div[@class='large-12']//a[@class='c-teaser']"
  42. parent: "//html//body//div//div//table[contains(@class, 'csx-new-table')]//tbody//tr"
  43. child-name: "//td[3]//text()"
  44. child-link: "//a/@href"
  45. javascript-link: "/td[6]/a"
  46. child-info: "/td[4]/text()[1]"
  47. child-period: "//td[2]/abbr/text()"
  48. #child-period: "//div[@class='c-teaser__text-wrapper']//small//span/time/text()"
  49. child-sponsor: "/tr/td[4]/text()"
  50. entry:
  51. general:
  52. uniform: 'TRUE'
  53. unitrue:
  54. #parent: '//html//body//form//table'
  55. text: '/html/body/div[2]/div[4]/div/div[5]/div/table/tbody/tr/td[5]/a/@href'
  56. #child-sum: '//html//body//form//table//tr[2]//td[1]//span//img'
  57. #child-deadline: '//html/body/form/table/tr[2]/td[3]/span + label.1'
  58. unifalse:
  59. wordlist: "['Mobilität', 'Energie', 'Off-grid', 'regenerative Energien', 'Solar', 'Energienetze', 'Elektromobilität']"
  60. evergabe-online:
  61. domain: 'https://www.evergabe-online.de/'
  62. entry-list:
  63. link1: 'https://www.evergabe-online.de/search.html?101-1.-searchPanel-results-searchResults-results-topToolbars-toolbars-1-span-navigator-navigation-'
  64. link2: '-pageLink'
  65. jsdomain: 'https://www.evergabe-online.de/search.html'
  66. jslink1: '/html/body/div[8]/main/div[4]/div/div/div[2]/table/thead/tr[1]/td/div[2]/div/span['
  67. jslink2: ']'
  68. jsiteration-var-list: "[1,2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,6,7,8,9,10]"
  69. #jsiteration-var-list: "[1,2, 3]"
  70. 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, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102]"
  71. #iteration-var-list: "[1, 2, 3]"
  72. parent: "/html/body/div[8]/main/div[4]/div/div/div[2]/table/tbody//tr"
  73. child-name: "//td[1]/div/a/text()"
  74. child-link: "//td[1]/div/a/@href"
  75. javascript-link: ""
  76. child-info: "//td[3]/div/text()"
  77. child-period: "//td[4]/text()"
  78. child-sponsor: "//td[2]/div/text()"
  79. entry:
  80. general:
  81. uniform: 'FALSE'
  82. unitrue:
  83. #parent: '//html//body//form//table'
  84. #text: '/html/body/div[2]/div[4]/div/div[5]/div/table/tbody/tr/td[5]/a/@href'
  85. #child-sum: '//html//body//form//table//tr[2]//td[1]//span//img'
  86. #child-deadline: '//html/body/form/table/tr[2]/td[3]/span + label.1'
  87. unifalse:
  88. wordlist: "['Mobilität', 'Energie', 'Off-grid', 'regenerative Energien', 'Solar', 'Energienetze', 'Elektromobilität']"