Giter Site home page Giter Site logo

archajain / plainoldrecipe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poundifdef/plainoldrecipe

0.0 0.0 0.0 3.12 MB

Takes a recipe website URL and transforms it to a plain-text version for reading or printing.

License: GNU Affero General Public License v3.0

HTML 14.79% Python 71.64% Shell 0.41% CSS 13.16%

plainoldrecipe's Introduction

This program parses recipes from common websites and displays them using plain-old HTML.

You can use it here: https://www.plainoldrecipe.com/

Screenshots

Home Page: Home Page

View the recipe in your browser: Recipe

If you print the recipe, shows with minimal formatting: Print View

Building Locally

  1. Install Python 3.6 or newer
  2. git clone https://github.com/poundifdef/plainoldrecipe.git or download the source and extract
  3. cd plainoldrecipe
  4. Create a virtual environment (optional)
  5. pip install -r requirements.txt
  6. python main.py

If all goes well you should see something along the lines of:

python main.py
 * Serving Flask app "main" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 123-456-789
 * Running on http://localhost:8080/ (Press CTRL+C to quit)

After which simply navigate to the appropriate URL as displayed on the last line.

Deploy

Run deploy.sh

Acknowledgements

Contributing

  1. If you want to add a new scraper, please feel free to make a PR. Your diff should have exactly two files: parsers/__init__.py and add a new class in the parsers/ directory. Here is an example of what your commit might look like.

  2. If you want to fix a bug in an existing scraper, please feel free to do so, and include an example URL which you aim to fix. Your PR should modify exactly one file, which is the corresponding module in the parsers/ directory.

  3. If you want to make any other modification or refactor: please create an issue and ask prior to making your PR. Of course, you are welcome to fork, modify, and distribute this code with your changes in accordance with the LICENSE.

  4. I don't guarantee that I will keep this repo up to date, or that I will respond in any sort of timely fashion! Your best bet for any change is to keep PRs small and focused on the minimum changeset to add your scraper :)

Testing PRs Locally

git fetch origin pull/ID/head:BRANCHNAME

plainoldrecipe's People

Contributors

poundifdef avatar hotfix avatar himynameisdave avatar jerjou avatar bfcarpio avatar chrispinkney avatar fivism avatar elliotaplant avatar nicolairuckel avatar rndmh3ro avatar gyskard 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.