Thread: Rss2Book
View Single Post
Old 04-09-2007, 12:30 PM   #175
mantici
Junior Member
mantici began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2007
oK Ok OK. . .i GIVE (Please help)

i'm trying. . .and i'm a developer. . .so you'd think that this regex stuff would be simple. . . but it's just not workin. . . anyone???

here's the details:

im trying to pull:
http://www.newstimeslive.com/rss/local_news.xml

the place for content is:
http://www.newstimeslive.com/storyprint.php?id=1043582

XML link data is:
<link>http://www.newstimeslive.com/news/story.php?id=1043582</link>

so you say . . .OH that's easy!!!!
LE = link
LEP = (\d+)
LR = http://www.newstimeslive.com/storyprint.php?id={0}

and boom i'm done. . . NOT.


i get:
Processing News Times Local
Got link from RSS: http://www.newstimeslive.com/news/story.php?id=1043639
Mon,09 Apr 2007 11:04:20 -0400 is in range

Done link extraction{0} = 3
Reformatted link is http://www.newstimeslive.com/storyprint.php?id=3

where on EARTH does 3 come from???? the LAST character. . . but that's not the regex i entered


so i try LEP = id=(\d+)

i get:

Processing News Times Local
Got link from RSS: http://www.newstimeslive.com/news/story.php?id=1043639
Mon,09 Apr 2007 11:04:20 -0400 is in range

Done link extraction{0} = 949
Reformatted link is http://www.newstimeslive.com/storyprint.php?id=949
Final content:

HUH??? 949??? that's not even in the string!!!!
this doesn't make any sense. . . when i put this into REGEX testers online, it seems to work.
Any thoughts to what i'm doing wrong???


an example of an XML RSS item is:

<item>
<link>http://www.newstimeslive.com/news/story.php?id=1043583</link>
<description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="html">An Evening of Brahms. Join the Ridgefield Symphony Orchestra Saturday at 8 p.m. for a &amp;quot;Brahms Blockbuster.&amp;quot; The concert will be at Ridgefield High School's auditorium, 700 North Salem Road (Route 116). Pianist Rui Shi will perform with the orchestra. Tickets are $25, $40 and $50 for adults and $15, $25 and $30 for youths 18 and under. For reservations call the RSO office at (203) 438-3889. </description>
<pubDate>Mon, 09 Apr 2007 12:04:03 GMT</pubDate>
<atomublished xmlns:atom="http://www.w3.org/2005/Atom">2007-04-09T12:04:03Z</atomublished>
<atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2007-04-09T12:04:03Z</atom:updated>
<cfi:id>988</cfi:id><cfi:read>true</cfi:read>
<cfi:downloadurl>http://www.newstimeslive.com/rss/local_news.xml</cfi:downloadurl>
<cfi:lastdownloadtime>2007-04-09T12:15:12.647Z</cfi:lastdownloadtime>
</item>

<item>

Last edited by mantici; 04-09-2007 at 07:51 PM. Reason: fixed typo in content link
mantici is offline   Reply With Quote