achillean / shodan-python

The official Python library for Shodan
https://developer.shodan.io
Other
2.51k stars 569 forks source link

Add API Rate Limiting to Shodan Class #141

Closed malvidin closed 2 years ago

malvidin commented 4 years ago

This pull adds API rate limits to the Shodan class, with a default of 1 query per second per class. It also includes minor changes:

malvidin commented 4 years ago

Per https://developer.shodan.io/api: Note: All API methods are rate-limited to 1 request/ second.

achillean commented 4 years ago

All of the changes look good! Sorry I missed this PR. I'll do some more testing but this should get merged soon and I'll make a new release for it.