Python Data Scraping: Techniques and Practice
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握Python基础语法,想系统入门网络数据抓取的开发者
- 需要处理动态渲染页面、IP封锁等实战障碍的爬虫从业者
- 数据分析岗人员,希望自己动手获取外部公开数据的读者
- 高校计算机相关专业学生,用作数据采集课程参考书
Not a good fit for
- 完全没有编程经验、需要从零学Python的纯新手
- 想直接学习Scrapy、Playwright等现代框架最新用法的人
- 只关心数据分析建模、不打算自己写抓取程序的读者
Reading tips
- 先跑通第1章的两个小实例,把环境与pip源配好,再进入第2章字符串解析。
- 第3至6章建议边读边敲代码,每章结束后改造示例去抓一个自己感兴趣的真实页面。
- 第7章可当工具书使用,遇到具体问题(动态加载、App数据、图片等)时再回查对应小节。
- 注意代码年代,requests、Selenium、Celery的API已有变化,遇到报错优先查官方文档而非硬抄书中写法。
About the publisher
The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.
Contents
- Chapter 1 Python Basics
- 1.1 Installing Python
- 1.2 Installing pip
- 1.3 How to Look Up Help
- 1.4 The First Example
- 1.5 File Operations
- 1.6 Loops
- 1.7 Exceptions
- 1.8 Tuples
- 1.9 Lists
- 1.10 Dictionaries
- 1.11 Sets
- 1.12 Random Numbers
- 1.13 Using enumerate
- 1.14 The Second Example
- Chapter 2 String Parsing
- 2.1 Common Functions
- 2.2 Regular Expressions
- 2.3 BeautifulSoup
- 2.4 JSON Structures
- Chapter 3 Single-Machine Data Scraping
- 3.1 Single-Machine Sequential Scraping
- 3.2 requests
- 3.3 Concurrent and Parallel Scraping
- Chapter 4 Distributed Data Scraping
- 4.1 Using RPC
- 4.2 The Celery System
- Chapter 5 The Versatile Selenium
- 5.1 Single-Machine Scraping with Selenium
- 5.2 Distributed Scraping with Selenium
- 5.3 Using Selenium on Linux Without a Graphical Interface
- Chapter 6 The Mysterious Tor
- 6.1 The Problem of IP Blocking During Scraping
- 6.2 Installing and Using Tor
- 6.3 Multithreaded Use of Tor
- 6.4 Combining Tor with Selenium
- Chapter 7 Common Scraping Problems
- 7.1 Flash
- 7.2 Desktop Applications
- 7.3 USB Drives
FAQ
这本书适合零基础学Python的人吗?
书里的代码现在还能直接运行吗?
书名叫“数据抓取技术与实战”,为什么有数据分析和可视化内容?
作者是谁?
和Scrapy类爬虫书相比有什么区别?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.