Mô tả

Why this course?

  • Join the most popular course on Web Scraping  with Scrapy, Selenium and Splash.

  • Learn from the a professional instructor, Lazar Telebak, full-time Web Scraping Consultant.

  • Apply real-world examples and practical projects of Web Scraping popular websites.

  • Get the most up-to-date course and the only course with 10+ hours of playable content.

  • Empower your knowledge with an active Q&A board to answer all your questions.

  • 30 days money-back guarantee.


Scrapy is a free and open source web crawling framework, written in Python. Scrapy is useful for web scraping and extracting structured data which can be used for a wide range of useful applications, like data mining, information processing or historical archival. This Python Scrapy tutorial covers the fundamentals of Scrapy.

Web scraping is a technique for gathering data or information on web pages. You could revisit your favorite web site every time it updates for new information, or you could write a web scraper to have it do it for you!

Web crawling is usually the very first step of data research. Whether you are looking to obtain data from a website, track changes on the internet, or use a website API, web crawlers are a great way to get the data you need.

A web crawler, also known as web spider, is an application able to scan the World Wide Web and extract information in an automatic manner. While they have many components, web crawlers fundamentally use a simple process: download the raw data, process and extract it, and, if desired, store the data in a file or database. There are many ways to do this, and many languages you can build your web crawler or spider in.

Before Scrapy, developers have relied upon various software packages for this job using Python such as urllib2 and BeautifulSoup which are widely used. Scrapy is a new Python package that aims at easy, fast, and automated web crawling, which recently gained much popularity.

Scrapy is now widely requested by many employers, for both freelancing and in-house jobs, and that was one important reason for creating this Python Scrapy course, and that was one important reason for creating this Python Scrapy tutorial to help you enhance your skills and earn more income.

In this Scrapy tutorial, you will learn how to install Scrapy. You will also build a basic and advanced spider, and finally learn more about Scrapy architecture. Then you are going to learn about deploying spiders, logging into the websites with Scrapy. We will build a generic web crawler with Scrapy, and we will also integrate Splash and Selenium to work with Scrapy to iterate our pages. We will build an advanced spider with option to iterate our pages with Scrapy, and we will close it out using Close function with Scrapy, and then discuss Scrapy arguments. Finally, in this course, you will learn how to save the output to databases, MySQL and MongoDB. There is a dedicated section for diverse web scraping solved exercises... and updating.

One of the main advantages of Scrapy is that it is built on top of Twisted, an asynchronous networking framework. "Asynchronous" means that you do not have to wait for a request to finish before making another one; you can even achieve that with a high level of performance. Being implemented using a non-blocking (aka asynchronous) code for concurrency, Scrapy is really efficient.

It is worth noting that Scrapy tries not only to solve the content extraction (called scraping), but also the navigation to the relevant pages for the extraction (called crawling). To achieve that, a core concept in the framework is the Spider -- in practice, a Python object with a few special features, for which you write the code and the framework is responsible for triggering it.

Scrapy provides many of the functions required for downloading websites and other content on the internet, making the development process quicker and less programming-intensive. This Python Scrapy tutorial will teach you how to use Scrapy to build web crawlers and web spiders.

Scrapy is the most popular tool for web scraping and crawling written in Python. It is simple and powerful, with lots of features and possible extensions.


Python Scrapy Tutorial Topics:

This Scrapy course starts by covering the fundamentals of using Scrapy, and then concentrates on Scrapy advanced features of creating and automating web crawlers. The main topics of this Python Scrapy tutorial are as follows:

  • What Scrapy is, the differences between Scrapy and other Python-based web scraping libraries such as BeautifulSoup, LXML, Requests, and Selenium, and when it is better to use Scrapy.

  • This tutorial starts by how to create a Scrapy project and and then build a basic Spider to scrape data from a website.

  • Exploring XPath commands and how to use it with Scrapy to extract data.

  • Building a more advanced Scrapy spider to iterate multiple pages of a website and scrape data from each page.

  • Scrapy Architecture: the overall layout of a Scrapy project; what each field represents and how you can use them in your spider code.

  • Web Scraping best practices to avoid getting banned by the websites you are scraping.

  • In this Scrapy tutorial, you will also learn how to deploy a Scrapy web crawler to the Scrapy Cloud platform easily. Scrapy Cloud is a platform from Scrapinghub to run, automate, and manage your web crawlers in the cloud, without the need to set up your own servers.

  • This Scrapy tutorial also covers how to use Scrapy for web scraping authenticated (logged in) user sessions, i.e. on websites that require a username and password before displaying data.

  • This course concentrates mainly on how to create an advanced web crawler with Scrapy. We will cover using Scrapy CrawlSpider which is the most commonly used spider for crawling regular websites, as it provides a convenient mechanism for following links by defining a set of rules. We will also use Link Extractor object which defines how links will be extracted from each crawled page; it allows us to grab all the links on a page, no matter how many of them there are.

  • Furthermore there is a complete section in this Scrapy tutorial to show you how to combine Splash or Selenium with Scrapy to create web crawlers of dynamic web pages. When you cannot fetch data directly from the source, but you need to load the page, fill in a form, click somewhere, scroll down and so on, namely if you are trying to scrape data from a website that has a lot of AJAX calls and JavaScript execution to render webpages, it is good to use Splash or Selenium along with Scrapy.

  • We will also discuss more functions that Scrapy offers after the spider is done with web scraping, and how to edit and use Scrapy parameters.

  • As the main purpose of web scraping is to extract data, you will learn how to write the output to CSV, JSON, and XML files.

  • Finally, you will learn how to store the data extracted by Scrapy into MySQL and MongoDB databases.


