added selenium for pop up entry links
This commit is contained in:
commit
885c210971
4 changed files with 6 additions and 4 deletions
3
main.py
3
main.py
|
@ -5,7 +5,6 @@ import sys
|
|||
|
||||
config = "spiders/config.yaml"
|
||||
list_of_fdbs = eval(sys.argv[1])
|
||||
print(list_of_fdbs)
|
||||
#list_of_fdbs = ["foerderinfo.bund.de-bekanntmachungen"]
|
||||
|
||||
|
||||
|
@ -15,7 +14,7 @@ spider = fdb_spider(config)
|
|||
|
||||
#spider.download_entry_list_pages_of_funding_databases(list_of_fdbs)
|
||||
|
||||
#spider.find_config_parameter(list_of_fdbs)
|
||||
spider.find_config_parameter(list_of_fdbs)
|
||||
|
||||
#spider.parse_entry_list_data2dictionary(list_of_fdbs)
|
||||
|
||||
|
|
Binary file not shown.
|
@ -53,7 +53,7 @@ giz:
|
|||
entry-list:
|
||||
link1: 'https://ausschreibungen.giz.de/Satellite/company/welcome.do?method=showTable&fromSearch=1&tableSortPROJECT_RESULT=2&tableSortAttributePROJECT_RESULT=publicationDate&selectedTablePagePROJECT_RESULT='
|
||||
link2: ''
|
||||
iteration-var-list: '[1,2,3,4,5,6,7]'
|
||||
iteration-var-list: "[1,2,3,4,5,6,7]"
|
||||
#parent: "//html//body//div//main//div//div[@class='row']//div[@class='large-12']//a[@class='c-teaser']"
|
||||
parent: "//html//body//div//div//table[contains(@class, 'csx-new-table')]//tbody//tr"
|
||||
child-name: "//td[3]//text()"
|
||||
|
|
|
@ -484,7 +484,10 @@ class fdb_spider(object):
|
|||
for fdb in list_of_fdbs:
|
||||
|
||||
try:
|
||||
iteration_var_list = eval(self.config.get(fdb).get("entry-list").get("iteration-var-list"))
|
||||
fdb_config = self.config.get(fdb)
|
||||
print('oi oi',fdb_config)
|
||||
fdb_config_entrylist = fdb_config.get("entry-list")
|
||||
iteration_var_list = eval(fdb_config_entrylist.get("iteration-var-list"))
|
||||
except Exception as e:
|
||||
print(
|
||||
"There is a problem with the configuration variable entryList iteration var list in the config.yaml - the original error message is:",
|
||||
|
|
Loading…
Reference in a new issue