test parse

This commit is contained in:
pErfEcto2
2023-02-16 11:45:14 +03:00
parent 20cad0d1de
commit 8cb6042f5b
2 changed files with 21 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
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)
@@ -1 +0,0 @@
Check this out: https://t.me/by_perfecto