View Single Post
Old 07-27-2012, 07:35 AM   #2
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
Very strange, this works for me:
PHP Code:
for section in soup.findAll('section'):
    for 
post in section.findAll('a', {'class''package-link'}):
        print 
post 
Are you sure that you aren't somehow terminating your for-loop prematurely or have some specific control structures that prevent the post from getting printed? More code would be helpful.
cryzed is offline   Reply With Quote