Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Web Scraping with Python - Second Edition

You're reading from  Hands-On Web Scraping with Python - Second Edition

Product type Book
Published in Oct 2023
Publisher Packt
ISBN-13 9781837636211
Pages 324 pages
Edition 2nd Edition
Languages
Author (1):
Anish Chapagain Anish Chapagain
Profile icon Anish Chapagain

Table of Contents (20) Chapters

Preface 1. Part 1:Python and Web Scraping
2. Chapter 1: Web Scraping Fundamentals 3. Chapter 2: Python Programming for Data and Web 4. Part 2:Beginning Web Scraping
5. Chapter 3: Searching and Processing Web Documents 6. Chapter 4: Scraping Using PyQuery, a jQuery-Like Library for Python 7. Chapter 5: Scraping the Web with Scrapy and Beautiful Soup 8. Part 3:Advanced Scraping Concepts
9. Chapter 6: Working with the Secure Web 10. Chapter 7: Data Extraction Using Web APIs 11. Chapter 8: Using Selenium to Scrape the Web 12. Chapter 9: Using Regular Expressions and PDFs 13. Part 4:Advanced Data-Related Concepts
14. Chapter 10: Data Mining, Analysis, and Visualization 15. Chapter 11: Machine Learning and Web Scraping 16. Part 5:Conclusion
17. Chapter 12: After Scraping – Next Steps and Data Analysis 18. Index 19. Other Books You May Enjoy

After Scraping – Next Steps and Data Analysis

So far, we have learned how to scrape the web, analyze the data collected, and apply machine learning (ML) algorithms using Python programming.

This chapter will provide a basic introduction to some emerging concepts and technologies that are becoming crucial in the field. Being able to draw insights and knowledge from data is in high demand, and even supply-related scopes have been growing exponentially. From the fields of research to business, the importance of data has grown rapidly. Artificial intelligence (AI)-based systems, powered by ML logic, will continue to consume and generate more data.

In this chapter, we will learn about the following topics:

  • What happens after scraping?
  • Web requests
  • Data processing
  • Jobs and careers

Technical requirements

A web browser (Google Chrome or Mozilla Firefox) is required to explore the provided resources.

What happens after scraping?

Web scraping is a method of collecting and supplying quality data, and applying various techniques that depend on data. Any faculty or domain that involves data provides the opportunity to learn and grow as data collected from scraping is used for many other tasks such as analysis, reporting, dataset creation, and mining. Web-scraping-related techniques have always been dynamic and challenging, alongside the growth of web-based technologies.

Systems based on data, returning raw data, processed data, and visualization plots, in the form of images and videos, are growing by involving global audiences in multiple forms. Information technology (IT)-driven systems are core applications used in all industries, and Python programming has played a major role in the development and processing of data-related systems.

Earlier chapters of this book presented various steps that consolidated a few main concepts and actions, as listed here:

  • Demand for data...

Web requests

Throughout the chapters of this book, the requests Python library has been used to establish communication between the code and the web. Plenty of Python libraries can be found at https://pypi.org/ if we search for ones similar to requests.

The following subsections list some Python libraries and technologies and provide brief introductions to them.

pycurl

The pycurl Python library (http://pycurl.io/) is a wrapper on top of the popular libcurl library. libcurl is one of the earliest Python libraries that was used to communicate with websites on the internet, based on the curl tool (also known as cURL).

curl (https://curl.se/) is a command-line tool that is used to connect and transfer data over the web. curl is the basis of network communication; it’s a core implementation that is used with the help of a wrapper across different operating systems (OSs), browsers, and machines that communicate with the internet. The curl command is machine-independent...

Data processing

Data processing, in the context of web scraping, refers to storing, handling, managing, and analyzing the data that is generated from scraping. In previous chapters of the book, we focused on the concept of effective and efficient scraping with code examples.

As the demand for data is growing, technologies are also evolving and adapting to new changes. Currently, as there has been a boom in AI/ML-based systems, there is competition to provide easy and quick solutions to problems without compromising on quality.

In the coming sections, we will introduce some technologies that help with data processing.

PySpark

The Python library for Apache Spark, pyspark (https://spark.apache.org/), is used to process and analyze data, especially of a large volume. Spark is a framework that is used to handle big data (data with variety, volume, and velocity) and is more effective than Hadoop (https://hadoop.apache.org/), a framework for parallel processing, scheduling, and...

Jobs and careers

In this book so far, we have covered various topics on Python programming and web scraping. We have learned different techniques, particularly focused on data, including searching, acquiring, mining, transforming, analyzing, and visualizing.

The availability of job opportunities that allow individuals to implement the learned skills while also acquiring additional and up-to-date ones serves as a strong motivation to continue to learn and develop their skills. Data-related careers offer attractive prospects globally, with excellent salaries offered.

In this section, we will provide a list of job titles related to web scraping and Python programming for your reference. This is especially relevant for those interested in developing data-related skills (such as data science and AI/ML), considering the current demand in the field.

Here are some job titles sourced from various job sites across the globe:

  • Senior Python programmer
  • Expert Python programmer...

Summary

In this chapter, we explored some of the hot technologies on the market and in the field of data science. Technological frameworks and tools are always evolving. Therefore, it is the developer’s duty to keep up with the latest updates in technologies.

Web scraping or data extraction is one of the core fields of data science, though data processing and analyzing tasks closely follow. Collecting, gathering, and storing data from target websites using scraping techniques used to be core aspects of web scraping. However, as there have been various breakthroughs in systems that interact with data, providing quality data that can be directly implemented in the systems, stored in formats required by the customer, applicable for real-time processing, and more are also to be considered.

Data or datasets are made available using APIs, through sites dedicated to providing tools for research, and more. Web scraping comes into play when we require specific data from a target...

lock icon The rest of the chapter is locked
You have been reading a chapter from
Hands-On Web Scraping with Python - Second Edition
Published in: Oct 2023 Publisher: Packt ISBN-13: 9781837636211
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}