selenium - BeautifulSoup can't get what I need -


here html

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -