File size: 249 Bytes
dfaeacc
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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