Selenium Steam community market listings python -


i trying write program open steam community page , read first value in table of prices. stuff afterwards. not want use steam api if anyones suggestion know how select first id in table because change , cannot define set id , trying locate class proving difficult.

my code can open webpage not issue

example of item community market.

<div class="market_listing_right_cell market_listing_their_price">  <span class="market_table_value">     <span class="market_listing_price market_listing_price_with_fee"></span>     <span class="market_listing_price market_listing_price_without_fee"></span> 

from understand, working this page.

to list of prices, iterate on results containing in div elements market_listing_row class , text of elements market_listing_their_price class:

for result in driver.find_elements_by_css_selector("div.market_listing_row"):     price = result.find_element_by_css_selector("div.market_listing_their_price")     print price.text.strip() 

this print price results these:

starting at: $0.63 starting at: $0.27 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -