Skip to main content

Official Python SDK for Geekflare API

Project description

geekflare-api

Official Python SDK for the Geekflare API.

Installation

pip install geekflare-api

Quick Start

from geekflare_api.client import GeekflareClient
from geekflare_api.models import WebScrapeDto

with GeekflareClient(api_key="your-api-key") as client:
    result = client.web_scrape(WebScrapeDto(url="https://toscrape.com/"))
    print(result)

Available Methods

Method Description
client.meta_scrape(body) Scrape meta tags from a URL
client.web_scrape(body) Scrape web page content
client.dns_record(body) Look up DNS records
client.screenshot(body) Take a screenshot of a URL
client.site_status(body) Check if a site is up or down
client.redirect_check(body) Check redirect chain of a URL
client.broken_link(body) Find broken links on a page
client.url2_pdf(body) Convert a URL to PDF
client.open_ports(body) Scan open ports on a host
client.tls_scan(body) Scan TLS/SSL configuration
client.load_time(body) Test page load time
client.mixed_content(body) Check for mixed content issues
client.dns_sec(body) Check DNSSEC configuration
client.mtr(body) Perform MTR network test
client.ping(body) Ping a host
client.lighthouse(body) Run Lighthouse audit
client.search(body) Perform a web search

Error Handling

from geekflare_api.exceptions import ApiException

try:
    result = client.web_scrape(WebScrapeDto(url="https://toscrape.com/"))
except ApiException as e:
    print(f"API error {e.status}: {e.reason}")

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geekflare_api-0.1.1.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geekflare_api-0.1.1-py3-none-any.whl (162.4 kB view details)

Uploaded Python 3

File details

Details for the file geekflare_api-0.1.1.tar.gz.

File metadata

  • Download URL: geekflare_api-0.1.1.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for geekflare_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12779a024d8cda9d3db2ea9fa3823637d2685d9907de42a87f58a4fbd2074a98
MD5 53049a2219e0b7e6d1836275caf26bd4
BLAKE2b-256 1e5e74eff0b6e89823caa77629ef6ff1027d8a252ebf55c2ffc5aa6a81e96f53

See more details on using hashes here.

File details

Details for the file geekflare_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: geekflare_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 162.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for geekflare_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4f162ca2f23d9dd74d2d53fed729ce2fdd097dc81e916684627f87c98c8804f
MD5 5f5502b8067f24efbe10f0927e9c329a
BLAKE2b-256 0063124eb9e2214282f2f116f2d79de493ed0714b0166ad84f3d1987741ffc9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page