selenium - BeautifulSoup can't get what I need -
i using selenium information web html.
however, seems can't output using way of "beautifulsoup
"
would shed lights on it?
======================================================
from selenium import webdriver bs4 import beautifulsoup pyvirtualdisplay import display ..... html_text = driver.page_source soup = beautifulsoup(html_text, 'html.parser') divtag = soup.find_all("div", {"id": "flight_mu2811"}): tag in divtag: tdtags = tag.find_all("span", {"class": "base_price02"}) tag in tdtags: print tag.text
=======================================================
Comments
Post a Comment