workspace working
This commit is contained in:
16
inspect_ui.py
Normal file
16
inspect_ui.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
url = 'http://localhost:3015'
|
||||
resp = requests.get(url)
|
||||
print(resp.status_code)
|
||||
if resp.status_code == 200:
|
||||
soup = BeautifulSoup(resp.text, 'html.parser')
|
||||
# Find all elements with class containing 'Select'
|
||||
for tag in soup.find_all(class_=lambda c: c and 'Select' in c):
|
||||
print(tag.name, tag.get('class'), tag.get('id'))
|
||||
# Also find workspace selector
|
||||
print('--- Workspace selector ---')
|
||||
for tag in soup.find_all(['div', 'button', 'span']):
|
||||
if 'workspace' in str(tag).lower():
|
||||
print(tag.name, tag.get('class'), tag.get('id'), tag.text[:50])
|
||||
Reference in New Issue
Block a user