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/topics/items.html
╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬
Subscribe to the channel:
https://www.youtube.com/channel/UC9OLm6YFRzr4yjlw4xNWYvg?sub_confirmation=1
Text version:
https://letslearnabout.net/python/python-scrapy-tutorial-for-beginners-05-how-to-use-scrapy-items/
Twitter:
https://twitter.com/DavidMM1707
GitHub:
https://github.com/david1707/scrapy_tutorial/tree/05_lesson