jonathanjordan21 commited on
Commit
7d68b57
·
verified ·
1 Parent(s): 67359d5

Update app.py

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