From 17f3e54754e7065c6b1d88c142cc67f6049df77d Mon Sep 17 00:00:00 2001 From: James Turk Date: Fri, 10 Jan 2025 23:31:21 -0600 Subject: [PATCH] fix URLs and / on hearings API --- scrapple/hearings.py | 4 ++-- scrapple/templates/about.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapple/hearings.py b/scrapple/hearings.py index a062837..324cc1c 100644 --- a/scrapple/hearings.py +++ b/scrapple/hearings.py @@ -4,7 +4,7 @@ import pathlib from . import app from flask import request, abort -BASE_API_URL = "https://scrapple.fly.dev/hearings/" +BASE_API_URL = "https://scrapple.fly.dev/hearings" BASE_DIR = pathlib.Path("data/congress-hearing-118-house") # not actually secret, but for testing API Keys API_SECRET = "53cR3T" @@ -26,7 +26,7 @@ def _shortened(hearing): "congress": hearing["request"]["congress"], "jacketNumber": hearing["request"]["jacketNumber"], "updateDate": hearing["hearing"]["updateDate"], - "url": BASE_API_URL + hearing["request"]["jacketNumber"], + "url": BASE_API_URL + "/" + hearing["request"]["jacketNumber"], } diff --git a/scrapple/templates/about.html b/scrapple/templates/about.html index 97d83ca..4f35906 100644 --- a/scrapple/templates/about.html +++ b/scrapple/templates/about.html @@ -13,7 +13,7 @@

While other sites with a similar purpose exist, they often omit some of the common complications that can arise in scraping. The eventual goal of this site is to serve as a test suite of sorts for handling edge cases.

-

The full source for this site is available on GitHub. +

The full source for this site is available under the Unlicense.

Sources