04-24-2005, 01:28 AM | #1 |
Recovering Gadget Addict
Posts: 5,381
Karma: 676161
Join Date: May 2004
Location: Pittsburgh, PA
Device: iPad
|
Anyone created SDLs for Yahoo News Feeds?
I've been away from Sunrise for a while, waiting for the new reader software, but can't stand to wait any longer, so I'm back to using it.
Yahoo has a lot of RSS feeds (most are at http://news.yahoo.com/rss). Does anyone have these as SDL site definitions for Sunrise already? Or have the time and interest to create a few? I know this is a bit of a longshot, but here are the ones I'm interested in:
|
04-24-2005, 02:11 PM | #2 |
Is papyrophobic!
Posts: 1,926
Karma: 1009999
Join Date: Aug 2003
Location: USA
Device: Dell Axim
|
I am interested as well. Perhaps Laurens (or someone else) could give us some guidance?
|
Advert | |
|
04-28-2005, 08:17 AM | #3 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Sep 2004
Device: T|T3
|
I'll give it a shot. Hopefully I'll have something to share by the end of the weekend.
|
04-28-2005, 12:10 PM | #4 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Sep 2004
Device: T|T3
|
Unless I'm missing something, this looks pretty easy to set up. I thought it may be useful to describe the process I used... that way others can just duplicate it for their own feeds. As the saying goes, "Give a man a fish and he's fed for the day, teach a man to fish and he's fed for a lifetime." (or something like that).
Here is what I did to create a document corresponding to Yahoo's Oddly Enough feed: 1. Select File -> New Document 2. Give the document a name OddlyEnough 3. Enter URL/File: http://rss.news.yahoo.com/rss/oddlyenough (note: if you copy the URL to the clipboard before step 1, the URL will be automatically filled in for you) 4. Modify Link depth to 1 with no restriction 5. Add scheduling as desired. 6. Be sure that a destination has been selected in the Output tab 7. On the Advanced tab, selected Embedded for the script and click on Edit Script... 8. Enter the following script in the window that pops up: Code:
document.onanchorlink = function(link) { if (link.depth == 1) { link.uri = link.uri.replace("/news?tmpl=story&u=", "/s"); link.uri = link.uri + "&printer=1"; } }; Once you have one document set up the way you want it, you can duplicate it and just change the name and url (just for the Yahoo feeds). I hope this helps. Please let me know if you have any questions or suggestions. |
04-28-2005, 12:41 PM | #5 |
Recovering Gadget Addict
Posts: 5,381
Karma: 676161
Join Date: May 2004
Location: Pittsburgh, PA
Device: iPad
|
Exellent! I think I can fish now!
The problem for me was how to do the url manipuation. Your example turned a light bulb on for me. Previously could only do straight text replacements (i.e. as done on the 3rd line of your example.) Now I can see how to do multiple replace and append operations, which greatly multiplies the number of sites with URL rewrites I can accomplish. Next I need to discover an alternative for Vade Mecum on PPC. It seems to corrupt my Toshiba PPC every time I start using it regularly. Might be a conflict with another program. But it just crashed it again this week, so I'm a little gun shy. I'll see if I can use my old Palm IIIxe as a reader for now. Thanks much Taylor. |
Advert | |
|
04-29-2005, 08:28 AM | #6 | |
Uebermensch
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
Quote:
|
|
04-30-2005, 10:37 PM | #7 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Sep 2004
Device: T|T3
|
The first stuff in quotes is the part of the original URL that I didn't want, the stuff in the second set of quotes is what I wanted to be placed in the URL instead.
|
05-01-2005, 07:47 AM | #8 |
Jah Blessed
Posts: 1,295
Karma: 1373
Join Date: Apr 2003
Location: The Netherlands
Device: iPod Touch
|
Contrary to what I said earlier, scripting will still be supported in the commercial version. (Most likely, it will use the SpiderMonkey engine from Mozilla.)
|
05-01-2005, 08:04 AM | #9 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Sep 2004
Device: T|T3
|
That's great news Laurens. I almost mentioned earlier in this thread that script was going to be eliminated (based on earlier comments from you)... glad I didn't mention it.
|
05-01-2005, 09:51 AM | #10 |
Recovering Gadget Addict
Posts: 5,381
Karma: 676161
Join Date: May 2004
Location: Pittsburgh, PA
Device: iPad
|
I did some more digging in hopes of getting info that would help me with the scripting/link rewrites. Looks like there is some great info right there in the help files... From the Sunrise desktop, Help, and then look at advanced topics. Don't understand all that's there yet as I only took a quick first glance, but it seems to handle thinks like selective filtering for various link depths, and regular expressions, etc.
But the way I read things, if you really need something fancy like stripping out areas of content, I guess you need to use the XSL transformations, which probably aren't especially technically challenging, but more time consuming. At this point, I don't even have a clue how to go about something like that, but it's probably more work than I would do for any particular sites anyway. The other scripting seems to be a form of Javascript minus some server-side specific features. I'm also really glad to hear that a form of scripting will be included in the new product! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ebook created from news feed - chapter 1 is off on Nook | flyash | Calibre | 0 | 06-27-2010 10:22 AM |
Kindle 2 and News Feeds | Bookworm88 | Calibre | 18 | 09-02-2009 07:48 PM |
Question about news feeds | enarchay | Calibre | 4 | 06-02-2009 06:53 PM |
Problem with News Feeds | Sydney's Mom | Calibre | 10 | 03-07-2009 02:54 PM |
Yahoo! Finance News through RSS feeds | TadW | Lounge | 0 | 01-13-2005 09:06 AM |