We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to parsing the comments under this video, I have get the source code correctly, But the CSS doesn't parse to anything, Why?
my code:
import time from requests_html import HTML from selenium import webdriver
driver = webdriver.Chrome() url = 'https://www.bilibili.com/video/BV1yU4y1C7cd'
driver.get(url) time.sleep(5) content = driver.page_source html = HTML(html=content)
com= html.find('div.con > p.text') # can't get count = len(com) print(com[0].text)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to parsing the comments under this video,
I have get the source code correctly,
But the CSS doesn't parse to anything,
Why?
my code:
import time
from requests_html import HTML
from selenium import webdriver
driver = webdriver.Chrome()
url = 'https://www.bilibili.com/video/BV1yU4y1C7cd'
driver.get(url)
time.sleep(5)
content = driver.page_source
html = HTML(html=content)
com= html.find('div.con > p.text') # can't get
count = len(com)
print(com[0].text)
The text was updated successfully, but these errors were encountered: