This Bot does the following tasks:
- Validates and check if its a correct ONIX Record.
- Extracts product records from the ONIX Record and check if a duplicate does exist on Open Library.
- Add records which do not exist to Open Library.
Data dependent Scripts
- Install requirements using pip with the following commands.
cd onix-bot/ pip install -r requirements.txt
- Using a default file: Run the following command to run the file on a test ONIX Record which can be found here.
- Using a custom ONIX File: Run the following command to run the script on a custom file.
python onixparser.py <custom-file>.xml