Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
onix-data
OnixParserOld.py
README.md
onixparser.py
requirements.txt

README.md

ONIX Bot

Description

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.

General Scripts

  • onixparser.py

Data dependent Scripts

None

Steps followed:

  • 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

Next Steps for ONIX Bot

  1. Use ONIX Reference Code List to parse and obtain Language Codes - #19
  2. Add functionalities to ONIX Bot - #12
  3. Using iterparse to avoid running out of memory errors - #17