Commit Graph

65 Commits

Author SHA1 Message Date
d0cedaf7a1 added name parser 2021-04-16 09:02:03 -05:00
b115c37eb8 catch error on scrape.image() 2021-04-16 09:02:03 -05:00
1e17f3703a trap error on scrape.title() 2021-04-16 09:02:03 -05:00
a531d135b5 remove html tags from description 2021-04-16 09:02:03 -05:00
0953af05fc Revert "bug fix url import"
This reverts commit 4ab8ca51e812d02911f4da801767612e52953a23.
2021-04-16 09:02:03 -05:00
d739fe6752 fixes #527 2021-04-16 09:02:03 -05:00
a84c41e29f bug fix url import 2021-04-16 09:02:03 -05:00
393aba1f31 url import bug fixes 2021-04-16 09:02:03 -05:00
2fe6788ce5 bug fix url import 2021-04-16 09:02:03 -05:00
efe4c4043d simplified url import 2021-04-16 09:02:03 -05:00
ec6a10ca0a ensure time is always a number 2021-04-16 09:02:02 -05:00
3cf949bf8d added ability to create custom scrapers 2021-04-16 09:02:02 -05:00
0a62225797 removed old json importer 2021-04-16 09:02:02 -05:00
bf3c30a8fb remove old html_import function 2021-04-16 09:02:02 -05:00
c8a4861df8 redirect to import url for processing 2021-04-16 09:02:02 -05:00
6a2c27749f updated links to import recipes 2021-04-16 09:02:02 -05:00
1188ed9227 cosmetic cleanup 2021-04-16 09:02:02 -05:00
cb708e7e47 added image import 2021-04-16 09:02:02 -05:00
40a2f7ff90 combined json import and source import 2021-04-16 09:02:01 -05:00
7c8d41753c more cleanup from ugly merge 2021-04-16 09:02:01 -05:00
90670613c5 fixed ugly merge 2021-04-16 09:02:01 -05:00
44dee16e0a manually parse json 2021-04-16 09:02:01 -05:00
3a48d0e580 commit merge from Patralos/recipes 2021-04-16 09:02:01 -05:00
f0d37244b6 refactored json parser to create functions for each sub parser 2021-04-16 09:02:01 -05:00
45dba6fad2 fix json direct import when wrapped in @graph 2021-03-19 13:23:55 -05:00
58fc26904b fixed url importer stuff 2021-03-19 10:05:17 +01:00
55920501b8 small tweaks 2021-03-18 20:48:28 +01:00
cc3e00e75f Merge branch 'develop' into url_import_recipes
# Conflicts:
#	cookbook/helper/recipe_url_import.py
#	cookbook/tests/api/test_api_keyword.py
#	cookbook/tests/other/test_edits_recipe.py
#	cookbook/views/api.py
#	requirements.txt
2021-03-18 20:38:51 +01:00
48c90c483a merged PR 474 adding manual json import 2021-03-18 12:36:00 +01:00
eed6e9d3a5 catch index error 2021-03-04 15:30:20 -06:00
f4af7ffb0b except do it right this time 2021-03-04 15:03:33 -06:00
3b072d5dd9 check for scrape.schema before using it 2021-03-04 14:59:56 -06:00
bfaed434cc refactored url_import to use recipe-scraper 2021-03-03 21:08:34 -06:00
29ab6cfb2d Merge branch 'develop' into feature/spaces
# Conflicts:
#	cookbook/views/data.py
#	cookbook/views/views.py
2021-02-25 15:59:32 +01:00
24b5cdff85 Merge pull request #459 from smilerz/fix-456
Fix 456
2021-02-25 08:14:55 +01:00
21740522bc fixed URL import when ingredient is a string 2021-02-24 20:13:06 -06:00
cc62b088fd fix URL import when recipeYield is a list 2021-02-24 17:52:40 -06:00
d7675d4b80 ingredients and helpers 2021-02-20 21:26:16 +01:00
e2b1115b3b fixed servings blank 2021-02-20 18:50:28 +01:00
777f4518be servings default to 1 on import 2021-02-15 15:16:15 +01:00
79da8db889 added paprika import 2021-02-08 13:47:06 +01:00
c41c319d25 added servings to url import 2021-01-21 19:39:06 +01:00
b563447674 ingredient linking fixed + tests fixed 2021-01-19 21:26:20 +01:00
523a2b41d1 fixed keyboard import edit 2021-01-19 21:11:02 +01:00
1ad468e652 helper/recipe_url_import 2021-01-10 13:57:06 +01:00
4b719af4e1 fixed broken microdata blowing up ingredient lists 2021-01-07 23:09:37 +01:00
78fa5338d3 fixed ingredient dropping on parser fail 2021-01-07 22:56:05 +01:00
566eea1d75 Merge pull request #277 from l0c4lh057/master
Improve text to ingredient parsing
2020-12-26 13:52:24 +01:00
592bd4f11e fixed some english translations 2020-12-26 13:46:55 +01:00
94e1fdfbff Improve text to ingredient parsing
The previous implementation of parsing ingredients was very simple. I now wrote a parser
that I would consider good. It takes care of several edge cases and notations.

- Supports fraction unicode (½, ¼, ⅜, ...)
- Supports notations like `1½` and `1 1/2`
- Supports unit directly after the amount without space inbetween (`2g`, `2½g`)
- Supports notes (`5g onion (cubed)` -> amount: 5, unit: g, ingredient: onion, note: cubed)
- Supports notes (`5g onion, cubed` -> amount: 5, unit: g, ingredient: onion, note: cubed)
- Does not break when both commas and brackets exist
2020-12-21 20:00:46 +01:00