Skip to main content

Scrape any webpage into clean markdown

Project description

hej-ai-crawler

Scrape any webpage into clean markdown.

Install

pip install hej-ai-crawler

Usage

import asyncio
from hej_ai_crawler import crawler

scrape = crawler("your-api-key")

async def main():
    page = await scrape("https://example.com")
    print(page.title)    # "Example Domain"
    print(page.markdown) # clean markdown content
    print(page.links)    # internal links found on the page

asyncio.run(main())

Scraping modes

# Fast HTTP fetch + Readability extraction
await scrape("https://example.com", "static")

# Full headless browser render (default)
await scrape("https://example.com", "playwright")

# Tries static first, uses browser if content differs significantly
await scrape("https://example.com", "scout")

Response

ScrapedPage dataclass with fields:

  • url — final URL after redirects
  • title — page title
  • markdown — page content as markdown
  • links — internal links found
  • mode — mode used to produce the result

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

hej_ai_crawler-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

hej_ai_crawler-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file hej_ai_crawler-0.1.0.tar.gz.

File metadata

  • Download URL: hej_ai_crawler-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for hej_ai_crawler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2d86dbc4eed60e2765b9575646193b14597d1245665d32235b44fdce75e3b36
MD5 9ab87aaa781fbc517db027d3f4b921b4
BLAKE2b-256 138d173ed90aadb6e230166a5d4bc29f3196dd40a8610adf18a7e6265bbe89d2

See more details on using hashes here.

File details

Details for the file hej_ai_crawler-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hej_ai_crawler-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for hej_ai_crawler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77059de14d1b9490923f2ddf76a287f8bbb516bcc7b7c19b2f5b83e8d77bd295
MD5 bd34b4f2ae2e1ba2fb701f1d07706a3d
BLAKE2b-256 9c4cf513501eb99381e01aca905f05474d1005794befc629bc8845022869ab00

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