Arafath10 commited on
Commit
4b8473b
·
1 Parent(s): 767796a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def greet(name):
24
 
25
  soup = BeautifulSoup(r.text,"html.parser")
26
 
27
- heading_object=soup.find_all('div').text
28
  n=1
29
  for info in heading_object:
30
 
@@ -34,7 +34,7 @@ def greet(name):
34
  print("------",n)
35
  result = info.getText()[180:]
36
  result = result.split(".")
37
- for s in result[:-40]:
38
  p = p + s
39
 
40
  return p
 
24
 
25
  soup = BeautifulSoup(r.text,"html.parser")
26
 
27
+ heading_object=soup.find_all('div')
28
  n=1
29
  for info in heading_object:
30
 
 
34
  print("------",n)
35
  result = info.getText()[180:]
36
  result = result.split(".")
37
+ for s in result[:10]:
38
  p = p + s
39
 
40
  return p