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 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/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") 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"