Merge branch 'master' of git://github.com/lapilofu/philo
[philo.git] / contrib / sobol / search.py
index 843af81..33603f3 100644 (file)
@@ -362,7 +362,7 @@ else:
                def parse_response(self, response, limit=None):
                        strainer = self.strainer
                        soup = BeautifulSoup(response, parseOnlyThese=strainer)
-                       return self.parse_results(soup[:limit])
+                       return self.parse_results(soup.findAll(recursive=False, limit=limit))
                
                def parse_results(self, results):
                        """