Giter VIP home page Giter VIP logo

library-books's Introduction

library-books

Technology Stack

  • Flask
  • Python 3
  • Pipenv

Overview

This application runs on a Raspberry Pi and uses a barcode scanner to get a book's ISBN number, scrape the Atlanta Fulton Public Library's website to pull reviews and other data about the book, and then renders a webpage to display it.

The Pi will display on some kind of TV screen. Because there is no mouse/keyboard input, the webpage should display entirely on the screen without needing to scroll. The reviews should appear in an auto-sliding carousel.

Directory

app.py # runs the Flask server and calls the scraper with the barcode number
scraper.py # scrapes the book data and passes a dictionary of the book data to generator
generator.py # structures the scraped data into HTML and writes to the review.html file
templates/
          header.html # base html file. put any refs to CSS and JS here
          review.html # this file is generated and ignored by git

Getting Started

Make sure you have both Python 3 and pipenv installed.

Run the following commands to get the local server running on localhost:5000

  • $ pipenv shell
  • $ pipenv install
  • $ python3 app.py

Notes

To install pipenv on macOS: Install Homebrew and run brew install pipenv

library-books's People

Contributors

ericrav avatar justinkook avatar logicalmoody avatar

Watchers

 avatar  avatar

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.