Skip to main content

Create an iCal file containing upcoming Smith Tea subscription renewals

Project description

🍵 smith-tea-calendar

This program creates an iCal file containing upcoming Smith Tea subscription renewals by scraping your account details. I wrote this program because I wanted a better way to track when my orders would renew by tracking that information in my calendar.

Usage

This program uses Playwright to scrape the website. You will need to use Playwright to install a headless Chromium browser to perform the scraping.

$ uvx playwright install chromium

Once complete, you can run the program as follows:

$ SMITH_TEA_EMAIL="..." SMITH_TEA_PASSWORD="..." uvx smith-tea-calendar

All arguments can be specified as environment variables with the SMITH_TEA_ prefix. It's generally safer to specify credentials this way as environmment variables aren't visible to other programs and users.

If at any point the website is update and the built-in CSS selectors used to navigate the site break, you can use any of the --selector-* flags to change these selectors. For a full listing of options, just use the --help flag.

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

smith_tea_calendar-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smith_tea_calendar-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file smith_tea_calendar-0.1.0.tar.gz.

File metadata

  • Download URL: smith_tea_calendar-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for smith_tea_calendar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 874cb1afc9425e35387be0bd57b74274643e3175c2b854cdaaa69564c3a3d90b
MD5 b1a7d07961889422ce617e277b6ccf2e
BLAKE2b-256 657fee93c73ed58a4a0fd743e44b17a3b22dcf30e998070570115f1c3bb5c7cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for smith_tea_calendar-0.1.0.tar.gz:

Publisher: release.yml on MrFlynn/smith-tea-calendar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smith_tea_calendar-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smith_tea_calendar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e178e7ae65194c8fb8305c22b314f2908f0a3a0400ff964c7e6f222f08f9b4da
MD5 7f27f15f08cb52472caea6087c78c8f5
BLAKE2b-256 ffd9bf9f07f91ec10a27b7facc9d3297d8fda6aa1d5b75166ad253a149cc2b03

See more details on using hashes here.

Provenance

The following attestation bundles were made for smith_tea_calendar-0.1.0-py3-none-any.whl:

Publisher: release.yml on MrFlynn/smith-tea-calendar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page