bump python version, ruff check

This commit is contained in:
2026-02-10 14:33:54 +01:00
parent 639afe9b95
commit 2e5cda6689
70 changed files with 2946 additions and 1858 deletions

View File

@@ -172,14 +172,14 @@ class Catalogue:
# based on PPN, get title, people, edition, year, language, pages, isbn,
link = f"https://rds.ibs-bw.de/phfreiburg/opac/RDSIndexrecord/{ppn}"
result = self.search(link)
soup = BeautifulSoup(result, "html.parser")
BeautifulSoup(result, "html.parser")
def get_ppn(self, searchterm: str) -> str | None:
links = self.get_book_links(searchterm)
ppn = None
for link in links:
result = self.search(link)
soup = BeautifulSoup(result, "html.parser")
BeautifulSoup(result, "html.parser")
# debug: link
# print(link)
ppn = link.split("/")[-1]