openeventdata / phoenix_pipeline

Turning news into events since 2014.
MIT License
50 stars 33 forks source link

Use config file for Mongo db and collection #91

Closed ahalterman closed 7 years ago

ahalterman commented 8 years ago

Right now, the Mongo connection is hard-coded to use a DB named "event_scrape" and a collection called "stories". This is fine if people are using the OEDA scraper, but doesn't work for people using their own databases.

Change here and line following to get a DB and collection from the config file.