soiz commited on
Commit
3ac0800
·
verified ·
1 Parent(s): 179f4ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -20
app.py CHANGED
@@ -1,20 +1 @@
1
- from selenium import webdriver
2
- from selenium.webdriver.chrome.options import Options
3
-
4
- # Chromeオプションの作成
5
- chrome_options = Options()
6
-
7
- # プロキシサーバーの設定
8
- chrome_options.add_argument('--proxy-server=http://proxy.example.com:3128')
9
-
10
- # WebDriverの作成
11
- driver = webdriver.Chrome(options=chrome_options)
12
-
13
- # Webページを開く
14
- driver.get("https://httpbin.org/ip")
15
-
16
- # レスポンスを表示
17
- print(driver.page_source)
18
-
19
- # ドライバーを閉じる
20
- driver.quit()
 
1
+ https://github.com/NebulaServices/Nebula