Update app.py
Browse files
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')
|
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[
|
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
|