Return soup.find("div", class_=class_).find("span").text The stock price is in a span element nested within a div with the class: " My(6px) Pos(r) smartphoneMt(6px) W(100%)". The corresponding code is on the elements tab. We can hover through the page and select the elements as needed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |