mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-23 23:50:21 +00:00
22 lines
485 B
Python
22 lines
485 B
Python
from bs4 import BeautifulSoup as BS
|
|
from selenium import webdriver
|
|
from selenium.webdriver.chrome.service import Service
|
|
|
|
|
|
s = Service("chromedriver")
|
|
brow = webdriver.Chrome(service=s)
|
|
|
|
brow.get("https://www.revshells.com/")
|
|
html = brow.page_source
|
|
|
|
soup = BS(html, "lxml")
|
|
|
|
buttons = soup.find_all(attrs={"class": "list-group-item list-group-item-action"})
|
|
name = soup.find_all(attrs={"class": "rainbow"})
|
|
|
|
print(f"name: {name.text}")
|
|
|
|
for button in buttons:
|
|
print(button.text)
|
|
|