Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2012, 01:29 PM   #1
Buzzy
Junior Member
Buzzy began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2012
Device: none
[GUI Plugin] BBC GoodFood Recipe Reader

Create an ebook of recipes from the BBC GoodFood site. This plugin is based on Krittika's Recipe Reader, with a number of enhancements. The plugin will create an ebook from the provided URLs, attach a custom-built cover and add the book to your library. You can set your preferred output format by changing "Preferred output format" in Prefs/Interface/Behaviour.

Main Features
  • Create an ebook from BBC GoodFood recipes (bbcgoodfood.com)
  • Give the ebook a title of your choice
  • Use the generated table of contents to go to particular recipe

Version History
Spoiler:

Version 1.1.0 - 4/11/2012
-Added configuration harness and options to disable the information dlg box and control keyboard shortcuts.
-Improved the GUI for managing the list of URLs to be processed and added some tooltips. We are no longer limited in the number of URLs that can be added by screen real estate.

Version 1.0.0 - 21/10/2012
Initial release.


Special Notes
  • Requires calibre version 0.8.58 or later.

Installation Notes
  • Download the attached zip file, install the plugin and restart calibre as described in the Introduction to plugins thread.
  • Customize the plugin via Preferences -> Plugins.

Usage
  • Click the BBC GoodFood RecipeReader button.
  • Enter a title for the ebook (optional).
  • If you do not enter a title, the title will be the same as that of the first recipe.
  • Enter a URL from BBC GoodFood by inserting the URL into the URL field and hitting "Add URL".
  • Repeat until you have entered all the URLs you want.
  • Click OK.
Attached Files
File Type: zip bbcgfrecipereader.zip (2.19 MB, 193486 views)

Last edited by Buzzy; 11-04-2012 at 10:37 AM.
Buzzy is offline   Reply With Quote
Old 10-28-2012, 10:20 AM   #2
DaveJJ
Junior Member
DaveJJ began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: Kindle 3.3
Hi!

Great plugin which produces a nice looking ebook.

But (isn't there always) it produces a mobi not an epub. Probably a setting elsewhere in Calibre I don't know about which needs changing. Also, is it possible to add further URLs to an existing book rather than having to do it all in one go. If I use an existing book title the plugin will merely generate a duplicate title.

I think it would be a great mod if it was not much trouble.

Again, thanks for a great plugin

DaveJJ
DaveJJ is offline   Reply With Quote
Old 11-03-2012, 12:52 PM   #3
Buzzy
Junior Member
Buzzy began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2012
Device: none
Hi Dave,

Thanks for writing, I'm glad you like it. I had to do some research to find your problem, as I wasn't aware of that possibility but I think if you go into Prefs/Behaviour you'll find that "Preferred output format" near the top left is set to MOBI and changing it to EPUB should get you the output you want.

The flip side of that is that you can output the recipes in whatever format you wish, which is nice.

I'm not aware of any way to insert into an existing book. I have played around with the epub merger plugin but the results are not nice. The table of contents functions seem broken and the resultant book is just one tacked straight onto the end of another complete with cover and TOC in the middle of the flow. If you are familiar with Sigil it wouldn't be that difficult to import the contents of one book into another but that would be a manual process.

I do have a couple of enhancements in mind for the plugin but I doubt that merging would be one of them, unfortunately. What we really need is a Calibre-wide way to do that e.g. a plugin that works. :-)

Cheers.
Buzzy is offline   Reply With Quote
Old 11-05-2012, 05:36 AM   #4
BaconButty
Connoisseur
BaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enoughBaconButty will become famous soon enough
 
Posts: 69
Karma: 520
Join Date: Jun 2012
Location: France
Device: Kindle Paperwhite 5 & iPad Mini & Galaxy Tab10
Thumbs up Neat!

Hi,

