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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
curcheck-1.2.0-py3-none-any.whl
(10.0 kB
view hashes)