Skip to main content

Freshpoint.cz webpage CLI interface.

Project description

FreshPointCLI

A CLI REPL interface to query FreshPoint product price and availability.

Installation

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

$ pip install freshpointcli

Usage

FreshPointCLI is a Read-Eval-Print Loop (REPL) application intended to be used only from the command line interface (CLI).

Starting Up the Application

You can initialize the application using the following CLI command:

$ freshpoint <location_id>

<location_id> is the ID of the FreshPoint location to track. It can be found in the page URL. For example, for https://my.freshpoint.cz/device/product-list/296, location id is 296.

Location ID is preserved between the application sessions, so if you intend to track the same location as the last time, you can omit the location id argument and invoke the application without it.

Invoke the application with --help to receice start-up information:

$ freshpoint --help

Querying the Product Page

Once the application is running, it displays an input promt, and you can type in queries to check for products' availability, price, and more.

To query if a product is avalable, use the following command:

FreshPoint@LocationName> <product_name> --available

Replace <product_name> with the name of the product you want to query. Note that name and category matching is case-insensitive, supports partial match, and ignores diacritics.

To query for all the products that are currently on sale, use the following command:

FreshPoint@LocationName> --sale

Query arguments can be combined in any way:

FreshPoint@LocationName> --available --price-max 100 --vegerarian

To display all the supported arguments, use --help:

FreshPoint@LocationName> --help

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue on GitHub. If you would like to contribute code, please fork the repository and submit a pull request.

License

FreshPointCLI is licensed under the MIT License. See the LICENSE file for more information.

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

freshpointcli-0.1.1.tar.gz (13.3 kB view hashes)

Uploaded Source

Built Distribution

FreshPointCLI-0.1.1-py3-none-any.whl (16.8 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