I need nodeJS code to poll/fetch a set of HTTP URLs every 60 seconds and import the XML output of the URLs into mongodb. If a URL does not respond, it should report this error to a log file.
This nodeJS app should use a configuration file which stores these parameters:
- Array of URL's to fetch
- Poll interval (seconds)
- URL Timeout (seconds)
- Mongodb settings