Thank you for this.
I usually copy/paste, and it's always messy, but this has made that job redundant!
BaconButty is offline   Reply With Quote
Old 11-05-2012, 11:12 AM   #5
DaveJJ
Junior Member
DaveJJ began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: Kindle 3.3
Thanks for the quick reply Buzzy.

It's funny that you mention playing with the ePubmerger plugin as I did the same and it got messy and finally I lost track of where I was going and gave up.

I'm not aware of Sigil so I'll look it up. Thanks once again

DaveJJ
DaveJJ is offline   Reply With Quote
Old 11-05-2012, 12:05 PM   #6
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
Sigil!
Gunnerp245 is offline   Reply With Quote
Old 12-12-2012, 10:28 AM   #7
crackhammer
Enthusiast
crackhammer began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jun 2009
Device: Nook touch, iPad, Xoom
In the beginning, I was very happy to see this plug-in but it failed on me.

****
The report follows -

calibre, version 0.9.0 (win32, isfrozen: True)
Conversion Error: Failed: Fetch recipe from bbcgoodfood.com
Spoiler:

Fetch recipe from bbcgoodfood.com
Resolved conversion options
calibre version: 0.9.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0,
'book_producer': None,
'change_justification': 'original',
'chapter': None,
'chapter_mark': 'pagebreak',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_download_recipe': False,
'dont_split_on_page_breaks': True,
'duplicate_links_in_toc': False,
'enable_heuristics': False,
'epub_flatten': False,
'extra_css': None,
'extract_to': None,
'filter_css': None,
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x03DA8150>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0,
'linearize_tables': False,
'lrf': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x03DA8350>,
'page_breaks_before': None,
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': None,
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': None,
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': '',
'sr1_search': '',
'sr2_replace': '',
'sr2_search': '',
'sr3_replace': '',
'sr3_search': '',
'start_reading_at': None,
'tags': None,
'test': False,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: Recipe Input running
Python function terminated unexpectedly
EOL while scanning string literal (<string>, line 72) (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 186, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 989, in run
File "site-packages\calibre\customize\conversion.py", line 239, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\recipe_ input.py", line 68, in convert
File "site-packages\calibre\web\feeds\recipes\__init__.py", line 46, in compile_recipe
File "<string>", line 72
urls = [u'http://www.bbcgoodfood.com/recipes/1428641/chargrilled-summer-vegetable-salad
^
SyntaxError: EOL while scanning string literal

*****
Any idea why it failed?

Thanks in advance.

Last edited by theducks; 12-12-2012 at 10:59 AM. Reason: Wrapped long paste in Spoiler
crackhammer is offline   Reply With Quote
Old 12-16-2012, 05:18 PM   #8
Buzzy
Junior Member
Buzzy began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2012
Device: none
Hi there,

Quote:
Originally Posted by crackhammer View Post
In the beginning, I was very happy to see this plug-in but it failed on me.

Any idea why it failed?

Thanks in advance.
Other than what's reported in the error, no. It looks like it hit an unexpected end-of-line but what caused it I can't say. It's possible the site has an error or that the engine that parses it had a problem, however It works for me using the URL in your log. Did you try again? The book's attached, in case that helps.

Cheers.
Attached Files
File Type: epub Chargrilled Summer Vegetable Salad - BBC GoodFood.epub (155.1 KB, 613 views)
Buzzy is offline   Reply With Quote
Old 04-28-2013, 07:24 PM   #9
geebee60
Junior Member
geebee60 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2013
Device: Kindle 3
This is a great plugin. Would it be possible to have a version that read the recipes from the bbc.co.uk site? That site does have recipes on it that are not on the bbc.com site, from programmes recently shown in UK, so would be a useful addition. Thanks.
geebee60 is offline   Reply With Quote
Old 06-30-2013, 10:17 PM   #10
hemmo_uk
Junior Member
hemmo_uk began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2013
Device: Nexus 7, iPad, Lumia 900
Empty document as a result from conversion

Hi

Great plugin idea, shame I can't get it to work. Only thing I manage to get is a document with lots of links in place but no actual content. It does not matter which URL I try, all of them seem to fail with that recursion limit exceeded.

In the attached zip file there's the log and the resulting file.
I'd appreciate if you had a time to look at this at some point.

Calibre version: 0.9.37 x64 on Win7 x64
BBC GoodFood Recipe Reader 1.1.0

Thanks
- hemmo
Attached Files
File Type: zip example.zip (69.9 KB, 462 views)
hemmo_uk is offline   Reply With Quote
Old 07-04-2013, 08:31 AM   #11
Aimless
Junior Member
Aimless began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
I'm experiencing the same problem as hemmo_uk. The BBC Good Food website recently underwent a redesign so I imagine this is why (if my assumption of how the plugin works is correct!). Looking forward to an update anyway, as it would be a handy plugin to have.

Thanks!
Aimless is offline   Reply With Quote
Old 07-10-2013, 01:46 PM   #12
Buzzy
Junior Member
Buzzy began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2012
Device: none
Hello,

Quote:
Originally Posted by geebee60 View Post
This is a great plugin. Would it be possible to have a version that read the recipes from the bbc.co.uk site? That site does have recipes on it that are not on the bbc.com site, from programmes recently shown in UK, so would be a useful addition. Thanks.
I might look at that if I get time but I can't promise anything. Every different site will require a bespoke version, and I'm not up for that unless someone wants to sponsor the work. Thanks for your interest.

Cheers.
Buzzy is offline   Reply With Quote
Old 07-10-2013, 01:49 PM   #13
Buzzy
Junior Member
Buzzy began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2012
Device: none
Hi,

Quote:
Originally Posted by Aimless View Post
I'm experiencing the same problem as hemmo_uk. The BBC Good Food website recently underwent a redesign so I imagine this is why (if my assumption of how the plugin works is correct!). Looking forward to an update anyway, as it would be a handy plugin to have.

Thanks!
Thanks guys, I had a quick look (finally) last night. I can't say I'm a fan of the changes. That will be the reason and I'll have to rewrite the plug-in to reflect the new page structure. I will try and get to that soon.

Cheers.
Buzzy is offline   Reply With Quote
Old 07-22-2013, 12:23 AM   #14
a_daley
Enthusiast
a_daley began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2013
Device: None
Being a newbie I'm not sure where to start looking.

Used the BigOven Plugin with no problem, but when using BBC GoodFood Plugin I don't get any instructions nor ingredients - just three pages with headings (tested using Thai Beef Curry http://www.bbcgoodfood.com/recipes/1...hai-beef-curry) and Thai Squash Soup which returned 4 pages of headings.) Have copied the output of calibre in debug into a txt file for further information.
a_daley is offline   Reply With Quote
Old 03-07-2014, 06:44 AM   #15
Oldsilverado
Junior Member
Oldsilverado began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2014
Device: Galaxay Tab2 10.1
Red face

Quote:
Originally Posted by Buzzy View Post
Hi,



Thanks guys, I had a quick look (finally) last night. I can't say I'm a fan of the changes. That will be the reason and I'll have to rewrite the plug-in to reflect the new page structure. I will try and get to that soon.

Cheers.


Still waiting for the re-write, any idea when you might get round to it, the BBC website might just change again before then (lol)
Oldsilverado is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Wiki Reader Krittika Goyal Plugins 112 01-07-2023 09:13 AM
[GUI Plugin] Hymn Reader Krittika Goyal Plugins 1 03-10-2017 01:57 PM
[GUI Plugin] Manage Sony x50 Reader Book List kpw Plugins 170 10-02-2014 08:23 PM
[GUI Plugin] Recipe Reader Krittika Goyal Plugins 13 06-07-2013 02:09 AM
[GUI Plugin] Medical Reader Krittika Goyal Plugins 1 09-17-2012 05:04 AM


All times are GMT -4. The time now is 05:23 AM.


MobileRead.com is a privately owned, operated and funded community.