python - BeautifulSoup search for an element returns [ ] -


the page trying work https://www.google.ca/flights/#search;f=yyc;t=cmh;d=2016-05-07;r=2016-05-11;tt=o (or other flight search). "inspect element" option tells me price associated lowest fare has html <div class="mhnsji-d-zb">$260</div>

i trying find correct way identify element in beautifulsoup can put lowest fare variable lowfare. have read bs4 docs , expected either

lowfare = soup.find_all('.mhnsji-d-zb') 

or

lowfare = soup.select('.mhnsji-d-zb') 

to give me lowest available flight fare on given flight search, return lowfare = [].

i'm beginner, know case of me doing wrong, after reading documentation i'm still lost.

am on right track? found question on site said html might hidden behind javascript in page, i'm new know that, or if applies in situation.

thanks.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -