CognitiveScience commited on
Commit
7dbf459
·
1 Parent(s): 91256a5

Update ccogsphere.py

Browse files
Files changed (1) hide show
  1. ccogsphere.py +2 -2
ccogsphere.py CHANGED
@@ -3,12 +3,12 @@ import requests
3
 
4
  def ccs(inp):
5
  inp1=inp.split(":")[0]
6
- if (inp1="https"):
7
  response = requests.get(inp)
8
  soup = BeautifulSoup(response.text, "html.parser")
9
  result=response.text[response.text.find("viewCount"):].split('"')[2]
10
  else
11
- result="Picked " + inp.split(":")[0]
12
 
13
 
14
 
 
3
 
4
  def ccs(inp):
5
  inp1=inp.split(":")[0]
6
+ if (inp1=="https"):
7
  response = requests.get(inp)
8
  soup = BeautifulSoup(response.text, "html.parser")
9
  result=response.text[response.text.find("viewCount"):].split('"')[2]
10
  else
11
+ result="Picked " + inp1 #inp.split(":")[0]
12
 
13
 
14