Best used for cleaning records on Open Library
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
formatdict.json
vacuumbot.py

README.md

VacuumBot

Best used for cleaning records on Open Library. If you are ready to do so, you need a bot account on http://openlibrary.org.
The author's VacuumBot is http://openlibrary.org/people/vacuumbot.

VacuumBot is mostly a collection of methods for specific cleaning tasks written in Python, that call the Open Library Python client API. Hence you also need the Open Library API client.

Create an object from a separate script using the bot's credentials and call the methods that perform the desired actions.

Example usage:

# Login
vb = VacuumBot("user", "pass")

# Replace the book format "pepperbek" by "Paperback" and trim punctuation
#  in the pagination field.
vb.replace_formats_clean_pagination2("pepperbek", "Paperback")