Table of Contents
Modehaus
Modehaus uses the SIM and LOOKS APIs. They provide the services to multiple shops, which is implemented in our system using multiple api keys.
Technical Details
They put the feeds on a sFTP server hosted on frontend01.
Typ: SFTP Host: support.picalike.corpex-kunden.de User: modehaus Pass: RgYu6ZHnb@*g)KUW
We collect all the feed data daily via cronjob and create processable feeds that we store on the webserver of frontend01 to then import it using a preprocessor.
The script used for this is /home/picalike/modehaus/modehaus_sftp.py ; it resides in the swiss army knive git (v3 directory).
Besides the uid, ic_-collection and company name we use the same shop configuration in the mongo, starting from uid 6000.
There is also another script running daily via cron to clean up the sftp server (remove old files).
Add a Shop
To add a shop, create a new directory in the data/ directory of the sFTP server using the shop name. Add a new config in the mongo (copy paste another config and change uid, settings.imgCollection and shop name fields). Update the sftp script by adding the directory name to the list of shops in the swiss-army-knive git and deploy it using
scp modehaus_sftp.py f01:/home/picalike/modehaus/
Also update the clean up script (check cron)