mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-23 23:50:21 +00:00
25 lines
686 B
Python
25 lines
686 B
Python
# pip install selenium bs4
|
|
|
|
|
|
from bs4 import BeautifulSoup
|
|
from selenium import webdriver
|
|
from selenium.webdriver.chrome.service import Service
|
|
from time import sleep
|
|
|
|
|
|
s = Service("C:\\Users\\Alex\\PycharmProjects\\pythonProject\\chromedriver.exe")
|
|
brow = webdriver.Chrome(service=s)
|
|
|
|
# brow.get("https://www.kinopoisk.ru/lists/movies/top250/")
|
|
brow.get("https://www.revshells.com/")
|
|
sleep(10)
|
|
|
|
html = brow.page_source
|
|
|
|
soup = BeautifulSoup(html, "lxml")
|
|
|
|
# films = soup.find_all(attrs={"class": "styles_mainTitle__IFQyZ styles_activeMovieTittle__kJdJj"})
|
|
buttons = soup.find_all(attrs={"class": "list-group-item list-group-item-action"})
|
|
|
|
for button in buttons:
|
|
print(button.text) |