![]() |
#2746 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Aug 2010
Device: Kobo
|
Hello. Can someone give me some assistance in creating a recipe for a site that does not have an RSS feed?
The base url is "http://archiveofourown.org/tags/Sherlock%20(TV)/works" but the actual story titles seem to be located within HTML code that looks like this on the page; Code:
<!--title, author, fandom--> <div class="header module"> <h4 title="title"> <a href="/works/117685">Disorder</a> by <!-- do not cache --> </h4> Thanks. |
![]() |
![]() |
#2747 |
Member
![]() Posts: 19
Karma: 10
Join Date: Feb 2010
Location: Los Angeles, CA
Device: Kindle 3
|
I'd like to set calibre up on a cron schedule for automatic downloading without having to start up the application.
There are some stock recipes that I use to pull down news feeds and such. I noticed with the command line utility ebook-convert, you can get a list of built-in recipes. But how do you use a built in recipe from the list? I tried: Code:
ebook-convert "New York Times Top Stories" nyt.mobi |
![]() |
Advert | |
|
![]() |
#2748 |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
can someone help me with this regexp please? I suck at regex ![]() Trying to find (Today's Nuze) i tried the following with no success Code:
preprocess_regexps = [ (re.compile(r'(Today)(.).*?(\\s+)(Nuze), re.DOTALL|re.IGNORECASE),lambda match: '')] Last edited by TonytheBookworm; 09-17-2010 at 06:14 PM. Reason: figured it out |
![]() |
![]() |
#2749 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@krunk: append .recipe to the title
|
![]() |
![]() |
#2750 |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Neal Boortz Nuze
here is the recipe for Nealz Nuze. The show notes for the National Syndicated (U.S.) talk show host Neal Boortz.
Last edited by TonytheBookworm; 09-17-2010 at 06:36 PM. Reason: fixed recipe |
![]() |
Advert | |
|
![]() |
#2751 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2010
Device: Nook
|
Python Env
Quote:
I would like to use the standalone Python environment that would allow me to use the GUI. Unless I missed something, Calibre-debug would only load a CLI. For me the real solution would be to find docs/info on installing the Calibre specific packages into the site-packages for Python. Then I can play with the recipes as just standalone python procedures. |
|
![]() |
![]() |
#2752 |
Enthusiast
![]() Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
hi can anyone help me with the recipe for industry week
http://www.industryweek.com/Archive.aspx |
![]() |
![]() |
#2753 |
Member
![]() Posts: 19
Karma: 10
Join Date: Feb 2010
Location: Los Angeles, CA
Device: Kindle 3
|
|
![]() |
![]() |
#2754 | |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
It has a form that you select the different year but I'm not sure what the actual true urls are that it uses on that. So I just stuck with the current month year since I figured that is what you would want anyway. If you will look even though September 2010 is selected on the page the article content still says August 18 or whatever. That is the same date that is on the original page. Anyway the only thing that I don't understand how to do is get the description to drop the text that is inside the <a>. Once that is done I will post an update. Updated Code to do descr correctly Spoiler:
Last edited by TonytheBookworm; 09-18-2010 at 01:54 PM. Reason: modified code (considered complete) |
|
![]() |
![]() |
#2755 |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
If you have something like this:
Spoiler:
how would you go about getting the text inside the p? I tried doing something like this but ended up getting the text inside the a tag as well. Spoiler:
|
![]() |
![]() |
#2756 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
1) grab the parent of item (<p>) and extract() item, leaving a p with self.tag_to_string of what you want, or 2) perhaps, just grab item.next.next.next I always need to test to be sure, but one of those should work. edit: I see your post above, I tested it and they both work. This worked best: Code:
descr = item.parent item.extract() descr = self.tag_to_string(descr) Last edited by Starson17; 09-18-2010 at 10:07 AM. |
|
![]() |
![]() |
#2757 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Sep 2010
Device: Nexus7
|
Wondering if someone might be able to review the current Seattle Times recipe?
Current version picks up a lot of articles more than once. It would also be fantastic if the output could have a table of contents type organization section built around the top darkblue rollover bar. Wish I could this myself... |
![]() |
![]() |
#2758 | |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
Good luck and let us know if we can help. But seriously give it a shot and you will be amazed of how quick you pick it up. |
|
![]() |
![]() |
#2759 | |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
|
|
![]() |
![]() |
#2760 |
Zealot
![]() Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
|
i am having trouble with my recipe:
Spoiler:
I ran ebook-convert and I think this is the relevant output: Spoiler:
if not, pleas tell me where to look. and thank you starson for the help so far. i think this message was posted in orderly fation ![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column read ? | pchrist7 | Calibre | 2 | 10-04-2010 02:52 AM |
Archive for custom screensavers | sleeplessdave | Amazon Kindle | 1 | 07-07-2010 12:33 PM |
How to back up preferences and custom recipes? | greenapple | Calibre | 3 | 03-29-2010 05:08 AM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |