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
Josh Soref
b62aacfee3
spelling: initializing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-12-18 21:33:21 -05:00
zaid-ismail031
c49b5aaf77
Changed incorrect information regarding the return type of parse/request callback method.
2022-08-26 21:17:31 +02:00
Adrián Chaves
aa0306a167
Cover 2.6.0 in the release notes ( #5399 )
2022-03-01 12:16:37 +01:00
Kian-Meng, Ang
3a263280ba
Fix typos
2021-10-11 22:32:42 +08:00
kamran890
e5998fb846
Document spider.state attribute ( #5174 )
2021-09-22 03:15:12 +05: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
73ff9ffd64
spiders.rst: indent warnings into class descriptions
2021-06-26 08:58:29 +02:00
Shinichi Takayanagi
bd60c3f41f
More documentation for setting spider atributes
...
* docs: require sphinx-rtd-theme>=0.5.2 and the latest pip to prevent installing breaking docutils>=0.17
* Update feed-exports.rst
* Update feed-exports.rst
* Reflects the comments
* Remove redundant newline
* Update docs/topics/feed-exports.rst
Co-authored-by: Adrián Chaves <adrian@chaves.io>
* Apply suggestions from code review
Co-authored-by: Adrián Chaves <adrian@chaves.io>
Co-authored-by: Adrián Chaves <adrian@chaves.io>
Co-authored-by: Eugenio Lacuesta <eugenio.lacuesta@gmail.com>
2021-05-11 00:58:04 +05:00
Ammar Najjar
58ca8bbf6d
Use f-strings ( #4307 )
2020-08-26 07:11:05 +02:00
Eugenio Lacuesta
2be2bdd2df
Merge remote-tracking branch 'upstream/master' into spider.parse
2020-07-08 14:00:54 -03: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
Aditya
f37b1bdc56
[docs] update redirect links to python3
2020-03-20 05:31:41 +05:30
Eugenio Lacuesta
bde0384dfd
Merge branch 'master' into spider.parse
2020-03-14 19:53:36 -03:00
Adrián Chaves
6aa0ba4553
Write release notes for Scrapy 2.0.0 ( #4329 )
2020-03-03 09:11:11 +01:00
nyov
a34c366fa4
DOC linkcheck run; https and 301 link updates.
...
Closes #4359
2020-02-25 16:51:33 +00:00
Eugenio Lacuesta
8a1dc26d46
[doc] Note about the 'parse' method for CrawlSpider/XMLFeedSpider
2019-12-26 15:14:47 -03:00
Eugenio Lacuesta
5982e3477c
Take keyword arguments in base parsing methods
2019-12-23 14:12:21 -03:00
elacuesta
916382e109
Add errback parameter to scrapy.spiders.crawl.Rule ( #4000 )
...
* Add errback parameter to scrapy.spiders.crawl.Rule
* CrawlSpider: optimize by reducing iterations
* [test] Rule.errback
* [doc] Rule.errback
* [doc] Use autoclass in docs/topics/spiders.rst
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* Rule.process_links takes a list
* Fix aesthetic issue reported by Flake8
2019-12-18 20:05:33 +05:00
Andrey Rahmatullin
229e722a03
Initial Python 2 removal ( #4091 )
2019-10-31 10:46:02 +01:00
Kristobal Junta
c232bbdc42
fix typo in docs/topics/spiders
2019-10-01 17:41:38 +03:00
Eugenio Lacuesta
21ad8e20b9
Crawling rules: make link extractors optional
2019-09-13 17:32:42 -03:00
Eugenio Lacuesta
9fb0f8454e
Extend docs about Crawling Rules
2019-07-09 15:30:22 -03:00
Eugenio Lacuesta
d04e84c11d
Merge remote-tracking branch 'upstream/master' into docs_crawlspider_link_text
2019-07-09 15:24:31 -03:00
mar-heaven
18f01ea6ec
remove a "is"
...
When I translated in Chinese, I found a needless "is"
2019-05-27 17:15:30 +08:00
Eugenio Lacuesta
7a38623cec
[Docs] Clarify comment about meta dictionary
2019-04-01 17:09:49 -03:00
Eugenio Lacuesta
8ebbc731b2
[Docs] Rephrase Rule docs
2019-04-01 16:15:03 -03:00
Eugenio Lacuesta
07ff9248a5
[Docs] CrawlSpider: add note about link text
2019-04-01 12:31:26 -03:00
Mikhail Korobov
ec719f55e7
Merge pull request #3682 from elacuesta/rule_process_request_response_parameter
...
[MRG+1] Rule.process_request: access Response object
2019-03-28 01:39:54 +05:00
Eugenio Lacuesta
174ba3cc56
Rule.process_request: update docs
2019-03-22 19:16:18 -03:00
Mikhail Korobov
5dc94db847
Merge branch 'master' into backward
2019-03-14 22:21:09 +05:00
Eugenio Lacuesta
b30ca379b6
Rule.process_request: docs
2019-03-13 11:02:51 +00:00
Adrián Chaves
75d6f56c8a
Switch from ` to `` where inline code formatting is desired
2019-03-01 16:56:58 +01:00
Adrián Chaves
858f5be747
backwards → backward (adj.)
2019-03-01 16:10:23 +01:00
Victor Torres
5a824c906c
using shorter import version and moving datetime import to the beginning of the code snippet
2018-12-27 18:34:41 -03:00
Victor Torres
bfbcf52e9d
fix SitemapSpider import
2018-12-27 18:12:31 -03:00
Victor Torres
b68308779a
improving docs
2018-12-27 17:37:59 -03:00
Victor Torres
e1597f7c42
improve readability
2018-12-27 11:40:14 -03:00
Victor Torres
10f46bca54
documenting sitemap entries as suggested by @kmike
2018-12-27 11:40:14 -03:00
Victor Torres
657f0663b3
rename param from urls to entries
2018-12-27 11:40:14 -03:00
Victor Torres
672385a371
using a method definition instead of a None attribute
2018-12-27 11:40:14 -03:00
Victor Torres
a5e1b7bb47
add sitemap_filter attribute to SitemapSpider class
...
it makes it possible to filter sitemap urls by any available attribute
for example, you can filter urls with lastmod greater than a given datetime
it can be helpful when the url loc itself does not aggregate that information
2018-12-27 11:40:14 -03:00
Mikhail Korobov
bdcc045f62
DOC switch from .extract to get/getall API in docs
...
Also, response.urljoin is added in a few places, for robustness.
2018-09-12 17:57:27 +05:00
Mikhail Korobov
ca27010d4f
DOC .extract_first() -> .get()
2018-09-12 17:57:27 +05:00
Kevin Tewouda
ffa7bede17
Update spiders.rst
...
I changed URLs to :class:`~scrapy.http.Request` in start_urls explanation of the default spider
2018-05-30 06:33:18 +02:00
Aditya
9dd680d5c9
Use https for external links wherever possible in docs
2017-10-26 23:33:45 +05:30
Danny Guo
dedc4a8b8f
Tweak the CSVFeedSpider documentation
2017-07-13 22:58:10 -05:00
Paul Tremberth
fad6b70d92
Use https:// for readthedocs links
2017-06-01 16:41:52 +02:00
Qiwei Huang
8ecc307e8f
Update spiders.rst
...
Added note to allowed_domain attribute with an example explaining what goes in the list
2017-03-20 19:37:07 -07:00