Skip to main content

WebQuest is an extensible Python toolkit for high-level web scraping, built around a generic Playwright-based scraper interface for quickly building, running, and reusing custom scrapers.

Project description

WebQuest Logo

WebQuest

WebQuest is an extensible Python toolkit for high-level web scraping, built around a generic Playwright-based scraper interface for quickly building, running, and reusing custom scrapers.

For detailed usage instructions and API reference, please visit the documentation.

To use WebQuest as a Model Context Protocol (MCP) server, please visit the WebQuest MCP repository.

Scrapers

Browsers

  • Hyperbrowser: A cloud-based browser service for running Playwright scrapers without managing infrastructure.

Installation

Installing using pip:

pip install webquest

Installing using uv:

uv add webquest

Usage

To use Hyperbrowser, you need to set the HYPERBROWSER_API_KEY environment variable.

Example usage of the DuckDuckGo Search scraper:

import asyncio

from webquest.browsers import Hyperbrowser
from webquest.scrapers import DuckDuckGoSearch


async def main() -> None:
    scraper = DuckDuckGoSearch(browser=Hyperbrowser())

    response = await scraper.run(
        scraper.request_model(query="Pizza Toppings"),
    )
    print(response.model_dump_json(indent=4))


if __name__ == "__main__":
    asyncio.run(main())

You can also run multiple requests at the same time:

import asyncio

from webquest.browsers import Hyperbrowser
from webquest.scrapers import DuckDuckGoSearch


async def main() -> None:
    scraper = DuckDuckGoSearch(browser=Hyperbrowser())

    responses = await scraper.run(
        scraper.request_model(query="Pizza Toppings"),
        scraper.request_model(query="AI News"),
    )
    for response in responses:
        print(response.model_dump_json(indent=4))


if __name__ == "__main__":
    asyncio.run(main())

Disclaimer

This tool is for educational and research purposes only. The developers of WebQuest are not responsible for any misuse of this tool. Scraping websites may violate their Terms of Service. Users are solely responsible for ensuring their activities comply with all applicable laws and website policies.

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

webquest-0.12.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

webquest-0.12.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file webquest-0.12.1.tar.gz.

File metadata

  • Download URL: webquest-0.12.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for webquest-0.12.1.tar.gz
Algorithm Hash digest
SHA256 29c8a3b147244472a63552c6c418e4748c475e532606f94d2e2a3c5f9c7c96a8
MD5 7b2f50093dfef68e7bc4c418cf2eea90
BLAKE2b-256 43a4f466bdcf8a8c92dc9483f3b6eabca89a82558ea136f67a6622fdf5653470

See more details on using hashes here.

File details

Details for the file webquest-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: webquest-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for webquest-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4d1b29d0c848ee62133503f5064dc4f5bfd6ca72bc81a5505b6e1eb6348e797
MD5 4f07c7aabf3120ca48e55616e20dc86a
BLAKE2b-256 3c58bc81bdc510c2071f3bd4e8b9d5d64e1196e240d1e62dfee1de01cef39e69

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