diff --git a/internetarchive/search.py b/internetarchive/search.py index 9648ce12..5260b7b7 100644 --- a/internetarchive/search.py +++ b/internetarchive/search.py @@ -148,7 +148,7 @@ def _scrape(self): j = r.json() if j.get('error'): yield j - num_found = j['total'] + num_found = int(j['total']) self._handle_scrape_error(j) self.params['cursor'] = j.get('cursor')