jonathanjordan21 commited on
Commit
67359d5
·
verified ·
1 Parent(s): 432378a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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