Skip to content

Commit

Permalink
remove testing comments, clean up changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-costanzo committed Nov 22, 2024
1 parent c7c919f commit 16d7592
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ repos:
- python
# Suppress SyntaxWarning about invalid escape sequence from calitp-data-infra dependency without modifying source
entry: env PYTHONWARNINGS="ignore::SyntaxWarning" flake8

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ def scrape_ntd_ridership_xlsx_url(**context):
req = requests.get(url)
soup = BeautifulSoup(req.text, "html.parser")

# # Look for an anchor tag where the href ends with '.xlsx' and starts with '/sites/fta.dot.gov/files/'
# link = soup.find(
# "a",
# href=lambda href: (
# href
# and href.startswith("/sites/fta.dot.gov/files/")
# and href.endswith(".xlsx")
# ),
# )
link = soup.find("a", href=href_matcher)

# Extract the href if the link is found
Expand Down

0 comments on commit 16d7592

Please sign in to comment.