Python Forum
Problem with searching over Beautiful Soap object - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Problem with searching over Beautiful Soap object (/thread-37230.html)

Pages: 1 2 3 4


RE: Problem with searching over Beautiful Soap object - snippsat - Jun-30-2022

(Jun-30-2022, 11:17 AM)Pavel_47 Wrote: Tried with css_selector and class name: nothing in print output
Get it longer down on page over have to do some mouse action for the first one.
review = browser.find_element(By.CSS_SELECTOR, '#reviewsMedley > div > div.a-fixed-left-grid-col.a-col-left > div.a-section.a-spacing-none.a-spacing-top-mini.cr-widget-ACR > div.a-fixed-left-grid.AverageCustomerReviews.a-spacing-small > div > div.a-fixed-left-grid-col.aok-align-center.a-col-right > div > span > span')
print(review.text)
Output:
3.8 out of 5