14 lines
282 B
Python
14 lines
282 B
Python
import sys
|
|
from pathlib import Path
|
|
sys.path.insert(0, str(Path(__file__).parent))
|
|
from login import get_page
|
|
|
|
page = get_page(port=9222)
|
|
print("URL:", page.url)
|
|
|
|
links = page.eles('tag:a')
|
|
for a in links:
|
|
if a.text and len(a.text) < 10:
|
|
print("Link:", a.text, a.html)
|
|
|