View Single Post
Old 11-17-2010, 06:24 PM   #1
boocko
Junior Member
boocko began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: kindle3
keep_only_tags and findAll

Hello!

How does keep_only_tags pass parameters to soup's findAll?
Is it possible to do something as:

soup.findAll('p', limit=3)

with keep_only_tags syntax?

I want to keep only first div tag with a certain class attribute.
boocko is offline   Reply With Quote