Freshpoint.cz web page data parser and syncer.
Reason this release was yanked:
Python 3.10+ modern typing breaks the package on older Python versions.
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
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
freshpointsync-0.1.0.tar.gz
(40.6 kB
view hashes)
Built Distribution
Close
Hashes for freshpointsync-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adff4510f7213430d359750579b032e9e1c129a4adce24620aa09c753356f122 |
|
MD5 | 97f48d8337f91aaeabdb943ba8e55485 |
|
BLAKE2b-256 | 8e109c89b3a28240e9de2306c21110c9269034c52c15be01941b168580a475ad |