Skip to main content

Library for parsing SPA and MPA sites

Project description

Curcheck

Library for parsing spa and mpa sites.


Installation

pip install curcheck

How use

import asyncio

from pyppeteer.page import Page

from curcheck.router import ExecuteRouter
from curcheck.dispatcher import Dispatcher


dispatcher = Dispatcher()

router = ExecuteRouter(
    domain="https://web.whatsapp.com",
    is_spa=True,
    is_login=True
)


@router.page(
    url="/", 
)
async def start(page: Page):
    await asyncio.sleep(60)


async def main():
    dispatcher.include_router(router)
    await dispatcher.start(headless=False)


asyncio.run(main())

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

curcheck-1.2.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

curcheck-1.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file curcheck-1.2.0.tar.gz.

File metadata

  • Download URL: curcheck-1.2.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.5 Windows/10

File hashes

Hashes for curcheck-1.2.0.tar.gz
Algorithm Hash digest
SHA256 93391ba6059b0fe275f0a1823826d8844af68d3fcd2e37bb0e8856e7bdd36c47
MD5 006d9b3e703aa9a917ebb2430019b018
BLAKE2b-256 926f5d24830f3cd64e1390f0fe078306255f6437e54935a90a2df59510bb2e77

See more details on using hashes here.

File details

Details for the file curcheck-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: curcheck-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.5 Windows/10

File hashes

Hashes for curcheck-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61491e7adc63432721d7399cc9309129930be2330daee360004ef6a5204dd21d
MD5 68d0c600a838d487543291cab81d5ae4
BLAKE2b-256 e8aaf446971dd22c553193f22162f48c9206d463199dc6f55302a4c432fc4803

See more details on using hashes here.

Supported by

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