Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry1 committed Aug 16, 2024
1 parent afbccfe commit aa4f0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/valuefragments/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ async def run_grouped_in_ppe(
@moduleexport
def getselectedhreflinks(
thebaseurl: str = "https://www.goc-stuttgart.de/event-guide/ergebnisarchiv",
theselector: str = '//a/@href[contains(string(), "fileadmin/ergebnisse/2024")]', # https://stackoverflow.com/q/78877951
theselector: str = '//a/@href[contains(string(), "fileadmin/ergebnisse/2024")]',
) -> list[str]:
"""Parse HTML from URL for a-href matches by XPATH"""
# <https://devhints.io/xpath>
# <https://devhints.io/xpath> <https://stackoverflow.com/q/78877951>
thesourcehtml: requests.Response = requests.get(url=thebaseurl, timeout=(5, 10))
# Connect Timeout 5s, 10s for transmission
thelogger.debug(
Expand Down

0 comments on commit aa4f0e6

Please sign in to comment.