Dec-16-2020, 04:29 AM
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)