Skip to content

Instantly share code, notes, and snippets.

@batemapf
batemapf / scraping.py
Created March 29, 2018 01:54
Link Scraper
import requests
from bs4 import BeautifulSoup
# Set the variable `url` to a URL of your choice.
url = 'https://www.crummy.com/software/BeautifulSoup/bs4/doc/'
# Send a request to the URL and save what we get back in the variable `response`
response = requests.get(url)
# Get the raw text of the response. This will be a whole bunch of HTML.

tsa_claims.py

The TSA tracks passanger claims for things like lost property, personal injury, and damaged items. Using this spreadsheet of claims from 2014, write a program that prints out the total dollar value (the "Close Amount") of claims by each airline. You can style your output any way you'd like, but please make it as human readable as possible (e.g. don't just print out a big dictionary).

case_search.py

There is a body of caselaw around TSA claims, such as George v. Rehiel (TSA). Using the PDF of this case, write a program that:

  • takes an string from the user [1]
  • searches the George v. Rehiel PDF for the string
  • prints the number of times the string occurs

[1] For full credit, you only need to accept unigrams (single words). If your program accepts bigrams (two word phrases) and trigrams (three word phrases), you will receive ten (10) points of extra credit.

@batemapf
batemapf / oh-refill-hourly-2-16-2-17.md
Created February 20, 2026 17:38
OH_SOURCE RxRefill HL7 Delivery — Hour-by-Hour (2/16-2/17 ET)

OH_SOURCE RxRefill HL7 Delivery — Hour-by-Hour Breakdown

Service: mhv-du-rx-service-api Success definition: Got any response back from Oracle Health (including ER:Error business rejections). Failure = HL7 send timeout / no response.


Monday 2/16/2026 ET

Day total: 341 orders | 312 success | 29 failure | 91.5% response rate