Skip to content

feat: Refresh subnet countries with bulk lookups #13

Closed

Description

@Mathious6

Problem

Country is checked only during import with one API request per subnet. Failed lookups remain empty, existing values can become outdated, and many individual requests may trigger rate limiting.

Proposed change

Use the country.is bulk endpoint everywhere country lookup is needed, batching up to 100 subnet sample IPs per request. Fully remove the single-IP country lookup path.

Refresh the country of every probed subnet as part of probing, even when it already has a country, so missing or changed geolocation data is updated and persisted. Imports should use the same bulk lookup implementation.

Alternatives considered

Retrying individual lookups or refreshing only missing countries would not address rate limiting or countries that change over time.

Scope

  • This request fits proxybench's single-window proxy subnet workflow.

Activity

  1. Mathious6 commented on Aug 31, 2026

    @Mathious6
    OwnerAuthor

    Implemented in #17. This PR is stacked after #16.

  2. added a commit that references this issue on Aug 31, 2026
    d3f96b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions