Maximum Recursion Depth Exceeded Error

31 views
Skip to first unread message

SiWi

unread,
Sep 23, 2007, 4:40:58 AM9/23/07
to beautifulsoup
First of all I want to say I like BeatifulSoup very much and it was
very helpful so far.
Now I have a little problem:
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen('http://www.coh-stats.com/factions/british/
weapons/leeenfield.html')
soup = BeautifulSoup(page)
soup.prettify()
a=soup.findAll('td')
b = a[8].contents[0]
print b

When I run this code I get an maximum recursion depth exceeded error.
Thank you for your help.

ab

unread,
Sep 23, 2007, 5:30:47 PM9/23/07
to beautifulsoup
If it fails on the findAll, try using the "limit" argument.
Reply all
Reply to author
Forward
0 new messages