On Nov 17, 3:45 am, "Vladimir Rusinov" <[EMAIL PROTECTED]>
wrote:
> Hello!
>
> I'm using beautiful soup html parser, and I need to get all ' class=g>...' tags.
> It can be done by:
>
> import BeautifulSoup as BSoup
>
> ...
>
> soup = BSoup(page)
> for div in soup.findAll('div', class='g'):
>
>
Vladimir Rusinov <[EMAIL PROTECTED]> wrote:
> I'm using beautiful soup html parser, and I need to get all ' class=g>...' tags.
> It can be done by:
>
> import BeautifulSoup as BSoup
from BeautifulSoup import BeautifulSoup as BSoup
>
> ...
>
> soup = BSoup(page)
> for div in soup.findAll('div',
Vladimir Rusinov wrote:
> I'm using beautiful soup html parser, and I need to get all ' class=g>...' tags.
> It can be done by:
>
> import BeautifulSoup as BSoup
>
> ...
>
> soup = BSoup(page)
> for div in soup.findAll('div', class='g'):
>
>
> But how can I use `class` as kwarg name?
# h
> But how can I use `class` as kwarg name?
soup.findAll('div', **{'class':'g'})
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
I'm using beautiful soup html parser, and I need to get all '...' tags.
It can be done by:
import BeautifulSoup as BSoup
...
soup = BSoup(page)
for div in soup.findAll('div', class='g'):
But how can I use `class` as kwarg name?
--
Vladimir Rusinov
GreenMice Solutions: IT-решения