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: 5
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, 6707 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
 
Enthusiast
Old 11-03-2012, 12:52 PM   #3
Buzzy
Junior Member
Buzzy began at the beginning.
 
Posts: 5
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
Member
BaconButty began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jun 2012
Location: France
Device: none
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,033
Karma: 1025474
Join Date: Nov 2007
Location: US
Device: Sony 700; Entourage Edge, Kindle 3, Pocket Edge
Sigil!
__________________
User of both the 10" EE & 7" PE. Visit edge/pocket edge forum. calibre User Manual.
Gunnerp245 is offline   Reply With Quote
Old 12-12-2012, 10:28 AM   #7
crackhammer
Enthusiast
crackhammer began at the beginning.
 
Posts: 36
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: 5
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, 39 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
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 54 04-01-2013 02:02 PM
[GUI Plugin] Medical Reader Krittika Goyal Plugins 1 09-17-2012 05:04 AM
[GUI Plugin] Recipe Reader Krittika Goyal Plugins 7 09-15-2012 03:30 PM
[GUI Plugin] Hymn Reader Krittika Goyal Plugins 0 07-05-2012 04:35 AM
[GUI Plugin] Manage Sony x50 Reader Book List kpw Plugins 159 01-07-2012 02:44 PM


All times are GMT -4. The time now is 11:56 AM.


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