started sys arguments for main.py, to be able to control spider from interface
This commit is contained in:
parent
89dcca2031
commit
54daad8dfa
1 changed files with 7 additions and 4 deletions
11
main.py
11
main.py
|
@ -1,7 +1,10 @@
|
|||
from spiders.fdb_spider import *
|
||||
|
||||
|
||||
import sys
|
||||
|
||||
config = "spiders/config.yaml"
|
||||
list_of_fdbs = ["giz"]
|
||||
list_of_fdbs = sys.argv[2]
|
||||
#list_of_fdbs = ["foerderinfo.bund.de-bekanntmachungen"]
|
||||
|
||||
|
||||
|
@ -13,9 +16,9 @@ spider.download_entry_list_pages_of_funding_databases(list_of_fdbs)
|
|||
|
||||
#spider.find_config_parameter(list_of_fdbs)
|
||||
|
||||
#spider.parse_entry_list_data2dictionary(list_of_fdbs)
|
||||
spider.parse_entry_list_data2dictionary(list_of_fdbs)
|
||||
|
||||
#spider.download_entry_data_htmls(list_of_fdbs)
|
||||
spider.download_entry_data_htmls(list_of_fdbs)
|
||||
|
||||
#spider.parse_entry_data2dictionary(list_of_fdbs)
|
||||
spider.parse_entry_data2dictionary(list_of_fdbs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue