Home How o create a cronjob that import data into mongodb from remote csv/xml webservice?
Reply: 1

How o create a cronjob that import data into mongodb from remote csv/xml webservice?

rubenSousa
1#
rubenSousa Published in 2017-12-07 15:31:24Z

Hi there i need to create a cronjob that run every 30 minutes a mongodbimport command on mi server. Basically i need to sync a RESTAPI webservice with my MongoDB server. How i can do this task? Webservice returns thousands of products in csv or xml format.

Neodan
2#
Neodan Reply to 2017-12-07 15:51:19Z

You need to write script/program (you can use languages like PHP, Python, JavaScript (NodeJS), ...), which will parse CSV/XML and puts the data into MongoDB. Then run this script/program via cron.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.51938 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO