Python 3爬蟲、數據清洗與可視化實戰 Python 3爬虫、数据清洗与可视化实战

零一

立即出貨

買這商品的人也買了...

相關活動主題

Web scraping small
20180917 python%e7%b0%a1%e4%b8%ad%e8%8b%b1%e6%96%87 small1
20180802 %e6%9c%80%e6%96%b0%e5%88%b0%e8%b2%a8small

商品描述

本書內容來自筆者在浙江某高校授課內容,主要介紹運用Python工具獲取電商平臺的頁面數據,並對數據做清洗和存儲。

本書簡化了Python基礎部分,保證有足夠的篇幅來介紹爬蟲和數據清洗的內容,對於Python基礎,建議新手可以選購對應的基礎書籍配合本書一起學習。

作者簡介

零一
沐垚科技創始人,電商自媒體,資深數據分析師,8年電商從業經驗,擅長Excel、Power BI、R、Python等工具,主要研究數據化運營、商業智能和人工智能在電商領域的應用,專注數據+電商的新零售服務。出版《電商數據分析淘寶實戰》《美麗的電商運營日記》《Excel BI之道:從零開始學Power工具應用》等

目錄大綱

第1章Python基礎............................................. ........................................ 1 
1.1安裝Python環境..... .................................................. .................................................. ..... 1 
1.1.1 Python 3.6.2安裝與配置.................................. .................................................. ...... 1 
1.1.2使用IDE工具——PyCharm .................................. .................................................. 4 
1.1.3使用IDE工具——Anaconda ........................................ ........................................... 4 
1.2 Python操作入門.. .................................................. .................................................. ........ 6
1.2.1編寫第一個Python代碼......................................... ................................................. 6 
1.2.2 Python基本操作............................................ .................................................. ......... 9 
1.2.3變量.................................... .................................................. .................................... 10 
1.3 Python數據類型......... .................................................. ................................................. 10 
1.3.1數字.............................................. .................................................. .......................... 10 
1.3.2字符串.................. .................................................. .................................................. .11
1.3.3列表.............................................. .................................................. .......................... 13 
1.3.4元組.................. .................................................. .................................................. .... 14 
1.3.5集合......................................... .................................................. ............................... 15 
1.3.6字典.............. .................................................. .................................................. ........ 15 
1.4 Python語句與函數.................................... .................................................. ................... 16
1.4.1條件語句............................................. .................................................. ................... 16 
1.4.2循環語句......................... .................................................. ....................................... 16 
1.4.3函數...... .................................................. .................................................. ................ 17 
第2章寫一個簡單的爬蟲......................... ................................................. 18 
2.1關於爬蟲的合法性............................................ .................................................. ........... 18 
2.2了解網頁................................... .................................................. .................................... 20
2.2.1認識網頁結構............................................ .................................................. ............ 21 
2.2.2寫一個簡單的HTML ............................. .................................................. .............. 21 
2.3使用requests庫請求網站............................. .................................................. ............... 23 
Python 3爬蟲、數據清洗與可視化實戰

2.3.1安裝requests庫................... .................................................. .................................. 23 
2.3.2爬蟲的基本原理........ .................................................. ............................................ 25 
2.3.3使用GET方式抓取數據.............................................. .......................................... 26
2.3.4使用POST方式抓取數據......................................... ............................................. 27 
2.4使用Beautiful Soup解析網頁................................................ ....................................... 30 
2.5清洗和組織數據..... .................................................. .................................................. .... 34 
2.6爬蟲攻防戰......................................... .................................................. .......................... 35