vulnersCom / api

Vulners Python API wrapper
GNU General Public License v3.0
356 stars 60 forks source link

Updating code to explicitly fail if skip greater than 10000 #24

Closed jsvasquez closed 3 years ago

jsvasquez commented 3 years ago

First: Just updating the samples codebase Second: Allowing the API to explicitly fail when trying to skip more than 10000 records in the request to Vulners instead of silently failing with no retrieved records. This lets the user know that something is going wrong with the request and that the API was unable to retrieve the entire list of records as it was supposed to. Note: IMHO, these conditions were failing, please correct if I'm wrong.

Totally open to suggestions and/or edits.

Thank you.