Re: [WebDNA] Downloading and combining RSS feeds

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108556
interpreted = N
texte = > Has anyone used TCPconnect to pull down RSS feeds, parse the RSS feeds = using XMLparse, andadd the contents to a WebDNA database, and then write = out a new combined RSS feed? If it's RSS, you don't need to use TCP, just add [xmlparse = var=3Dxml_var1&source=3Dhttp://something.blogspot.com/somefeed.rss][/xmlpa= rse] I don't know the exact nodes, but you can do something like this... [xmlnodes path=3Dnamed:rss/channel/item&ref=3Dxml_var1] [replace db=3DfeedDb.db&eqGUIDdatarq=3D[xmlnode = path=3Dnamed:guid][value][/xmlnode]&append=3DT]guid=3D[xmlnode = path=3Dnamed:guid][value][/xmlnode]&title=3D[xmlnode = path=3Dnamed:title][value][/xmlnode]&description=3D[xmlnode = path=3Dnamed:description][value][/xmlnode][/append] [/xmlnodes] Don't hold me to this, this is just off the top of my head, but I think = you can use the GUID as the unique identifier. Of course, you'll have = to look at the raw XML to see what nodes you want to pull out. Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Downloading and combining RSS feeds (Tom Duke 2012)
  2. Re: [WebDNA] Downloading and combining RSS feeds (aaronmichaelmusic@gmail.com 2012)
  3. [WebDNA] Downloading and combining RSS feeds (Tom Duke 2012)
> Has anyone used TCPconnect to pull down RSS feeds, parse the RSS feeds = using XMLparse, andadd the contents to a WebDNA database, and then write = out a new combined RSS feed? If it's RSS, you don't need to use TCP, just add [xmlparse = var=3Dxml_var1&source=3Dhttp://something.blogspot.com/somefeed.rss][/xmlpa= rse] I don't know the exact nodes, but you can do something like this... [xmlnodes path=3Dnamed:rss/channel/item&ref=3Dxml_var1] [replace db=3DfeedDb.db&eqGUIDdatarq=3D[xmlnode = path=3Dnamed:guid][value][/xmlnode]&append=3DT]guid=3D[xmlnode = path=3Dnamed:guid][value][/xmlnode]&title=3D[xmlnode = path=3Dnamed:title][value][/xmlnode]&description=3D[xmlnode = path=3Dnamed:description][value][/xmlnode][/append] [/xmlnodes] Don't hold me to this, this is just off the top of my head, but I think = you can use the GUID as the unique identifier. Of course, you'll have = to look at the raw XML to see what nodes you want to pull out. aaronmichaelmusic@gmail.com

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Normalizing Dates and Phone numbers (2000) Unix line endings (2003) WebCatalog seems to choke on large (2meg) html files. (1998) Searching Multiple DBs (1997) Bug? (1997) Getting total number of items ordered (1997) Multiple matches in a search (2004) [WebDNA] Date/time server vs. browser (2015) return missing item (was:WebCat Sales) (1997) Showing unopened cart (1997) Problems passing [SKU] with $Replace in 2.0 (1997) WebCatalog 4.0 Users that want to talk to the Media.... (2000) [WebDNA] WebDNA 8.2 and BioType (2016) The BUG is BACK -- leading < character (1998) Calendar (1997) File Upload (1997) Looking for a host (1997) Sample Tearoom Search Error (1997) User Defined Sorting (1997) SiteGuard Admin Feature ? (1997)