Browse Source

started sys arguments for main.py, to be able to control spider from interface

onlinkgen
alpcentaur 1 year ago
parent
commit
54daad8dfa
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      main.py

+ 7
- 4
main.py View File

@ -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…
Cancel
Save