File size: 355 Bytes
dfaeacc
 
 
 
e16c43d
 
 
 
 
 
 
 
dfaeacc
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from bs4 import BeautifulSoup
import requests

def ccs(inp):
    inp1=inp.split(":")[0]
    if (inp1="https"):
        response = requests.get(inp)
        soup = BeautifulSoup(response.text, "html.parser")
        result=response.text[response.text.find("viewCount"):].split('"')[2]
    else
        result="Echo" + response
    
    

    return  result