From 40ca7449e5542c836add5ebd4789aad98b747694 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Mon, 10 Nov 2025 08:36:57 +0100 Subject: [PATCH 1/3] parse:parse_watchlist - get username from href instead of using the link text (display name) --- faapi/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faapi/parse.py b/faapi/parse.py index 5bdeb2f..443aa4c 100644 --- a/faapi/parse.py +++ b/faapi/parse.py @@ -888,10 +888,10 @@ def parse_watchlist(watch_page: BeautifulSoup) -> tuple[list[tuple[str, str]], O watches: list[tuple[str, str]] = [] for tag_user in watch_page.select("div.watch-list-items"): - user_link: Optional[Tag] = tag_user.select_one("a") + user_link: Optional[Tag] = tag_user.select_one('a[href^="/user/"]') assert user_link, _raise_exception(ParsingError("Missing user link")) - username: str = user_link.text.strip() + username: str = get_attr(user_link, "href").removeprefix("/user/").strip("/") user_link.decompose() status: str = tag_user.text.strip() From 17bc810eca038ad45517e67966f091bfc62d8632 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Mon, 10 Nov 2025 08:38:41 +0100 Subject: [PATCH 2/3] changelog:3.11.14 - add fixes --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e01e32e..25864cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v3.11.14 + +### Fixes + +* Fix `FAAPI.watchlist_by` and `FAAPI.watchlist_to` returning display name instead of username + ## v3.11.13 ### New Features From cb6eae2eb4491ed3c8dbd02783a4e7c02c9ef2e8 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Mon, 10 Nov 2025 08:39:22 +0100 Subject: [PATCH 3/3] version - patch 3.11.13 > 3.11.14 --- faapi/__version__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/faapi/__version__.py b/faapi/__version__.py index aae930d..53c71cd 100644 --- a/faapi/__version__.py +++ b/faapi/__version__.py @@ -1 +1 @@ -__version__ = "3.11.13" +__version__ = "3.11.14" diff --git a/pyproject.toml b/pyproject.toml index 326b5b6..7700f03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "faapi" -version = "3.11.13" +version = "3.11.14" description = "Python module to implement API-like functionality for the FurAffinity.net website." authors = ["Matteo Campinoti "] license = "EUPL-1.2"