On Thu, 23 Feb 2012, Saad Javed wrote:
I am learning python and need guidance for
writing some code. I've written a simple
program (with pointers from people) that
parses an tv show xml feed and prints their
values in plain text after performing some
string operations.
Unless you're really i
Sorry for the formatting. Added return statements to both functions. Adding
return [x, y] to get_value func. That solved the problem. Thank you! :)
Saad
On Thursday, February 23, 2012, Alan Gauld wrote:
> On 23/02/12 00:59, Saad Javed wrote:
>
> [CODE]feed = urllib.urlopen(rssPage) #rssPage: ad
On 23/02/12 00:59, Saad Javed wrote:
[CODE]feed = urllib.urlopen(rssPage) #rssPage: address of xml feed
tree = etree.parse(feed)
x = tree.xpath("/rss/channel/item/title/text()")
x = str(x[0])
for tag in tags: #tags is a list of items like hdtv, xvid, 720p etc
x = re.sub(r'\b' + tag + r'\b', '',
On 2012-02-23 01:59, Saad Javed wrote:
I am learning python and need guidance for writing some code. I've written
a simple program (with pointers from people) that parses an tv show xml
feed and prints their values in plain text after performing some string
operations.
[CODE]feed = urllib.urlope