mirror of
https://github.com/feder-cr/invisible_playwright.git
synced 2026-06-07 08:35:12 +02:00
14 lines
326 B
Python
14 lines
326 B
Python
|
|
"""Launch a patched Firefox with a random stealth profile and load example.com."""
|
||
|
|
from stealthfox import Stealthfox
|
||
|
|
|
||
|
|
|
||
|
|
def main() -> None:
|
||
|
|
with Stealthfox() as browser:
|
||
|
|
page = browser.new_page()
|
||
|
|
page.goto("https://example.com")
|
||
|
|
print("title:", page.title())
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|