From 61f95232ad8557234ac5d72d122bff37009ce3dd Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Fri, 10 Jan 2025 00:07:19 +0100 Subject: [PATCH 1/3] parse:parse_submission_page - update tags selector --- faapi/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faapi/parse.py b/faapi/parse.py index 38b2d7f..0cfece7 100644 --- a/faapi/parse.py +++ b/faapi/parse.py @@ -485,7 +485,7 @@ def parse_submission_page(sub_page: BeautifulSoup) -> dict[str, Any]: tag_title: Optional[Tag] = tag_sub_info.select_one("div.submission-title") tag_author: Optional[Tag] = sub_page.select_one("div.submission-id-container") tag_date: Optional[Tag] = sub_page.select_one("div.submission-id-container span.popup_date") - tag_tags: list[Tag] = sub_page.select("section.tags-row a") + tag_tags: list[Tag] = sub_page.select('section.tags-row a[href^="/"]') tag_views: Optional[Tag] = sub_page.select_one("div.views span") tag_comment_count: Optional[Tag] = sub_page.select_one("section.stats-container div.comments span") tag_favorites: Optional[Tag] = sub_page.select_one("div.favorites span") From 77487ee56ea7b6e033e531a62ffa3b937ceed61c Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Fri, 10 Jan 2025 00:13:49 +0100 Subject: [PATCH 2/3] changelog:3.11.7 - add changes --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecb1d0f..994a709 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v3.11.7 + +### Changes + +* Updated parser to work correctly with FurAffinity's new tag-blocking feature on submission pages + ## v3.11.6 ### Fixes From d094a671728da67f69f70930bda07b1b0a78c6eb Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Fri, 10 Jan 2025 00:14:10 +0100 Subject: [PATCH 3/3] version - patch 3.11.6 > 3.11.7 --- 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 92bbba8..b10420d 100644 --- a/faapi/__version__.py +++ b/faapi/__version__.py @@ -1 +1 @@ -__version__ = "3.11.6" +__version__ = "3.11.7" diff --git a/pyproject.toml b/pyproject.toml index 93d7ae7..85fa968 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "faapi" -version = "3.11.6" +version = "3.11.7" description = "Python module to implement API-like functionality for the FurAffinity.net website." authors = ["Matteo Campinoti "] license = "EUPL-1.2"