The goal of scraping is to extract data from websites. Without Scrapy Items, we return unstructured data in the form of Python dictionaries: An easy way to introduce typos and return faulty data.
Luckily, Scrapy provides us with the Item class: A class we can inherit to make our data more structured and stronger, yielding a Python object.
In this video you will learn how to:
Create Scrapy Items
Use them to return a structured object
╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬
00:13 - Intro
00:51 - Creating a Scrapy Item
02:00 - Testing our Scrapy Item
03:00 - Using our Scrapy Item
04:14 - Running the Spider
05:18 - Summary
╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬
Scrapy Items:
https://docs.scrapy.org/en/latest/top...
╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬
Subscribe to the channel:
/ @letslearnabout4934
Text version:
https://letslearnabout.net/python/pyt...
Twitter:
/ davidmm1707
GitHub:
https://github.com/david1707/scrapy_t...