fix URLs and / on hearings API

This commit is contained in:
James Turk 2025-01-10 23:31:21 -06:00
parent 7d3cb639be
commit 17f3e54754
2 changed files with 3 additions and 3 deletions

View File

@ -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"],
}

View File

@ -13,7 +13,7 @@
<p>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.
</p>
<p>The full source for this site is available on <a href="https://github.com/jamesturk/scrapple">GitHub</a>.
<p>The <a href="https://git.unnamed.computer/jpt/scrapple">full source for this site is available</a> under the <a href="https://git.unnamed.computer/jpt/scrapple/src/branch/main/LICENSE">Unlicense</a>.
<h3> Sources </h3>