Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 887 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 887 Bytes

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")