Skip to main content

Freshpoint.cz web page data parser and syncer.

Project description

FreshPointSync delivers an efficient asynchronous interface designed for extracting and tracking data from FreshPoint product webpages.

Installation

FreshPointSync supports Python 3.8 and higher. The library can be installed using the following CLI command:

$ pip install freshpointsync

Minimal Example

The following example demonstrates how to fetch a FreshPoint webpage data and analyze its contents:

import asyncio
from freshpointsync import ProductPage

async def main() -> None:
    async with ProductPage(location_id=296) as page:
        await page.update()
        products = page.find_products()
        print(
            f'Location name: {page.data.location}\n'
            f'Product count: {len(products)} '
            f'({len([p for p in products if p.is_available])} in stock)'
        )

if __name__ == '__main__':
    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

freshpointsync-0.1.0.tar.gz (40.6 kB view hashes)

Uploaded Source

Built Distribution

freshpointsync-0.1.0-py3-none-any.whl (34.7 kB view hashes)

Uploaded Python 3

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