Mar-22-2020, 06:59 AM
why not use BeautifulSoup?
from bs4 import BeautifulSoup file_name = 'test1111.txt' with open(file_name) as f: soup = BeautifulSoup(f.read(),'html.parser') for div in soup.find_all('div', {'class':'video-name'}): print(div.get('data-video'))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs