Skip to content

zytelabs/scrapy-openspec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

scrapy-openspec

Behavioural specifications for a Scrapy project using scrapy-poet and scrapy-zyte-api.

Each spec covers one area of the project and defines requirements as scenarios in a Given/When/Then style. Specs are derived from real corrections made during development.

Usage

Clone into the root of any Scrapy project as the openspec/ directory:

git clone https://github.com/zytelabs/scrapy-openspec.git openspec

Structure

openspec/
  specs/              # One subdirectory per feature, each with a spec.md
    spider/
    page-objects/
    custom-items/
    fixture-testing/
    project-settings/
    sqlite-pipeline/
  changes/            # Change log and archive

Specs

Spec What it covers
spider Async callbacks, urls list, response.follow, unused _ param, DummyResponse policy
page-objects Domain-per-file layout, class naming, handle_urls patterns, url field casting, stub convention
custom-items Plain attrs items, field definitions for Product and ProductList
fixture-testing scrapy savefixture workflow, output.json accuracy, subagent parallelism
project-settings ADDONS order, SCRAPY_POET_DISCOVER, pytest config, project creation flow
sqlite-pipeline Item filtering, configurable DB path, JSON serialisation of list fields

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors