This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from asyncio_mqtt import Client | |
import json | |
import asyncio | |
from collections import namedtuple | |
from pathlib import Path | |
from dataclasses import dataclass | |
from enum import Enum | |
from typing import NamedTuple | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from asyncio_mqtt import Client | |
import json | |
import asyncio | |
from collections import namedtuple | |
from pathlib import Path | |
from dataclasses import dataclass | |
from enum import Enum | |
from typing import NamedTuple | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import functools | |
import json | |
import os | |
import shlex | |
import subprocess | |
import sys | |
from typing import List | |
PATH = os.path.expanduser("~/.clipboard") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# visit https://www.mlb.com/redsox/schedule/downloadable-schedule to get new schedule | |
URL = "https://www.ticketing-client.com/ticketing-client/csv/GameTicketPromotionPrice.tiksrv?team_id=111&home_team_id=111&display_in=singlegame&ticket_category=Tickets&site_section=Default%E2%8A%82category=Default&leave_empty_games=true&event_type=T&year=2023&begin_date=20230201" | |
LOCATION = "Fenway Park" | |
PUSHOVER_KEY = "(pushover API key)" | |
PUSHOVER_USER = "(pushover user key)" | |
import csv | |
import arrow | |
import requests |
OlderNewer