01-06-2007, 02:17 PM | #1 |
Intentionally Left Blank
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
|
Printer-Friendly Versions on Fox News
I've been trying to get the printer-friendly versions of Fox News articles, with no luck, even though it looks simple.
Example: One of the business article links is: http://www.foxnews.com/story/0,2933,241529,00.html Its printer-friendly version is: http://www.foxnews.com/printer_friendly_story/0,3566,241529,00.html My attempted rewrite was as follows. Filter: .*story/0,2933.* Rewritten as: $1printer_friendly_story/0,3566$2 When I do this, all of the links are dead. Any ideas? |
01-06-2007, 09:55 PM | #2 |
Junior Member
Posts: 7
Karma: 41
Join Date: Nov 2006
Device: PalmOne Zire 31
|
I believe the problem is the "$2". Try making the filter http://www\.foxnews\.com/story/0,2933.* and the rewritten http://www.foxnews.com/printer_friendly_story/0,3566$1.
|
01-06-2007, 10:09 PM | #3 |
Intentionally Left Blank
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
|
Thanks, Jupiter, but unfortunately that doesn't work either. But it should. The mystery continues.
|
01-07-2007, 04:33 PM | #4 |
Junior Member
Posts: 7
Karma: 41
Join Date: Nov 2006
Device: PalmOne Zire 31
|
When you tap on the link, and the "link not found" dialog appeares, what does it say the link URL is?
|
01-07-2007, 06:27 PM | #5 |
Intentionally Left Blank
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
|
Interestingly enough, it's:
http://www.foxnews.com/printer_friendly_story/0,3566 just as though it ignored the $1, or it failed to pick up the .* portion. I double-checked everything in the rewrite dialog, and I have the link depth set to 1 with no restriction. |
01-08-2007, 05:53 AM | #6 | |
Member
Posts: 19
Karma: 29
Join Date: Sep 2006
Device: Palm TX
|
Quote:
It's very strange this behaviour. I tried others rules, but it didn't works. It looks like the number portion of the $1 parameter doesn't works. Infact I tried this rule: Pattern: http://www\.foxnews\.com/story/0,2933,.*,00.html Rewrite rule: http://www.foxnews.com/printer_friendly_story/0,3566,$1,00.html When I downloaded the articles, I get this broken link URL: http://www.foxnews.com/printer_frien...,3566,,00.html Tried also removing either commas before and after the parameter, but no success. I'll continue trying. Regards Gaetano |
|
01-08-2007, 11:55 AM | #7 |
Intentionally Left Blank
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
|
The plot thickens!
In an attempt to see if the issue is within Sunrise or if the Fox News links are just too odd to convert, I tried the following: Filter: .* Rewrite as: http://www.foxnews.com/printer_friendly_story/0,3566,242337,00.html (Notice that the article number changed. The one we had been working with doesn't seem to be available any longer.) This is obviously trivial, but should give you that story for every link on the page. They all fail. What you get is: 2337,00.htmlhttp://www.foxnews.com/printer_friendly_story/0,3566,242337,00.html And I think it's going to take Laurens to figure out how that happened! |
01-12-2007, 12:13 PM | #8 |
Intentionally Left Blank
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
|
How amazingly stupid of me!
It works just fine when I rid my filter expression of the syntax error! In each case, the .* in the filter should have been (.*). Thanks to Jupiter and PippoPippini for your help, and sorry for leading you astray! |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HP Starts Shipping iPad-Friendly Printer | kjk | Apple Devices | 7 | 06-29-2010 04:19 PM |
Fox News: Kindle may not "dominate" digital book market for long | astrodad | News | 19 | 08-18-2009 04:30 PM |
Kindle on Fox News | Virag | Amazon Kindle | 9 | 12-12-2008 01:57 PM |
Sur Amazon, des versions électroniques plus chères que les versions papier | IreneDelse | Amazon Kindle | 8 | 08-29-2008 08:35 AM |
Virtual Printer | phyzjqk | iRex | 4 | 02-15-2007 02:43 PM |