Enviar pesquisa
Carregar
Selenium與動態網頁爬蟲應用
•
Transferir como PPTX, PDF
•
0 gostou
•
449 visualizações
Y
Yanwei Liu
Seguir
本簡報為快樂學程式的直播課程簡報 Selenium與動態網頁爬蟲應用:以Google搜尋為例,獲得無廣告的搜尋結果
Leia menos
Leia mais
Engenharia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 26
Baixar agora
Recomendados
Automated Web Testing Using Selenium
Automated Web Testing Using Selenium
昱劭 劉
This slide describe unit test conception and tools. This slide is for entry level and want learn how to do unit test in practice.
單元測試
單元測試
國昭 張
Jmeter
Jmeter
Jmeter
Guang Ying Yuan
C# 深耕系列課程 (1)
例外處理實務
例外處理實務
Jeff Chu
Rails 炸機實務
Rails 炸機實務
Manic
完整介紹整個例外處理與單元測試
例外處理與單元測試
例外處理與單元測試
國昭 張
试玩前端测试的前因后果
试玩前端测试的前因后果
Zhicheng Wang
基于jasmine和cloudyrun,实现自动化的前端功能测试。
试玩前端测试的前因后果
试玩前端测试的前因后果
hahaxiaolaohu
Recomendados
Automated Web Testing Using Selenium
Automated Web Testing Using Selenium
昱劭 劉
This slide describe unit test conception and tools. This slide is for entry level and want learn how to do unit test in practice.
單元測試
單元測試
國昭 張
Jmeter
Jmeter
Jmeter
Guang Ying Yuan
C# 深耕系列課程 (1)
例外處理實務
例外處理實務
Jeff Chu
Rails 炸機實務
Rails 炸機實務
Manic
完整介紹整個例外處理與單元測試
例外處理與單元測試
例外處理與單元測試
國昭 張
试玩前端测试的前因后果
试玩前端测试的前因后果
Zhicheng Wang
基于jasmine和cloudyrun,实现自动化的前端功能测试。
试玩前端测试的前因后果
试玩前端测试的前因后果
hahaxiaolaohu
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
liqiang xu
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
bwgang
Plone is a powerful CMS based on Python/Zope, running on Linux, Windows, or cloud service. Ploud.net, provided by Enfold Systems, is free, easy-to-use service for creating and hosting Plone sites. This presentation, in ICOS, showcases the updated technology used by Plone.
Proud Plone on Cloud
Proud Plone on Cloud
TsungWei Hu
PyCon Taiwan 2021 使用 Pytest 進行單元測試 demos: https://tw.pycon.org/2021/zh-hant/conference/tutorial/8
使用 Pytest 進行單元測試 (PyCon TW 2021)
使用 Pytest 進行單元測試 (PyCon TW 2021)
Max Lai
Testing (in Python) for Editors http://edit.flipedu.tw/
Tip for Editors
Tip for Editors
Chun-Yu Tseng
知識是可貴的,而您的回饋與收穫會讓這份資料更具價值。 --- 健康照護領域資料分析基礎能力研習 本投影片擷取此次研習之Python 系列講座,若有任何問題或疏誤,請來信告知,謝謝。 --- 本投影片首次上傳時間為2017. 7. 4 於2017. 7. 5 19:25 修改
Python系列1
Python系列1
數真 蔡
為什麼我選擇 Laravel Framework
Why to choose laravel framework
Why to choose laravel framework
Bo-Yi Wu
初步的解釋 unit test 跟 e2e 測試的差別,並且讓聽眾暸解測試的重要性
測試是什麼
測試是什麼
Yvonne Yu
J2EE Performance Monitor (Profiler)
J2EE Performance Monitor (Profiler)
Allan Huang
如何選擇 Web Framework
How to choose web framework
How to choose web framework
Bo-Yi Wu
人民邮电出版社《软件测试》(朱少民)教材 电子课件 第1章
第1章 软件测试概述
第1章 软件测试概述
Kerry Zhu
人民邮电出版社《软件测试》(朱少民,2009版)第1章
软件测试 -第1章 概述
软件测试 -第1章 概述
Kerry Zhu
广告技术部自动化测试介绍.pdf
广告技术部自动化测试介绍.pdf
bj_qa
Date: 20220813 (六) 主辦單位: 台灣軟體工程協會 (https://www.seat.org.tw/event/2022testing) 內容摘要: 分享從無到有建立軟體測試團隊的經歷,探討軟體測試常見的現象,像是『測試金字塔的現實與理想』、『功能與非功能驗證混搭』,最後透過探索與品味軟體的想法,希望能讓社會新鮮人進入職場後,在軟體開發與測試路上,找到適合自己的路。 Blog:https://rickhw.github.io/2022/08/13/SQA/Path-to-Software-Testing/ 錄影:https://youtu.be/WAK-kMzi8wc
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
Rick Hwang
Robot framework是一種什麼框架,該如何使用這個框架。 在這次的分享中,會簡單介紹 Robot framework ,他為什麼適合QA,該如何開始使用框架,並且會在現場的實作基本測試。他為什麼可以讓一個部門才創立短短不到兩年,如何快速地且有效率的增加自動化測試coverage。如果你正在為選擇哪種工具來增加自動化測試,或者正在組織 QA 部門,可能 Robot framework 會是你不錯的選擇。
Agile Taichung sharing Robot Framework 2018/05/19
Agile Taichung sharing Robot Framework 2018/05/19
Leo Tseng
因為當日實際只有 50 分鐘的分享時間,因此無法手把手的讓參與者操作每個步驟,但所有的操作步驟都已經公開於部落格文章中,可自行操作。此簡報為解說 workshop 101 每個環節之用,並提出一些在規劃 CI / CD pipeline 時需要注意的延伸思考。
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
Chen Cheng-Wei
豆瓣I os自动化测试实践和经验
豆瓣I os自动化测试实践和经验
drewz lin
TCon分享 iOS自动化测试
Tcon分享 芈峮
Tcon分享 芈峮
mijun_hlp
Study-Area @ Tainan & Taichung
網頁安全 Web security 入門 @ Study-Area
網頁安全 Web security 入門 @ Study-Area
Orange Tsai
2007/9/4 月會介紹 iSample 的投影片
I Sample 20070904
I Sample 20070904
Shin-Jan Wu
Mais conteúdo relacionado
Semelhante a Selenium與動態網頁爬蟲應用
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
liqiang xu
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
bwgang
Plone is a powerful CMS based on Python/Zope, running on Linux, Windows, or cloud service. Ploud.net, provided by Enfold Systems, is free, easy-to-use service for creating and hosting Plone sites. This presentation, in ICOS, showcases the updated technology used by Plone.
Proud Plone on Cloud
Proud Plone on Cloud
TsungWei Hu
PyCon Taiwan 2021 使用 Pytest 進行單元測試 demos: https://tw.pycon.org/2021/zh-hant/conference/tutorial/8
使用 Pytest 進行單元測試 (PyCon TW 2021)
使用 Pytest 進行單元測試 (PyCon TW 2021)
Max Lai
Testing (in Python) for Editors http://edit.flipedu.tw/
Tip for Editors
Tip for Editors
Chun-Yu Tseng
知識是可貴的,而您的回饋與收穫會讓這份資料更具價值。 --- 健康照護領域資料分析基礎能力研習 本投影片擷取此次研習之Python 系列講座,若有任何問題或疏誤,請來信告知,謝謝。 --- 本投影片首次上傳時間為2017. 7. 4 於2017. 7. 5 19:25 修改
Python系列1
Python系列1
數真 蔡
為什麼我選擇 Laravel Framework
Why to choose laravel framework
Why to choose laravel framework
Bo-Yi Wu
初步的解釋 unit test 跟 e2e 測試的差別,並且讓聽眾暸解測試的重要性
測試是什麼
測試是什麼
Yvonne Yu
J2EE Performance Monitor (Profiler)
J2EE Performance Monitor (Profiler)
Allan Huang
如何選擇 Web Framework
How to choose web framework
How to choose web framework
Bo-Yi Wu
人民邮电出版社《软件测试》(朱少民)教材 电子课件 第1章
第1章 软件测试概述
第1章 软件测试概述
Kerry Zhu
人民邮电出版社《软件测试》(朱少民,2009版)第1章
软件测试 -第1章 概述
软件测试 -第1章 概述
Kerry Zhu
广告技术部自动化测试介绍.pdf
广告技术部自动化测试介绍.pdf
bj_qa
Date: 20220813 (六) 主辦單位: 台灣軟體工程協會 (https://www.seat.org.tw/event/2022testing) 內容摘要: 分享從無到有建立軟體測試團隊的經歷,探討軟體測試常見的現象,像是『測試金字塔的現實與理想』、『功能與非功能驗證混搭』,最後透過探索與品味軟體的想法,希望能讓社會新鮮人進入職場後,在軟體開發與測試路上,找到適合自己的路。 Blog:https://rickhw.github.io/2022/08/13/SQA/Path-to-Software-Testing/ 錄影:https://youtu.be/WAK-kMzi8wc
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
Rick Hwang
Robot framework是一種什麼框架,該如何使用這個框架。 在這次的分享中,會簡單介紹 Robot framework ,他為什麼適合QA,該如何開始使用框架,並且會在現場的實作基本測試。他為什麼可以讓一個部門才創立短短不到兩年,如何快速地且有效率的增加自動化測試coverage。如果你正在為選擇哪種工具來增加自動化測試,或者正在組織 QA 部門,可能 Robot framework 會是你不錯的選擇。
Agile Taichung sharing Robot Framework 2018/05/19
Agile Taichung sharing Robot Framework 2018/05/19
Leo Tseng
因為當日實際只有 50 分鐘的分享時間,因此無法手把手的讓參與者操作每個步驟,但所有的操作步驟都已經公開於部落格文章中,可自行操作。此簡報為解說 workshop 101 每個環節之用,並提出一些在規劃 CI / CD pipeline 時需要注意的延伸思考。
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
Chen Cheng-Wei
豆瓣I os自动化测试实践和经验
豆瓣I os自动化测试实践和经验
drewz lin
TCon分享 iOS自动化测试
Tcon分享 芈峮
Tcon分享 芈峮
mijun_hlp
Study-Area @ Tainan & Taichung
網頁安全 Web security 入門 @ Study-Area
網頁安全 Web security 入門 @ Study-Area
Orange Tsai
2007/9/4 月會介紹 iSample 的投影片
I Sample 20070904
I Sample 20070904
Shin-Jan Wu
Semelhante a Selenium與動態網頁爬蟲應用
(20)
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
Selenium私房菜(新手入门教程)
Proud Plone on Cloud
Proud Plone on Cloud
使用 Pytest 進行單元測試 (PyCon TW 2021)
使用 Pytest 進行單元測試 (PyCon TW 2021)
Tip for Editors
Tip for Editors
Python系列1
Python系列1
Why to choose laravel framework
Why to choose laravel framework
測試是什麼
測試是什麼
J2EE Performance Monitor (Profiler)
J2EE Performance Monitor (Profiler)
How to choose web framework
How to choose web framework
第1章 软件测试概述
第1章 软件测试概述
软件测试 -第1章 概述
软件测试 -第1章 概述
广告技术部自动化测试介绍.pdf
广告技术部自动化测试介绍.pdf
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
Agile Taichung sharing Robot Framework 2018/05/19
Agile Taichung sharing Robot Framework 2018/05/19
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
豆瓣I os自动化测试实践和经验
豆瓣I os自动化测试实践和经验
Tcon分享 芈峮
Tcon分享 芈峮
網頁安全 Web security 入門 @ Study-Area
網頁安全 Web security 入門 @ Study-Area
I Sample 20070904
I Sample 20070904
Selenium與動態網頁爬蟲應用
1.
1PAG E Yanwei Liu Selenium與動態網頁爬蟲應用
2.
2PAG E 專注於Python爬蟲、資料分析、機器學習、深度學習程式應用開發。 Yanwei Liu Introduction
3.
3PAG E GitHub https://github.com/e96031413
4.
4PAG E Medium https://medium.com/@yanweiliu
5.
5PAG E Selenium爬蟲筆記 https://reurl.cc/D9xLaN
6.
6PAG E Q& A
7.
7PAG E 使用 Selenium
與 使用 Requests 套件進行網路爬蟲的差別是甚麼? 他們各有甚麼優缺點呢? Q1
8.
8PAG E Selenium優點: • 上手容易 •
跨平台的自動化測試工具(JAVA、C#、........) • 比較不會有被網頁封鎖的問題(至少我個人經驗) Selenium缺點: • 執行速度較慢(使用Chrome) • 需要driver驅動程式(chromedriver.exe) • Chrome更新需要重新下載driver A:
9.
9PAG E Requests優點: • 執行速度比Selenium「快很多」 •
有時要搭配header和proxy,解決被網頁封鎖的問題 • 可搭配LINE Notify,將爬蟲資料傳到自己的LINE群組 Requests缺點: • 要搭配BeautifulSoup解析網頁(需要會基礎的HTML / CSS) • 有時要搭配不同的header和proxy,解決被網頁封鎖的問題 A:
10.
10PAG E 若想使用 Selenium
進行動態網頁爬取, 是否需要先熟悉 html 與 Javascript ? Q2
11.
11PAG E 若想使用 Selenium
進行動態網頁爬取, 是否需要先熟悉 html 與 Javascript ? A:
12.
12PAG E Selenium 動態網頁爬蟲神器
13.
13PAG E 我曾用Selenium 爬過什麼? •
氣象局網站 • 政府部門資料網站 • 104人力銀行職缺查詢 • 網頁全畫面自動截圖 • 電影推薦網站
14.
14PAG E 本日Demo程式碼 https://reurl.cc/9EWqEX
15.
15PAG E Selenium 1. 安裝 pip
install selenium 到 https://reurl.cc/X62NOD 下載驅動程式
16.
16PAG E Selenium 2. 引入套件並初始化 from
selenium import webdriver from selenium.webdriver.common.keys import Keys #進行鍵盤輸入 driver_path = “X:/XXX/pathToYourDriver/chromedriver.exe” driver = webdriver.Chrome(driver_path)
17.
17PAG E Selenium 3. 開網頁 driver.get("https://www.google.com/")
18.
18PAG E Selenium 4. 用
XPAth找element keywords = "Python爬蟲“ search_bar = driver.find_element_by_xpath("/html/body/div[1]/div[3]/form/div[2]/div[1]/div[1]/div/div[2]/input") search_button = driver.find_element_by_xpath("/html/body/div/div[3]/form/div[2]/div[1]/div[2]/div[2]/div[2]/center/input[1]") 解決爬蟲新手不了解 HTML / CSS 及 JS問題
19.
19PAG E Selenium 5. 進行鍵盤操作 search_bar.send_keys(keywords)
# 輸入搜尋關鍵字 search_bar.send_keys(Keys.ENTER) # 按下Enter鍵
20.
20PAG E Selenium 6. 單頁爬蟲
21.
21PAG E Selenium 7. 指定頁數爬蟲
22.
22PAG E Selenium 8. 開始爬蟲 main() driver.close()
23.
23PAG E Q& A
24.
24PAG E 專注於Python爬蟲、資料分析、機器學習、深度學習程式應用開發。 Yanwei Liu Thanks
For Your Watching
25.
25PAG E GitHub https://github.com/e96031413
26.
26PAG E Medium https://medium.com/@yanweiliu
Notas do Editor
對於新手來說,我覺得若要進行爬蟲,還花很多時間在熟悉HTML及JS,會浪費太多時間 我今天要教大教即使沒有任何基礎,也能透過Selenium輕鬆體驗爬蟲
Baixar agora