Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68822

Re: help with for loop----python 2.7.2

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: help with for loop----python 2.7.2
Date 2014-03-24 09:39 +1100
References <84eb4c69-d43d-4777-8a99-34eed9be73d6@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.8420.1395614361.18130.python-list@python.org> (permalink)

Show all headers | View raw


teddybubu@gmail.com writes:

> I am trying to get all the element data from the rss below.

[…]

> from bs4 import BeautifulSoup 
>
> soup = BeautifulSoup(urlopen('http://bl.ocks.org/mbostock.rss'))

RSS is not HTML; so BeautifulSoup is not a good tool to use for parsing
RSS.

Instead, you will do better if you use one of the libraries already
written for RSS parsing <URL:https://wiki.python.org/moin/RssLibraries>.

-- 
 \                                             “To be is to do” —Plato |
  `\                                       “To do is to be” —Aristotle |
_o__)                                        “Do be do be do” —Sinatra |
Ben Finney

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

help with for loop----python 2.7.2 teddybubu@gmail.com - 2014-03-22 04:21 -0700
  Re: help with for loop----python 2.7.2 Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-22 06:00 -0600
  Re: help with for loop----python 2.7.2 tad na <teddybubu@gmail.com> - 2014-03-23 10:29 -0700
    Re: help with for loop----python 2.7.2 tad na <teddybubu@gmail.com> - 2014-03-23 10:30 -0700
      Re: help with for loop----python 2.7.2 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-23 17:40 +0000
        Re: help with for loop----python 2.7.2 tad na <teddybubu@gmail.com> - 2014-03-23 10:49 -0700
      Re: help with for loop----python 2.7.2 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-23 18:43 +0000
    Re: help with for loop----python 2.7.2 Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-23 11:49 -0600
      Re: help with for loop----python 2.7.2 tad na <teddybubu@gmail.com> - 2014-03-23 14:51 -0700
        Re: help with for loop----python 2.7.2 Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-23 16:44 -0600
  Re: help with for loop----python 2.7.2 Ben Finney <ben+python@benfinney.id.au> - 2014-03-24 09:39 +1100

csiph-web