...

View Full Version : Need To Download Files From An RSS Feed



AustinMatherne
11-15-2008, 11:02 PM
First off, I just want to say that my coding ability's are limited to XML, HTML and CSS, so this is a little over my head.

I need something that will download all files from an RSS feed that end with ether an xml, or xsd file extension.

I can think of a few RSS readers that could this, problem is the RSS feed that I need this done on, doesn't use the enclosure tag.

Here's how the item tags are laid out.


<item rdf:about="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/0001104659-08-071053-index.htm">
<title>AES CORP (0000874761) (Filer)</title>
<link>http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/0001104659-08-071053-index.htm</link>
<description>8-K</description>
<pubDate>Fri, 14 Nov 2008 16:54:52 EST</pubDate>
<edgar:xbrlFiling xmlns:edgar="http://www.sec.gov/Archives/edgar">
<edgar:companyName>AES CORP</edgar:companyName>
<edgar:formType>8-K</edgar:formType>
<edgar:filingDate>11/14/2008</edgar:filingDate>
<edgar:cikNumber>0000874761</edgar:cikNumber>
<edgar:accessionNumber>0001104659-08-071053</edgar:accessionNumber>
<edgar:fileNumber>001-12291</edgar:fileNumber>
<edgar:xbrlFiles>
<edgar:xbrlFile sequence="1" file="a08-24962_48k.htm" type="8-K" size="40135" description="8-K" url="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/a08-24962_48k.htm" />
<edgar:xbrlFile sequence="2" file="aes-20080930.xml" type="EX-100.INS" size="1051464" description="EX-100.INS" url="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930.xml" />
<edgar:xbrlFile sequence="3" file="aes-20080930.xsd" type="EX-100.SCH" size="15025" description="EX-100.SCH" url="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930.xsd" />
<edgar:xbrlFile sequence="4" file="aes-20080930_pre.xml" type="EX-100.PRE" size="176071" description="EX-100.PRE" url="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_pre.xml" />
<edgar:xbrlFile sequence="5" file="aes-20080930_lab.xml" type="EX-100.LAB" size="386366" description="EX-100.LAB" url="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_lab.xml" />
<edgar:xbrlFile sequence="6" file="aes-20080930_cal.xml" type="EX-100.CAL" size="113875" description="EX-100.CAL" url="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_cal.xml" />
<edgar:xbrlFile sequence="7" file="aes-20080930_def.xml" type="EX-100.DEF" size="27230" description="EX-100.DEF" url="http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_def.xml" />
</edgar:xbrlFiles>
</edgar:xbrlFiling>
</item>

In the item section above, I would need the following six files downloaded:

http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930.xml
http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930.xsd
http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_pre.xml
http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_lab.xml
http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_cal.xml
http://www.sec.gov/Archives/edgar/data/874761/000110465908071053/aes-20080930_def.xml


There are a little over 500 item sections in the RSS feed, each with six files I need to download. This feed is updated every night with new submissions, and I would need to be able to automatically download the new files as they come online, without downloading the files that it's previously downloaded.

Also, I would want all of these files dumped into the same folder.

Here's a direct link to the RSS feed if anyone wants to take a look.
http://www.sec.gov/Archives/edgar/xbrlrss.xml

I would greatly appreciate any help,
~ Austin

byuhobbes85
11-29-2008, 04:25 PM
Austin,

Are you looking for software that will do this for you, or do you want to write your own software?


First off, I just want to say that my coding ability's are limited to XML, HTML and CSS, so this is a little over my head.

If you're need to write your own software, then this is a problem. You will not be able to download and write files to a disk with client-side operations. You will need access to something more powerful on the server side (PHP, Java, Perl/CGI, etc).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum