Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,9 +58,9 @@ async def linkedin_post_details(post_id: str):
|
|
58 |
reactions = 0
|
59 |
|
60 |
try:
|
61 |
-
comments = soup.find("a", {"data-test-id": "social-actions__comments"}).get(
|
62 |
"data-num-comments"
|
63 |
-
)
|
64 |
except:
|
65 |
comments = 0
|
66 |
|
|
|
58 |
reactions = 0
|
59 |
|
60 |
try:
|
61 |
+
comments = str(soup.find("a", {"data-test-id": "social-actions__comments"}).get(
|
62 |
"data-num-comments"
|
63 |
+
))
|
64 |
except:
|
65 |
comments = 0
|
66 |
|