Python
- 21 ответ
- 0 вопросов
8
Вклад в тег
import requests
. . .
content = requests.get('адрес чего-то')
texthtm = content.text
substr = '<td class="yell">'
posb = texthtm.rfind(substr) + len(substr)
pose = texthtm.find('</', posb)
rating = int(texthtm[posb : pose])
print(rating)
from selenium import webdriver
driver = webdriver.Chrome('D:\\chromedriver.exe\\chromedriver.exe')
driver.get('youtube.com')
self.rect.center = (int(width / 2), int(height / 2))
self.rect.center = (width // 2, height // 2)