update to config.yaml

This commit is contained in:
alpcentaur 2023-11-03 12:23:04 +00:00
parent 59838bb8e1
commit 7aa903883b
2 changed files with 9 additions and 6 deletions

View file

@ -6,11 +6,14 @@
foerderinfo.bund.de: foerderinfo.bund.de:
domain: 'http://foerderinfo.bund.de' domain: 'http://foerderinfo.bund.de'
entryList: entry-list:
link: '' link1: 'https://www.foerderinfo.bund.de/SiteGlobals/Forms/foerderinfo/expertensuche/Servicesuche_Formular.html#searchResults'
parent: '//html//body//form//table//tr//td//table//tr' link2: 'https://www.foerderinfo.bund.de/SiteGlobals/Forms/foerderinfo/expertensuche/Servicesuche_Formular.html?gtp=33498_list%253D2#searchResults'
child-name: '//td//a/text()' link3: 'https://www.foerderinfo.bund.de/SiteGlobals/Forms/foerderinfo/expertensuche/Servicesuche_Formular.html?gtp=33498_list%253D3#searchResults'
child-link: '//td//a/@href' iteration-var-list: [1,1
parent: '//html//body//form//table//tr//td//table//tr'
child-name: '//td//a/text()'
child-link: '//td//a/@href'
member: member:
info-1: info-1:
parent: '//html//body//form//table' parent: '//html//body//form//table'

View file

@ -35,7 +35,7 @@ class fdb_spider(object):
) )
try: try:
entry_list_link = entry_list.get("link") entry_list_link = entry_list.get("link")
except Exception as e: except Exception as e:
print( print(
"No entryListLink defined in config.yaml - the original error message is:", "No entryListLink defined in config.yaml - the original error message is:",
e, e,