CogSphere / ccogsphere.py
CognitiveScience's picture
Create ccogsphere.py
dfaeacc
raw
history blame
249 Bytes
from bs4 import BeautifulSoup
import requests
def ccs(inp):
response = requests.get(inp)
soup = BeautifulSoup(response.text, "html.parser")
result=response.text[response.text.find("viewCount"):].split('"')[2]
return result