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.
- onixparser.py
None
- 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.
python onixparser.py
- Using a custom ONIX File: Run the following command to run the script on a custom file.
python onixparser.py <custom-file>.xml
- Start with referencing the
old-onix-bot
directory present which has the earlier code from ONIX Bot.