<script id="json-extras" type="application/json">
вся нужная тебе информацию представлена в формате JSON:{
"scoresBest":[
{
"id":3211927044,
"best_id":3211927044,
"user_id":16873295,
"accuracy":0.8836257309941521,
"mods":[
],
"score":1981044,
"max_combo":377,
"perfect":false,
"statistics":{
"count_50":1,
"count_100":41,
"count_300":238,
"count_geki":29,
"count_katu":21,
"count_miss":5
},
"pp":69.7365,
"rank":"B",
"created_at":"2020-08-25T08:26:10+00:00",
"mode":"osu",
"mode_int":0,
"replay":false,
"beatmap":{
"difficulty_rating":4.84,
"id":1385399,
"mode":"osu",
"version":"Fanteer's Insane",
"accuracy":7.5,
"ar":9,
"beatmapset_id":653534,
"bpm":110,
"convert":false,
"count_circles":123,
"count_sliders":162,
"count_spinners":0,
"cs":3.5,
"deleted_at":null,
"drain":6,
"hit_length":95,
"is_scoreable":true,
"last_updated":"2018-01-08T11:05:04+00:00",
"mode_int":0,
"passcount":772659,
"playcount":3155157,
"ranked":1,
"status":"ranked",
"total_length":96,
"url":"https:\/\/osu.ppy.sh\/beatmaps\/1385399"
},
]
}
soup.find_all('a', class_='name')[1:]
<a class="name" href="https://vk.com/stusha45" target="_blank">Стюша Сергеева</a>
<a class="name" href="https://vk.com/id209266081" target="_blank">Юлия Сухова</a>
for item in items:
item_data = {
'title': item.get('href'),
'name': item.text
}
print(item_data)
{'title': 'https://vk.com/stusha45', 'name': 'Стюша Сергеева'}
{'title': 'https://vk.com/id209266081', 'name': 'Юлия Сухова'}
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
driver.get('https://rublix.best/')
history_xpath = './/div[@class="history-wrapper"]//div'
WebDriverWait(driver=driver, timeout=15).until(
expected_conditions.presence_of_element_located((By.XPATH, history_xpath))
)
for elem in driver.find_elements_by_xpath(history_xpath):
print(elem.get_attribute('textContent'))
1.22
1.52
4.94
4.25
3.26
1.71
12.16
1.56
1.30
1.18
2.58
1.46
1.91
1.17
4.63
5.01
0
1.44
7.05
lowest_sell_order
и highest_buy_order
нужные тебе. ID товара хранится в другом JSON, который есть на странице по ссылке, котрую ты написал в вопросе.