Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
•
73d7f93
1
Parent(s):
d8483de
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ class myCelSci(Celsci):
|
|
9 |
|
10 |
def greet(link):
|
11 |
HEADER = {"User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
|
12 |
-
|
13 |
response = requests.get(link) #, headers=HEADER)
|
14 |
soup = BeautifulSoup(response.text, "html.parser")
|
15 |
#print (soup.prettify())
|
@@ -39,7 +39,7 @@ def greet(link):
|
|
39 |
celsci1=myCelSci()
|
40 |
|
41 |
|
42 |
-
response3= celsci1.fame(
|
43 |
|
44 |
return response3 #result #soup.prettify()
|
45 |
|
|
|
9 |
|
10 |
def greet(link):
|
11 |
HEADER = {"User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
|
12 |
+
link = "https://youtu.be/vQUCSHUlN-k?si=FfIsODGjJDzIHOAS"
|
13 |
response = requests.get(link) #, headers=HEADER)
|
14 |
soup = BeautifulSoup(response.text, "html.parser")
|
15 |
#print (soup.prettify())
|
|
|
39 |
celsci1=myCelSci()
|
40 |
|
41 |
|
42 |
+
response3= celsci1.fame(celsci1.celscilist["dd"]['x']['followers']) #checkfame("dd")
|
43 |
|
44 |
return response3 #result #soup.prettify()
|
45 |
|