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.
1 2 3 4 5 6 7 8 9 |
import requests from bs4 import BeautifulSoup 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.