Skip to content

Commit

Permalink
Prep release for 0.1.5, add MedlinePlus example
Browse files Browse the repository at this point in the history
  • Loading branch information
micahcochran committed Jun 30, 2021
1 parent 534dd5f commit 4d166b7
Show file tree
Hide file tree
Showing 5 changed files with 546 additions and 6 deletions.
19 changes: 17 additions & 2 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ Attribution for the test data (in the `scrape_schema_recipe/test_data/` folder)
These are input for testing the software package.

I've tried to use recipes under Creative Commons Licenses that do not restrict derivation because
a unit test case could be considerred a derivation.
a unit test case could be considered a derivation.
I've sparingly using recipes that are licensed non-commercial. I think unit testing
could constitute as a use that would not conflict with that.

These recipes and their HTML remain are licensed under their respective license,
NOT the Apache 2.0 license that the software is licensed (except where noted).


## Examples


### Irish Coffee Recipe
* File: bevvy-irish-coffee.html
* Author: Bevvy
Expand Down Expand Up @@ -63,10 +67,21 @@ from http://www.crumbblog.com/about-the-recipes/
* Website: [Midget Momma](https://www.midgetmomma.com/)
* Format: LD-JSON

### Flavorful Green Beans
* File: flavorful-green-beans.html
* Author: National Heart, Lung, and Blood Institute
* Recipe URL: https://medlineplus.gov/recipes/flavorful-green-beans/
* License: [Public Domain](https://medlineplus.gov/about/using/usingcontent/)
* Website: [MedlinePlus](https://medlineplus.gov/)


## Unit Tests


### Simple Moscow Mule
* File: allrecipes-moscow-mule.html
* Author: [Lorem Ipsum](https://www.allrecipes.com/cook/loremipsum/)
* Recipe URL: https://www.allrecipes.com/recipe/237874/simple-moscow-mule/
* License:
* License: Proprietary
* Website: [All Recipes](https://www.allrecipes.com/)
* Format: LD-JSON
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2019-2020 Micah Cochran
Copyright 2019-2021 Micah Cochran

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion scrape_schema_recipe/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.4
0.1.5
5 changes: 3 additions & 2 deletions scrape_schema_recipe/example_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@
from typing import Dict, List, Tuple, Union


example_names = ('irish-coffee', 'google', 'taco-salad', 'tart', 'tea-cake', 'truffles')

_ex_name_filename = {'irish-coffee': 'bevvy-irish-coffee-2019.html',
'google': 'google-recipe-example.html',
'green-beans': 'flavorful-green-beans.html',
'taco-salad': 'mm-skinny-chicken-taco-salad.html',
'tart': 'foodista-british-treacle-tart.html',
'tea-cake': 'crumb-lemon-tea-cakes-2019.html',
'truffles': 'sweetestkitchen-truffles.html'}

example_names = tuple(_ex_name_filename.keys())


def example_output(name: str,
python_objects: Union[bool, List, Tuple] = False,
Expand Down
Loading

0 comments on commit 4d166b7

Please sign in to comment.