Quotidien Shaarli

Tous les liens d'un jour sur une page.

October 19, 2024

Scrapy Database Guide - Saving Data To Postgres Database | ScrapeOps

Saving Scraped Data To Postgres Database With Scrapy Pipelines

If your scraping a website, you need to save that data somewhere. A great option is Postgres as it is a battletested database, trusted by thousands of companies to handle huge amounts of data.

In this guide, we will go through how to save our data to a Postgres database using Scrapy pipelines:

  • What Are Scrapy Item Pipelines?
  • Setting Up A Postgres Database
  • Saving Data To A Postgre Database
  • Only Saving New Data

First, let's go over what are Scrapy Item Pipelines.