Web Scraper Test Website

Geolocation Test Page

This page demonstrates geolocation detection to test the country and geolocation parameters.

Page Information

This page will attempt to detect your geolocation using various methods and display the results.

Browser Geolocation

This section uses the browser's Geolocation API to determine your location:

Click the button above to get your location.

IP-Based Geolocation

This section uses IP-based geolocation to estimate your location:

IP-based location data loaded.
Client IP: 216.73.216.106
Country by IP: Not detected
Local GeoIP DB: Loaded — DB-IP (local)
GeoIP Result: United States (US) - Columbus

Testing Instructions

When testing the screenshot service with this page:

  1. First take a screenshot with default settings to establish a baseline.
  2. Then set the country parameter in your screenshot request to specify a geographic location.
  3. Alternatively, set the geolocation parameter to specify exact coordinates.
  4. Verify that the screenshot shows the specified location information.

Sample API Requests:

POST /v1.0/screenshot
{
  "url": "http://localhost:8000/geolocation",
  "format": "png"
}
POST /v1.0/screenshot
{
  "url": "http://localhost:8000/geolocation",
  "format": "png",
  "country": "US"
}
POST /v1.0/screenshot
{
  "url": "http://localhost:8000/geolocation",
  "format": "png",
  "geolocation": "40.7128,-74.0060"
}