Skip to content

Commit

Permalink
updating comment and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNoelk committed Apr 6, 2017
1 parent 7c625ae commit e100d75
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,18 @@
A simple web scraping tool for recipe sites I use in a project of mine that makes sense to live as
a separate package.

pip install git+git://github.com/RyanNoelk/recipe-scraper.git
pip install git+git://github.com/RyanNoelk/recipe-scraper.git@1.0.3

then:

from recipe_scrapers import scrap_me

# give the url as a string, it can be url from any site listed below
scrap_me = scrap_me('http://allrecipes.com/Recipe/Apple-Cake-Iv/Detail.aspx')

scrap_me.title()
scrap_me.total_time()
scrap_me.ingredients()
scrap_me.instructions()

or

scrap_me.data()
try:
scrap_me = scrap_me('https://www.budgetbytes.com/2017/03/lemon-garlic-roasted-chicken')
print(scrap_me.data())
except KeyError:
print 'Website is not supported.'


### Contribute
Expand Down
10 changes: 10 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
# encoding: utf-8

from recipe_scrapers import scrap_me

try:
scrap_me = scrap_me('https://www.budgetbytes.com/2017/03/lemon-garlic-roasted-chicken')
print(scrap_me.data())
except KeyError:
print "Website is not supported."
9 changes: 0 additions & 9 deletions run_tester.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
setup(
name='openeats-recipe-scraper',
url='https://github.com/RyanNoelk/recipe-scraper/',
version='1.0.2',
version='1.0.3',
description='Python package, scraping recipes from all over the internet',
keywords='python recipes scraper harvest',
long_description=README,
Expand Down

0 comments on commit e100d75

Please sign in to comment.