-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathtest.py
42 lines (41 loc) · 1.26 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# import asyncio
# import time
#
# from playwright.sync_api import sync_playwright
# # from pjstealth import stealth_sync, stealth_async
# # from playwright.async_api import async_playwright
# from playwright_stealth import stealth_sync
#
# p = sync_playwright().start()
# proxy = {
# "server": "127.0.0.1:7890"
# }
# browser = p.chromium.launch(headless=False,
# args=['--no-sandbox', '--no-default-browser-check',
# '--disable-suggestions-ui', '--no-first-run', '--disable-infobars',
# '--disable-popup-blocking', '--disable-popup-blocking'])
#
# context = browser.new_context(
# user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 13_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5005.61 Safari/537.36',
# # proxy=proxy,
# # locale="zh-CN",
# # timezone_id="Asia/Shanghai",
# # screen={"height": 1080, "width": 1920},z
# # viewport={"height": 1000, "width": 1230})
# )
# page = context.new_page()
#
# stealth_sync(page)
#
# page.goto("https://shopee.co.id/", timeout=800000)
#
# time.sleep(100000)
import os
# import time
#
# import undetected_chromedriver as uc
#
# chrome = uc.Chrome()
# chrome.get("https://shopee.co.id/")
# time.sleep(1000000)
#