Generating Filenames from Feeds

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Mar 14 18:58:25 EDT 2013


On Thu, 14 Mar 2013 11:19:18 -0700, Chuck wrote:

>> Seriously, if you don't post a minimal code example that shows the
>> problem and with a full traceback you are asking strangers to do magic
>> tricks for your pleasure.
> 
> I'm asking more for a better way of generating destination filenames,
> not so much debugging questions.  I only put my attempts there to show
> people that I was actually trying something, and not just relying on
> people to do my thinking for me.
> 
> I'm trying to take a feed such as this
> 
> http://www.theskepticsguide.org/feed/rss.aspx?feed=SGU
> 
> and parse some useful data out of it for a destination filename.  The
> solution should be general, and not just for this particular feed.

There is no such general solution, because "some useful data" will depend 
on what you intend to do with it, what the feed is, and what *you* 
consider "useful".

Your earlier approach is probably fine, once you fix the syntax error.


-- 
Steven



More information about the Python-list mailing list