Spaces:
Runtime error
Runtime error
Commit
·
5576d06
1
Parent(s):
cff4d64
Update ccogsphere.py
Browse files- ccogsphere.py +3 -3
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)
|
|
@@ -16,9 +16,9 @@ def ccs(inp):
|
|
| 16 |
result="Started" + "\n"
|
| 17 |
else:
|
| 18 |
try:
|
| 19 |
-
result
|
| 20 |
except NameError:
|
| 21 |
-
result=inp1[0] + " Picked " + inp1[1] + "\n"
|
| 22 |
else:
|
| 23 |
result="Wrong Format"
|
| 24 |
|
|
|
|
| 1 |
from bs4 import BeautifulSoup
|
| 2 |
import requests
|
| 3 |
|
| 4 |
+
def ccs(inp,results):
|
| 5 |
inp1=inp.split(":")
|
| 6 |
if (inp1[0]=="https"):
|
| 7 |
response = requests.get(inp)
|
|
|
|
| 16 |
result="Started" + "\n"
|
| 17 |
else:
|
| 18 |
try:
|
| 19 |
+
result=results+inp1[0] + " Picked " + inp1[1] + "\n"
|
| 20 |
except NameError:
|
| 21 |
+
result="Bad Format" #inp1[0] + " Picked " + inp1[1] + "\n"
|
| 22 |
else:
|
| 23 |
result="Wrong Format"
|
| 24 |
|