Andrey Rakhmatullin
bdf3067935
Assorted docs fixes, part 1. ( #7710 )
2026-07-07 18:39:34 +05:00
Omkar Kabde
5149e2c679
docs: switch `scrapy.Item` examples to dataclasses ( #7513 )
...
* docs: switch `scrapy.Item` examples to dataclasses
* make serializer doc generic
* use modern type hints
* docs/spiders: switch TestItem consumer snippets to attribute access
Since the TestItem migration to @dataclass, the existing
item["id"] = ... assignments would raise TypeError on copy-paste.
Switch to item.id = ... to match the new dataclass declaration.
The snippets sit under .. skip: next so docs-tests still pass either
way, but the change keeps the examples runnable for readers.
2026-06-08 12:40:28 +05:00
Adham 3llam
9381ad893d
Remove outdated version marker directives (< 2.8.0) from documentation ( #7198 )
2025-12-22 10:00:39 +01:00
Andrey Rakhmatullin
ed63fa94d6
Deprecate spider args of middlewares and pipelines. ( #7006 )
...
* Deprecate spider args of spider middleware methods.
* Deprecate the spider arg of pipeline process_item().
* Fix a typing issue.
* Deprecate the spider arg of pipeline {open,close}_spider().
* Cleanup.
* Update docs.
* Add pragma: no cover to some deprecated code.
* More tests.
* More tests.
* More tests.
* Simplify _process_parallel().
2025-08-21 13:23:10 +05:00
Andrey Rakhmatullin
95172659af
Add sphinx-lint. ( #6920 )
2025-06-28 01:37:20 +02:00
Adrián Chaves
bee74fb753
Remove trailing whitespace
2025-03-11 11:56:44 +01:00
Andrey Rakhmatullin
76eba9977b
Skip or fix failing code block tests ( #5826 )
2023-02-14 09:40:38 +01:00
pankaj1707k
c1bbb299d7
Add and run pre-commit hook 'blacken-docs'
...
Change python code snippets to begin with '.. code-block:: python' to be recognized by the hook for formatting. All snippets under '::' (rst literal blocks) are ignored.
2023-02-01 16:30:57 +05:30
Rotzbua
09c3a4ad08
Fix doc: `scrapy.exporter` to `scrapy.exporters`
2022-07-12 12:45:15 +02:00
Adrián Chaves
3e994bda45
Update for Python 3.7+
2022-06-16 20:53:14 +02:00
Adrián Chaves
e8503217fb
Merge remote-tracking branch 'upstream/master' into allow-customizing-export-column-names
2022-06-16 20:19:52 +02:00
MarvinPetzoldt
b1cb007b3b
Fixed documentation example
2021-10-06 19:08:19 +02:00
Marlena Chatzigrigoriou
d7deba7e89
Document all import paths and use the shortest in examples ( #5099 )
2021-07-14 10:34:28 +02:00
Adrián Chaves
f689615e8d
Close files in the PerYearXmlExportPipeline documentation example
2021-02-24 12:54:56 +01:00
etimoz
95d39d5cb4
removed wrong super argument in overriding serialize_fields code example
2020-11-29 13:24:04 +01:00
Adrián Chaves
07379cf9b7
Merge branch 'master' into allow-customizing-export-column-names
2020-11-20 20:06:18 +01:00
Ammar Najjar
defeaacbc2
Merge branch 'master' into 4307-use-f-strings
...
Conflicts resolved:
- delete tests/py36/_test_crawl.py
2020-08-29 07:12:44 +02:00
maranqz
29725e4b58
Fix tabulation of rst and change documentation link.
2020-08-26 14:38:37 +03:00
maranqz
560c335c07
Add errors parameter in documentation.
2020-08-26 14:00:51 +03:00
Ammar Najjar
58ca8bbf6d
Use f-strings ( #4307 )
2020-08-26 07:11:05 +02:00
Adrián Chaves
5138f9a965
Merge remote-tracking branch 'upstream/master' into allow-customizing-export-column-names
2020-08-11 13:42:05 +02:00
Adrián Chaves
b2f4df5cb7
Merge remote-tracking branch 'upstream/master' into documentation-build
2020-08-11 13:16:14 +02:00
Adrián Chaves
4ee538e44b
Update unicode references from Python 2 times in the documentation ( #4703 )
2020-08-04 20:34:11 +02:00
Adrián Chaves
f9c63384c0
Merge branch 'master' into allow-customizing-export-column-names
2020-06-18 14:09:20 +02:00
Eugenio Lacuesta
ec98dabfab
Support for dataclass and attrs items ( #3881 )
2020-06-14 11:45:27 +02:00
Rohit Sharma
0cc0e51ca3
remove uneeded escape sequence
...
removed uneeded wscape sequences from method arguments in the docs
folder
2020-05-24 13:38:44 -07:00
Adrián Chaves
a859ea0c8b
Merge remote-tracking branch 'upstream/master' into allow-customizing-export-column-names
2020-05-06 19:48:32 +02:00
Adrián Chaves
1006db1e10
Merge branch 'master' into documentation-build
2020-04-28 21:07:14 +02:00
Aditya
80c69d68ad
[docs] refactor python docs links using intersphinx
2020-03-24 18:35:42 +05:30
Aditya
f37b1bdc56
[docs] update redirect links to python3
2020-03-20 05:31:41 +05:30
Aditya
ca08e04198
[docs] update redirect links python2 -> python3
2020-03-20 02:31:35 +05:30
elacuesta
dfbe1d9507
Remove object base class ( #4430 )
2020-03-16 20:12:46 +01:00
Adrián Chaves
6aa0ba4553
Write release notes for Scrapy 2.0.0 ( #4329 )
2020-03-03 09:11:11 +01:00
Adrián Chaves
ab13221b0b
Merge remote-tracking branch 'upstream/master' into allow-customizing-export-column-names
2019-12-17 14:06:14 +01:00
Ammar Najjar
d21e1034f0
docs: correct point,comma and plural replacements
...
Issue #4086
2019-10-22 13:29:38 +02:00
Ammar Najjar
da8cd9448d
docs: always surround __init__ with `` in docs
...
Issue #4086
2019-10-21 19:56:58 +02:00
Adrián Chaves
ad6075440c
Fix references to Python types in parameter type fields
2019-10-21 19:00:03 +02:00
Ammar Najjar
68a7d05ed8
docs: use __init__ method instead of constructor
...
Issue #4086
2019-10-21 15:42:24 +02:00
Adrián Chaves
9b65f9aa5b
Fix the item exporter example ( #4022 )
2019-09-19 09:17:23 +02:00
Adrián Chaves
0fa384e80d
Provide complete API documentation coverage of scrapy.exporters
2019-08-22 20:10:42 +02:00
Adrián Chaves
484bd0d22a
Allow customizing export column names
2019-03-29 15:16:54 +01:00
Adrián Chaves
75d6f56c8a
Switch from ` to `` where inline code formatting is desired
2019-03-01 16:56:58 +01:00
colinmorris
23e571e860
fix issues identified in review
2017-10-31 18:08:47 -04:00
colinmorris
8a7552370d
revise/modernize item exporter example in docs
2017-10-31 17:14:53 -04:00
Eugenio Lacuesta
25535dba9c
Feed exports: edit note, fix typos
2017-05-10 16:45:15 -03:00
Eugenio Lacuesta
c7bb2fa8ce
Feed exports: consistent and backwards compatible behaviour on indent
2017-03-07 11:56:00 -03:00
Eugenio Lacuesta
766b2c8453
Feed exports: enforce difference between None and 0 on indent
...
Also rename params and settings from "indent_width" to just "indent"
2017-03-07 11:56:00 -03:00
Eugenio Lacuesta
7e9153b38d
Feed exports: beautify JSON and XML
2017-03-07 11:56:00 -03:00
Eugenio Lacuesta
922d3fec54
Doc: binary mode is required for exporters
2017-02-14 12:51:03 -03:00
Julia Medina
7804b3d778
Move scrapy/contrib/exporter to scrapy/exporters
2015-04-29 21:24:30 -03:00