Skip to content

Commit c31e480

Browse files
parse - format
1 parent c531fc4 commit c31e480

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

faapi/parse.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020

2121
from .connection import root
2222
from .exceptions import _raise_exception
23+
from .exceptions import ClassicTheme
2324
from .exceptions import DisabledAccount
2425
from .exceptions import NonePage
2526
from .exceptions import NotFound
2627
from .exceptions import NoticeMessage
2728
from .exceptions import NoTitle
2829
from .exceptions import ParsingError
2930
from .exceptions import ServerError
30-
from .exceptions import ClassicTheme
3131

3232
relative_url: Pattern = re_compile(r"^(?:https?://(?:www\.)?furaffinity\.net)?(.*)")
3333
mentions_regexp: Pattern = re_compile(r"^(?:(?:https?://)?(?:www\.)?furaffinity\.net)?/user/([^/#]+).*$")
@@ -358,7 +358,11 @@ def parse_loggedin_user(page: BeautifulSoup) -> Optional[str]:
358358
def parse_journal_section(section_tag: Tag) -> dict[str, Any]:
359359
id_: int = int(section_tag.attrs.get("id", "00000")[4:])
360360
tag_title: Optional[Tag] = section_tag.select_one("h2")
361-
tag_rating: Optional[Tag] = section_tag.select_one("span.c-contentRating--general, span.c-contentRating--adult, span.c-contentRating--mature")
361+
tag_rating: Optional[Tag] = section_tag.select_one(
362+
"span.c-contentRating--general"
363+
",span.c-contentRating--adult"
364+
",span.c-contentRating--mature"
365+
)
362366
tag_date: Optional[Tag] = section_tag.select_one("div.section-header span.popup_date")
363367
tag_content: Optional[Tag] = section_tag.select_one("div.journal-body")
364368
tag_comments: Optional[Tag] = section_tag.select_one("div.section-footer > a > span")

0 commit comments

Comments
 (0)