Spaces:
Runtime error
Runtime error
Commit
·
8d9675e
1
Parent(s):
8939ffa
Update ccogsphere.py
Browse files- ccogsphere.py +4 -15
ccogsphere.py
CHANGED
|
@@ -8,21 +8,10 @@ def ccs(inp,results):
|
|
| 8 |
soup = BeautifulSoup(response.text, "html.parser")
|
| 9 |
result=response.text[response.text.find("viewCount"):].split('"')[2]
|
| 10 |
else:
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
if (inp1[0]=="Start"):
|
| 16 |
-
result="Started" + "\n"
|
| 17 |
-
else:
|
| 18 |
-
try:
|
| 19 |
-
result=str(results.append(inp1[0] + " Picked " + inp1[1]))
|
| 20 |
-
except NameError:
|
| 21 |
-
result="Bad Format" #inp1[0] + " Picked " + inp1[1] + "\n"
|
| 22 |
-
else:
|
| 23 |
-
result="Wrong Format"
|
| 24 |
-
|
| 25 |
-
|
| 26 |
|
| 27 |
|
| 28 |
return result
|
|
|
|
| 8 |
soup = BeautifulSoup(response.text, "html.parser")
|
| 9 |
result=response.text[response.text.find("viewCount"):].split('"')[2]
|
| 10 |
else:
|
| 11 |
+
try:
|
| 12 |
+
result=str(results.append(inp1[0] + " Picked " + inp1[1]))
|
| 13 |
+
except NameError:
|
| 14 |
+
result="Bad Format" #inp1[0] + " Picked " + inp1[1] + "\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
return result
|