Coder Social home page Coder Social logo

xanaxiel / api-oreilly-free-books Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erikjhordan-rey/api-oreilly-free-books

0.0 2.0 0.0 475 KB

Web Scraping to download books of the section "programming" from o'reilly free books

License: MIT License

Python 100.00%

api-oreilly-free-books's Introduction

O'Reilly free programming books - Web API

This project was inspired in erikcaffrey's web application project used for expose O'Reilly free programming ebooks via a web API.

How does it works?

It is written in Python 2.7 using webapp2 and it's designed to be executed on Google App Engine. It also make use of Google Cloud Datastore to persist books data and a there is a cron job scheduled to run every 1 hour to go to O'Reilly's website and update books data by doing web scrapping.

That's basically it.

About the API

It is hosted on https://oreilly-api.appspot.com/ and the main resource is /books which after a GET request will expose you a JSON list with all available books. Each list element will look this:

Field Type Description
title String Book title
url String Book details URL
thumbnail String Book thumbnail URL
description String Book description
category String Book category
subcategory String/null Book subcategory. This can be either the subcategory name or null
pdf String/null Download URL (PDF). This can be either null or a URL
mobi String/null Download URL (MOBI). This can be either null or a URL
epub String/null Download URL (ePub). This can be either null or a URL

Usage

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

  1. Install Google App Engine SDK for Python from https://cloud.google.com/appengine/downloads
  2. Install lxml your local environment with: `$ pip install lxml==2.3
  3. Run with: $ dev_appserver.py .

Deployment

Once you have set up your gcloud CLI in your local environment as well as your project in Google App Engine's console, you can simply run this for deployment.

$ glcoud app deploy

Built with

  • lxml: Used for HTML processing
  • webapp2: Python Web micro-framework.

Contributors

License

This project is licensed under the MIT License - see the LICENSE file for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.