Skip to content

Commit aed76fd

Browse files
committed
新增 抓取爬蟲程式碼
1 parent e7f13c0 commit aed76fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Selenium/Chapter_1/test_firefox.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from selenium import webdriver
2+
import os
3+
4+
driver = webdriver.Firefox(executable_path=os.getcwd() + '/geckodriver') # 開啟firefox
5+
6+
driver.get("https://www.google.com.tw/") # 前往Google
7+
8+
driver.close() # 將瀏覽器關閉
9+

0 commit comments

Comments
 (0)