I am trying to find a way to count the number of character that appears on the screen as the user would see it. My code gives me a little bit of information but how do I get everything off the page.
import requests
from bs4 import BeautifulSoup
doc = "https://youtu.be/jrPII7KfYx0"
res = requests.get(doc)
soup = BeautifulSoup(res.content, "html.parser")
tag = soup.body
for string in tag.strings:
print(string)
buran write Dec-16-2020, 06:24 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