Bạn sẽ học được gì

Creating a web crawler in Scrapy

Crawling a single or multiple pages and scrape data

Deploying & Scheduling Spiders to ScrapingHub

Logging into Websites with Scrapy

Running Scrapy as a Standalone Script

Integrating Splash with Scrapy to scrape JavaScript rendered websites

Using Scrapy with Selenium in Special Cases, e.g. to Scrape JavaScript Driven Web Pages

Building Scrapy Advanced Spider

More functions that Scrapy offers after Spider is Done with Scraping

Editing and Using Scrapy Parameters

Exporting data extracted by Scrapy into CSV, Excel, XML, or JSON files

Storing data extracted by Scrapy into MySQL and MongoDB databases

Several real-life web scraping projects, including Craigslist, LinkedIn and many others

Python source code for all exercises in this Scrapy tutorial can be downloaded

Q&A board to send your questions and get them answered quickly

Yêu cầu

  • Python Level: Intermediate. This Scrapy tutorial assumes that you already know the basics of writing simple Python programs and that you are generally familiar with Python's core features (data structures, file handling, functions, classes, modules, common libraries, etc.).
  • Python 2.7+ or Python 3.3+
  • Any operating system (Linux, Mac, Windows) is good.
  • Positiveness and willingness to learn new things and to ask questions (if any) at the Q&A board of the course.
  • If you do not know what Scrapy is or why you should use it, please read the course description and watch the preview lectures BEFORE joining the course.

Nội dung khoá học

26 sections

Scrapy vs. Other Python Web Scraping Frameworks

2 lectures
Scrapy vs. Beautiful Soup vs. Selenium
09:45
Course Tips (Must Read)
01:36

Scrapy Installation

5 lectures
Linux Scrapy Installation
02:39
Mac Scrapy Installation
02:05
Windows Scrapy Installation
03:01
Scrapy Installation Instructions
00:30
Python Editor: Sublime Text
01:49

Building Basic Spider with Scrapy

3 lectures
Scrapy Simple Spider - Part 1
09:47
Scrapy Simple Spider - Part 2
14:42
Scrapy Simple Spider - Part 3
09:44

XPath Syntax

2 lectures
Using XPath with Scrapy
07:09
Tools to Easily Get XPath
01:07

Q&A

3 lectures
Scrapy Basics
9 questions
Do you have questions so far?
00:28
XPath Syntax
4 questions

Building More Advanced Spider with Scrapy

5 lectures
Scrapy Advanced Spider - Part 1
04:23
Scrapy Advanced Spider - Part 2
08:35
Scrapy Advanced Spider - Part 3
07:05
Scrapy Advanced Spider - Part 4
05:28
Scrapy Architecture
12:30

Web Scraping Best Practices

1 lectures
Avoid Getting Banned!
01:36

Deploying & Scheduling Scrapy Spider on ScrapingHub

1 lectures
ScrapingHub: Deploying & Scheduling Scrapy Spiders (UPDATED)
10:41

Logging into Websites Using Scrapy

1 lectures
Logging into Websites Using Scrapy
17:02

Scrapy as a Standalone Script (UPDATED)

1 lectures
Scrapy as a Standalone Script (UPDATED)
02:35

Building Web Crawler with Scrapy

1 lectures
Building Web Crawler with Scrapy
10:26

Scrapy with Selenium

