http://stackoverflow.com/questions
=========Scrapy use pipeline store data to postgredb==========
[postgredb]
CREATE TABLE public.stack2
(
title text COLLATE pg_catalog."default",
url text COLLATE pg_catalog."default"
)
[project]
scrapy startproject stack
cd stack
scrapy genspider st stackoverflow.com
>>>>>items.py<<<<<<
import scrapy
from scrapy.item import Item, Field
class StackItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title = Field()
url = Field()
>>>>>items.py<<<<<<
>>>>>settings.py add<<<<<<
ITEM_PIPELINES = {
'stack.pipelines.Stac