Add support for fetching data from api.shodan.io to handle rate limits - #35
Open
dylan1501 wants to merge 8 commits into
Open
Add support for fetching data from api.shodan.io to handle rate limits#35dylan1501 wants to merge 8 commits into
dylan1501 wants to merge 8 commits into
Conversation
*Total -- 39.52kb -> 27.54kb (30.32%) /static/smap-demo.png -- 34.50kb -> 23.52kb (31.82%) /static/smap-logo.png -- 5.02kb -> 4.02kb (19.97%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Updated GitHub Actions workflow for Go CI to use newer action versions and improved caching.
[ImgBot] Optimize images
Renames the go.mod module path and all internal imports from s0md3v/smap to dylan1501/smap so `go install` works against this fork, and updates README badges/links to match.
--concurrency only bounds worker count, not request pacing, so a single worker could still blow past Shodan's ~1 req/sec API limit and silently drop hosts on 429. Add a shared rate limiter (default 1 req/sec, tunable with --shodan-rate) plus a few retries on 429 before giving up on a host.
GitHub's API can lag behind a just-pushed tag ref by a few seconds. When GoReleaser calls CreateRelease before the tag has propagated, GitHub silently creates the release under an auto-generated "untagged-<sha>" tag instead of the real one, leaving the intended release empty (this happened to the 0.3.1 release). A short sleep before the GoReleaser step gives the tag time to settle first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.