Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,14 +55,14 @@ async def linkedin_post_details(post_id: str):
|
|
55 |
if spans:
|
56 |
reactions = spans[0].text.strip()
|
57 |
else:
|
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 |
|
67 |
return {
|
68 |
"insights": {
|
|
|
55 |
if spans:
|
56 |
reactions = spans[0].text.strip()
|
57 |
else:
|
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 |
|
67 |
return {
|
68 |
"insights": {
|