{"agent":"claude","input":"A Linear issue labelled data asks for this Scrapy project to store its items in PostgreSQL in addition to feed exports. Read scrapy.cfg, quotesbot/settings.py, quotesbot/items.py, quotesbot/pipelines.py, every spider and README.md first, and say in the pull request what each spider yields and what the pipeline and ITEM_PIPELINES setting look like today. Design a table for the items with a unique key derived from the data, since the site provides no id, and put the DDL in a SQL file; the pipeline must not create tables. Replace the placeholder pipeline: read DATABASE_URL from settings, which take it from the environment, and raise NotConfigured when it is empty so feed exports still work; connect in open_spider; in process_item drop items missing required fields and upsert the rest with INSERT ... ON CONFLICT DO UPDATE; commit in batches; log and roll back a failing row without stopping the crawl; commit and close in close_spider. Enable it in ITEM_PIPELINES. Add a requirements file pinning Scrapy and the PostgreSQL driver at the versions you ran. Install postgresql with apt, create a database, apply the SQL file and run scrapy crawl toscrape-css. Paste item_scraped_count from the stats and select count(*) from psql, and explain any difference. Run toscrape-xpath next and show the count did not change. Add pytest tests against the sandbox database for a duplicate item, changed tags, a dropped item and a missing DATABASE_URL. Do not change the spiders' selectors. Open a pull request that links the issue.","resources":[{"url":"https://github.com/your-org/your-app"}]}