4 lectures
Why/When We Should Use Selenium
01:04
Selenium WebDriver + Scrapy Selector to Extract URLs
13:10
Selenium Loading Next for Data Extraction (usable even with JavaScript pages)
08:38
Getting Data
00:54

Scrapy with Splash - JavaScript Websites

6 lectures
Splash Prerequisite: Install Docker (NEW)
00:33
Splash Installation (NEW)
06:06
How to use Splash with Scrapy (NEW)
14:57
Splash Advanced Project: Scraping Baierl.com p.1 (NEW)
09:20
Splash Advanced Project: Scraping Baierl.com p.2 (NEW)
10:29
Splash Advanced Project: Scraping Baierl.com p.3 (NEW)
22:07

Scrapy Spider - Bookstore

2 lectures
Grabbing URLs
07:57
Data Extraction
18:41

More about Scrapy

3 lectures
Scrapy Arguments
02:31
Scrapy Close Function
02:46
Scrapy Items
09:54

Export Output to Files

4 lectures
Scrapy Feed Exports to CSV, JSON, or XML
02:40
Export Output to Excel
06:04
Downloading Images with Scrapy Pipelines
10:15
Renaming Images with Scrapy Pipelines
10:24

Scrapy Project #1: Scraping Craigslist Eng Jobs in NY

8 lectures
Craigslist Scraper - Overview
00:35
Creating Scrapy Craigslist Spider
04:11
Craigslist Scrapy Spider #1 – Titles
09:45
Craigslist Scrapy Spider #2 – One Page
09:29
Craigslist Scrapy Spider #3 – Multiple Pages
07:40
Craigslist Scrapy Spider #4 – Job Descriptions
15:10
Editing Scrapy settings.py (e.g. throttling, user agent, etc.)
03:47
Final Scrapy Tutorial, Craigslist Spider Code
00:35

Extracting Data to Databases - MySQL & MongoDB

6 lectures
Installing MySQL
00:11
MySQL Installation and Usage
08:14
Writing Data to MySQL
14:39
Installing MongoDB
00:11
MongoDB Installation and Usage
07:49
Writing Data to MongoDB
08:43

Scrapy Project #2: Web Scraping Class-Central.com

2 lectures
Scraping Class-Central - Part 1: Subjects (UPDATED)
15:50
Scraping Class-Central - Part 2: Courses (UPDATED)
17:02

Scrapy Advanced Topics

5 lectures
Scrapy User Agent
02:31
Scraping Tables (UPDATED)
21:22
Scraping JSON Pages
11:13
Scrapy FormRequest (UPDATED)
14:45
Using Multiple Proxies with Crawlera (Optional)
09:10

Scrapy Project #3: Web Scraping Dynamic Website eplanning.ie

7 lectures
ePlanning Scraping Project Overview
00:52
ePlanning: Extracting Initial URLs
06:41
ePlanning: Crawling Internal Pages
04:47
ePlanning: Scrapy Form Requests
15:48
ePlanning: Scraping Data
11:13
ePlanning: Checking Data Existence
06:12
ePlanning: Scraping Data from Table
15:34

Project #4: Scraping Shoes' Prices from API Request

3 lectures
Scraping Product Prices from API Request p.1 (NEW)
09:51
Scraping Product Prices from API Request p.2 (NEW)
13:23
Scraping Product Prices from API Request p.3 (NEW)
13:05

Project #5: Web Scraping LinkedIn.com (UPDATED)

7 lectures
LinkedIn Scraping Project: Overview & Requirements (UPDATED)
02:14
LinkedIn Logging in (UPDATED)
13:54
Finding LinkedIn Profiles: Part 1 (UPDATED)
11:55
Finding LinkedIn Profiles: Part 2 (UPDATED)
04:25
Scraping Data Points from LinkedIn Profiles: Part 1 (UPDATED)
12:04
Scraping Data Points from LinkedIn Profiles: Part 2 (UPDATED)
06:56
Connecting to LinkedIn Profiles (UPDATED)
09:25

Solved Web Scraping Exercises

3 lectures
Yield Data Items from 2 Functions
00:57
How to Order Exported Data
00:23
Xpath contains() and starts-with() functions
01:00

Bonus: Data Extraction with APIs

1 lectures
Data Extraction with APIs (Free Tutorial)
00:17

Bonus: Web Scraping with Beautiful Soup, Requests & Selenium Course

1 lectures
Coupon for Web Scraping with Beautiful Soup, Requests & Selenium & Other Courses
01:59

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.