tristantao / py-bing-search

Python Bing Search API
MIT License
46 stars 37 forks source link

Is there a way to not specify the limit in search_all? #11

Closed pwichmann closed 8 years ago

pwichmann commented 8 years ago

First, thank you for your work!

Is there a way to not specify the limit in search_all and just receive all results that Bing can provide?

tristantao commented 8 years ago

Believe it or not, your request made me spend an hour to rewrite the whole thing.

It now has a different behavior and you'll be able to continuously call search to grab the next page (as long as you have enough credits). This is as "unlimited" as it gets. I'm assuming you didn't mean receive back the entire 1.3 billion search results?

The issue is that I believe they limit the API call to only return 50 results per call, so you'd have to call it multiple times.

Check out the updated (or updating) README for more info.

pwichmann commented 8 years ago

Thank you for doing this! I appreciate your effort and did not want to leave this uncommented. Thank you!

tristantao commented 8 years ago

You're very welcome :) I was just glad someone cared enough about the package to want different features!