Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ga.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys, os, re, json, time, threading, importlib
import sys, os, re, json, time, threading, importlib, webbrowser
from datetime import datetime
from pathlib import Path
import tempfile, traceback, subprocess, itertools, collections, difflib, shutil
Expand Down Expand Up @@ -112,7 +112,7 @@ def first_init_driver():
time.sleep(2)
sess = driver.get_all_sessions()
if len(sess) > 0: break
if i == 4: os.startfile("https://example.com")
if i == 4: webbrowser.open("https://example.com")

def web_scan(tabs_only=False, switch_tab_id=None, text_only=False, maxlen=35000):
"""获取当前页面的简化HTML内容和标签页列表。注意:简化过程会过滤边栏、浮动元素等非主体内容。
Expand Down