Website Scraping with Python: Using BeautifulSoup and Scrapy
- 2h 5m
- Gábor László Hajba
- Apress
- 2018
Closely examine website scraping and data processing: the technique of extracting data from websites in a format suitable for further analysis. You'll review which tools to use, and compare their features and efficiency. Focusing on BeautifulSoup4 and Scrapy, this concise, focused book highlights common problems and suggests solutions that readers can implement on their own.
Website Scraping with Python starts by introducing and installing the scraping tools and explaining the features of the full application that readers will build throughout the book. You'll see how to use BeautifulSoup4 and Scrapy individually or together to achieve the desired results. Because many sites use JavaScript, you'll also employ Selenium with a browser emulator to render these sites and make them ready for scraping.
By the end of this book, you'll have a complete scraping application to use and rewrite to suit your needs. As a bonus, the author shows you options of how to deploy your spiders into the Cloud to leverage your computer from long-running scraping tasks.
What You'll Learn
- Install and implement scraping tools individually and together
- Run spiders to crawl websites for data from the cloud
- Work with emulators and drivers to extract data from scripted sites
Who This Book Is For
Readers with some previous Python and software development experience, and an interest in website scraping.
About the Author
Gabor Laszlo Hajba is an IT Consultant who specializes in Java and Python, and holds workshops about Java and Java Enterprise Edition. As the CEO of the JaPy Szoftver Kft in Sopron, Hungary he is responsible for designing and developing customer needs in the enterprise software world. He has also held roles as a software developer with EBCONT Enterprise Technologies, and as an Advanced Software Engineer with Zuhlke Group. He considers himself a workaholic, (hard)core and well-grounded developer, functional minded, freak of portable apps and "a champion Javavore who loves pushing code" and loves to develop in Python.
In this Book
-
Getting Started
-
Enter the Requirements
-
Using Beautiful Soup
-
Using Scrapy
-
Handling JavaScript
-
Website Scraping in the Cloud