freshpointsync

Freshpoint.cz web page data parser and syncer.


Keywords
freshpoint, cz
License
Other
Install
pip install freshpointsync==0.1.0

Documentation

FreshPointSync: FreshPoint.cz web page data parser and syncer.

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())