Skip to main content

Track event details from web resultse

Project description

Don't miss approaching events and opportunities again. Scrape online results for upcoming events and track them.

Example code:

import dotenv
import os
from todomeki import Watcher

dotenv.load_dotenv()

# set up Watcher with google api key for gemini and programmable search engine (api_key),
# search engine id (cx) and location (gl) "us", "uk", "au", "cn", "in", etc
watcher = Watcher(api_key=os.getenv('search_key'), cx=os.getenv('engine_id'), gl="gb")

# search for event
query = input("Enter your search query: ")
watcher.track_event(query)

# return upcoming events in 30 day range
watcher.nearing_events()

# manually add event
watcher.manually_add_event('BiscuitBobby workshop', '12/2/2024')

# remove event
watcher.remove_event('BiscuitBobby workshop')

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

todomeki-0.1.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

todomeki-0.1.2-py3-none-any.whl (2.1 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