Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Get book information (isbn or search) from real bookstores.

Project Description

# Web scraping to get book informations

This library is to get book informations. We can search with keywords, with the isbn, with an advanced search, and do pagination.

We get the data from existing websites. We scrape:

we get: the title and authors, the price, the publisher(s), the cover, etc

<img src=”cli-search.png”</img>

## Import data from an ods or csv file

If your file has an ‘isbn’ and a ‘quantity’ column, it’s easy, we will find all the book information.

If it has the title and the publisher, it’s doable but error prone. We can still do it, but you shall do an inventory of your stock afterwards.

See the odsimport module. It gives back a json. It’s your responsibility to add what you want in your database (this is done in Abelujo).

Usable, but work in progress.

### Accepted format and columns

We can read ods and csv files.

  • a file with an “isbn” and “quantity” column,
  • a file with columns “title”, “publisher”, “isbn” (optionnal in this case), “shelf”, “distributor”, “quantity”. There is no “price” column. “authors” is optionnal (it can help to fetch the correct book).

If the file has no headers, use the “” configuration file (in particular, to set the csv delimiter, either “,” or “;”).

## Why not Amazon ?

Amazon kills the book industry and its employees. But moreover, with can link to a good and independent bookshop from within the application, and… we learn a lot in doing this !

## Why not Google books ?

It has very few data.

## Why not the BNF (Bibliothèque Nationale de France) ?

Because, for bookshops, we need recent books (the BNF takes a few months), up to date information. There isn’t a lot of tools either.

# Install

This lib isn’t on pypi yet.

It is usable, but not mature.

It’s used as a git submodule at Abelujo

# Use

So, for now you need to clone this repo.

To try it out, go to a scraper directory:

cd frFR/librairiedeparis/ python 9782918059363

and you get the above screenshot.

## Advanced search

Work in progress.

You can search ed:agone to search for a specific publisher.

## Pagination

We do pagination.

# Develop and test


Development mode:

pip install -e .

Now you can edit the project and run the development version like the lib is meant to be run, i.e. with the entry_points: livres, libros, etc.


# Bugs and shortcomings

This is webscraping, so it doesn’t go without pitfalls:

  • the site can go down. It happened already.
  • the site can change, it which case we would have to change our sraper too. This can be catched early with automated and frequent tests (work ongoing).

# Licence


Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bookshops-0.1.1-py2.7.egg (253.8 kB) Copy SHA256 Checksum SHA256 2.7 Egg Apr 20, 2016
bookshops-0.1.1.tar.gz (39.0 kB) Copy SHA256 Checksum SHA256 Source Apr 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting