Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Hobbs jeffehobbs

View GitHub Profile
@jeffehobbs
jeffehobbs / scrobblelist.py
Created Feb 1, 2021
lambda that simplifies the last.fm API payload for easy import into home assistant
View scrobblelist.py
import requests, json
from datetime import datetime, timedelta
from flask import Flask, request, jsonify
# pip install requests, flask, zappa
# modify 'USER' and 'API_KEY' to fit
USER = 'YOUR_USER_NAME'
API_KEY = 'YOUR_API_KEY'
@jeffehobbs
jeffehobbs / meetgrinderMA.py
Created Jun 27, 2020
MeetgrinderMA Twitter Bot
View meetgrinderMA.py
# meetgrinderMA.py | jeffehobbs@gmail.com | June 2020
# detect meetings, tweet 'em out
import json, requests, feedparser, tweepy, time
from bs4 import BeautifulSoup
# globals
FEED = 'https://www.northamptonma.gov/RSSFeed.aspx?ModID=65&CID=City-Council-95'
DOMAIN = 'https://northamptonma.gov'
@jeffehobbs
jeffehobbs / new_york.json
Last active Jun 17, 2020
JSON array of cities and towns in New York
View new_york.json
[
"Adams",
"Addison",
"Afton",
"Alabama",
"Albany",
"Albion",
"Alden",
"Alexander",
"Alexandria",
@jeffehobbs
jeffehobbs / oregon.json
Created Jun 17, 2020
JSON array of cities and towns in Oregon
View oregon.json
[
"Adair Village",
"Adams",
"Adrian",
"Albany",
"Amity",
"Antelope",
"Arlington",
"Ashland",
"Astoria",
@jeffehobbs
jeffehobbs / pennsylvania.json
Last active Jun 17, 2020
JSON array of cities and towns in Pennsylvania
View pennsylvania.json
[
"Aliquippa",
"Allentown",
"Altoona",
"Arnold",
"Beaver Falls",
"Bethlehem",
"Bloomsburg",
"Bradford",
"Butler",
@jeffehobbs
jeffehobbs / new_jersey.json
Created Jun 17, 2020
JSON array of cities and towns in New Jersey
View new_jersey.json
[
"Aberdeen",
"Absecon",
"Alexandria",
"Allamuchy",
"Allendale",
"Allenhurst",
"Allentown",
"Alloway",
"Alpha",
@jeffehobbs
jeffehobbs / michigan.json
Last active Jun 17, 2020
JSON array of cities and towns in Michigan
View michigan.json
[
"Acme",
"Ada",
"Adams",
"Addison",
"Adrian",
"Aetna",
"Ahmeek",
"Akron",
"Alabaster",
@jeffehobbs
jeffehobbs / ohio.json
Created Jun 17, 2020
JSON array of cities and towns in Ohio
View ohio.json
[
"Akron",
"Alliance",
"Amherst",
"Ashland",
"Ashtabula",
"Athens",
"Aurora",
"Avon",
"Avon Lake",
@jeffehobbs
jeffehobbs / alabama.json
Created Jun 17, 2020
JSON array of cities and towns in Alabama
View alabama.json
[
"Abbeville",
"Adamsville",
"Addison",
"Akron",
"Alabaster",
"Albertville",
"Alexander",
"Aliceville",
"Allgood",
@jeffehobbs
jeffehobbs / massachusetts.json
Created Jun 17, 2020
JSON array of cities and towns in Massachusetts
View massachusetts.json
[
"Abington",
"Acton",
"Acushnet",
"Adams",
"Agawam",
"Alford",
"Amesbury",
"Amherst",
"Andover",