Spaces:
Runtime error
Runtime error
Commit
·
425b8fe
1
Parent(s):
4af0645
Update ccogsphere.py
Browse files- ccogsphere.py +2 -2
ccogsphere.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from bs4 import BeautifulSoup
|
| 2 |
import requests
|
| 3 |
|
| 4 |
-
def ccs(inp
|
| 5 |
inp1=inp.split(":")
|
| 6 |
if (inp1[0]=="https"):
|
| 7 |
response = requests.get(inp)
|
|
@@ -9,7 +9,7 @@ def ccs(inp,results):
|
|
| 9 |
result=response.text[response.text.find("viewCount"):].split('"')[2]
|
| 10 |
else:
|
| 11 |
try:
|
| 12 |
-
result=
|
| 13 |
except NameError:
|
| 14 |
result="Bad Format" #inp1[0] + " Picked " + inp1[1] + "\n"
|
| 15 |
|
|
|
|
| 1 |
from bs4 import BeautifulSoup
|
| 2 |
import requests
|
| 3 |
|
| 4 |
+
def ccs(inp):
|
| 5 |
inp1=inp.split(":")
|
| 6 |
if (inp1[0]=="https"):
|
| 7 |
response = requests.get(inp)
|
|
|
|
| 9 |
result=response.text[response.text.find("viewCount"):].split('"')[2]
|
| 10 |
else:
|
| 11 |
try:
|
| 12 |
+
result=inp1[0] + " Picked " + inp1[1]
|
| 13 |
except NameError:
|
| 14 |
result="Bad Format" #inp1[0] + " Picked " + inp1[1] + "\n"
|
| 15 |
|