We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db4b15 commit 13b95e9Copy full SHA for 13b95e9
1 file changed
aiohttp_aiofiles_tutorial/parser.py
@@ -23,11 +23,14 @@ async def parse_html_page_metadata(html: str, url: str) -> str:
23
.replace('"', "`")
24
.replace("'", "`")
25
)
26
- primary_tag = soup.head.select_one("meta[property='article:tag']").get(
27
- "content"
+ primary_tag = (
+ soup.head
28
+ .select_one("meta[property='article:tag']")
29
+ .get("content")
30
31
published_at = (
- soup.head.select_one("meta[property='article:published_time']")
32
33
+ .select_one("meta[property='article:published_time']")
34
.get("content")
35
.split("T")[0]
36
0 commit comments