Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-27-2010, 10:21 PM   #1
bluewolf8
Junior Member
bluewolf8 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi
Request for recipes: Cyanide and Happiness , SMBC

I hope that I'm posting this in the right place...

I really like the way the XKCD recipe works and was wondering if there was any hope of getting one for :

Cyanide and Happiness (explosm.net/comics)

or

Saturday Morning Breakfast Cereal (smbc-comics.com)

with my limited knowledge, I tried a few things but was only successful in getting useless links and text and no pictures.

thanks in advance
bluewolf8 is offline   Reply With Quote
Old 12-28-2010, 08:55 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by bluewolf8 View Post
I hope that I'm posting this in the right place...

I really like the way the XKCD recipe works and was wondering if there was any hope of getting one for :

Cyanide and Happiness (explosm.net/comics)

or

Saturday Morning Breakfast Cereal (smbc-comics.com)

with my limited knowledge, I tried a few things but was only successful in getting useless links and text and no pictures.

thanks in advance
See here for explosm:
https://www.mobileread.com/forums/sho...postcount=2263
Also search her for "explosm" to find some code to strip some non-comic links from the feed.
Starson17 is offline   Reply With Quote
Advert
Old 12-28-2010, 10:49 AM   #3
bluewolf8
Junior Member
bluewolf8 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi
Quote:
Originally Posted by Starson17 View Post
See here for explosm:
https://www.mobileread.com/forums/sho...postcount=2263
Also search her for "explosm" to find some code to strip some non-comic links from the feed.
when I put that in, it says:

Could not create recipe: Error
No Module named PythonMagickWand
bluewolf8 is offline   Reply With Quote
Old 12-28-2010, 01:15 PM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by bluewolf8 View Post
when I put that in, it says:

Could not create recipe: Error
No Module named PythonMagickWand
That was put in for image rotation. It's not needed. Try this:
Spoiler:
Code:
from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup
import re

class Explosm(BasicNewsRecipe):
    title               = 'Explosm Rotated'
    __author__          = 'Starson17'
    description         = 'Explosm'
    language            = 'en'
    use_embedded_content= False
    no_stylesheets      = True
    oldest_article      = 24
    remove_javascript   = True
    remove_empty_feeds    = True
    max_articles_per_feed = 10

    feeds = [
             (u'Explosm Feed', u'http://feeds.feedburner.com/Explosm')
             ]

    keep_only_tags     = [dict(name='div', attrs={'align':'center'})]
    remove_tags = [dict(name='span'),
                   dict(name='table')]

    extra_css = '''
                    h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
                    h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
                    p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
                    body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
		'''
Starson17 is offline   Reply With Quote
Old 12-28-2010, 01:56 PM   #5
bluewolf8
Junior Member
bluewolf8 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi
Quote:
Originally Posted by Starson17 View Post
That was put in for image rotation. It's not needed. Try this:
Spoiler:
Code:
from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup
import re

class Explosm(BasicNewsRecipe):
    title               = 'Explosm Rotated'
    __author__          = 'Starson17'
    description         = 'Explosm'
    language            = 'en'
    use_embedded_content= False
    no_stylesheets      = True
    oldest_article      = 24
    remove_javascript   = True
    remove_empty_feeds    = True
    max_articles_per_feed = 10

    feeds = [
             (u'Explosm Feed', u'http://feeds.feedburner.com/Explosm')
             ]

    keep_only_tags     = [dict(name='div', attrs={'align':'center'})]
    remove_tags = [dict(name='span'),
                   dict(name='table')]

    extra_css = '''
                    h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
                    h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
                    p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
                    body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
		'''
Thanks!
That worked, does anyone have something that will work for SMBC?
bluewolf8 is offline   Reply With Quote
Advert
Old 01-02-2011, 01:06 PM   #6
bluewolf8
Junior Member
bluewolf8 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi
I'm still looking for someone that can either give me or help me make my own recipe for SMBC.

Thanks in advance
bluewolf8 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Calibre + Dropbox = unclouded happiness dpierron Related Tools 143 10-30-2011 07:01 AM
Request for recipes of sites with no rss PipSqueak Recipes 1 10-16-2010 10:05 PM
Request for recipes mccande Calibre 4 12-26-2008 01:05 AM
Request for Recipes GPThomson Calibre 2 11-21-2008 12:19 PM
Request for Recipes girlperson1 Calibre 4 11-12-2008 03:25 PM


All times are GMT -4. The time now is 08:39 AM.


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