mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-24 08:00:22 +00:00
test parse
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user