Adrián Chaves
036f3e5627
Support asynchronous start requests ( #6729 )
2025-05-07 19:04:03 +02:00
Andrey Rakhmatullin
cec0aeca58
Bump ruff, switch from black to ruff-format ( #6631 )
2025-01-27 11:07:09 +01:00
Andrey Rakhmatullin
93644f2c30
Add flake8-pie rules to ruff.
2024-12-12 20:33:35 +05:00
Andrey Rakhmatullin
897e124a27
Add flake8-return rules to ruff.
2024-12-12 20:32:25 +05:00
Andrey Rakhmatullin
b042ad255d
Address some previously ignored pylint messages. ( #6531 )
2024-11-11 11:49:52 +01:00
Andrey Rakhmatullin
c9095ef927
Remove --keep-runtime-typing from pyupgrade.
2024-10-17 21:26:02 +05:00
Georgiy Zatserklianyi
6ce0342beb
Allow yielding items from start_requests ( #6417 )
...
Co-authored-by: Georgiy Zatserklianyi <george.zatseklyany@gmail.com>
Co-authored-by: Adrián Chaves <adrian@chaves.io>
Co-authored-by: Andrey Rakhmatullin <wrar@wrar.name>
2024-08-26 20:53:06 +02:00
guillermo-bondonno
5f0fad16f5
improve test_closespider_pagecount_no_item and corresponding test spider
2024-07-11 13:26:22 -03:00
guillermo-bondonno
a40d5281cf
improve test_closespider_pagecount_no_item and MaxItemsSpider
2024-07-11 11:14:30 -03:00
guillermo-bondonno
d6352f9f66
refactor changes on closespider.py and improve test
2024-07-10 11:03:01 -03:00
Bagaudin Magomedov
b88f22c6c5
Add SpiderLoggerAdapter, change Spider.logger to return SpiderLoggerAdapter ( #6324 )
2024-05-13 14:33:24 +02:00
Andrey Rakhmatullin
282767f23b
Bump black.
2024-02-28 14:30:38 +05:00
Rotzbua
0d445a3224
refactor(yield): use `yield from` syntax
2024-01-05 12:30:10 +01:00
Kevin Lloyd Bernal
368ab29ffc
improve tests by having SlowSpider
2023-07-18 22:29:15 +08:00
Adrián Chaves
b07d3f85a3
Upgrade CI tools
2023-02-02 06:37:40 +01:00
Emmanuel Rondan
e211ec0aa2
adding black formatter to all the code
2022-11-29 11:30:46 -03:00
Eugenio Lacuesta
b18560315b
Add tests
2022-10-30 18:28:16 -03:00
Eugenio Lacuesta
da8f915091
Adapt for asyng generator callbacks
2022-10-02 17:37:10 -03:00
Eugenio Lacuesta
80194f1c03
CrawlSpider: add support for async def callbacks
2022-10-02 15:22:06 -03:00
Andrey Rakhmatullin
66d8a71920
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-10-11 20:24:22 +05:00
Georgiy Zatserklianyi
d3f1bf79e8
Use f-strings where appropriate ( #5246 )
2021-10-07 16:27:20 +02:00
Andrey Rakhmatullin
ffc6f525ce
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-04-14 17:34:58 +05:00
Eugenio Lacuesta
9e7cbc05ae
Fix type for urlencode's doseq argument
2021-04-01 15:22:51 -03:00
Andrey Rakhmatullin
7b515a0485
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-03-25 22:13:49 +05:00
Eugenio Lacuesta
0c16088230
headers_received signal ( #4897 )
2021-03-11 11:52:35 -03:00
Andrey Rakhmatullin
2152a2a508
Add main infrastructure for async callbacks.
2021-02-05 16:21:56 +05:00
Ammar Najjar
ffdf6fe100
use f-strings for the newly merged code from master
...
Issue: #4324
2020-08-29 07:21:48 +02: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
Andrey Rakhmatullin
de640f41ec
Merge back tests/py36/_test_crawl.py.
2020-08-28 18:27:36 +05:00
Eugenio Lacuesta
a8114d3731
Typing: annotate a few Spider attributes
2020-08-26 09:00:36 -03:00
Ammar Najjar
58ca8bbf6d
Use f-strings ( #4307 )
2020-08-26 07:11:05 +02:00
Marc Hernández
336f19f5cc
Change super syntax ( #4707 )
2020-08-04 20:42:01 +02:00
Eugenio Lacuesta
2be2bdd2df
Merge remote-tracking branch 'upstream/master' into spider.parse
2020-07-08 14:00:54 -03:00
Eugenio Lacuesta
91e505edfe
Return single element from coroutine callback ( #4609 )
2020-06-02 10:32:14 +02:00
Eugenio Lacuesta
fbe915d9cb
StopDownload: check partial response contents
2020-05-20 20:20:30 -03:00
Eugenio Lacuesta
276721a5dc
Stop response download
2020-05-20 14:46:26 -03:00
Eugenio Lacuesta
fe0c582ee0
Flake8: remove E127 in tests (continuation line over-indented for visual indent)
2020-05-06 09:49:10 -03:00
Adrián Chaves
aae4935605
Merge branch 'master' into spider.parse
2020-02-07 21:17:56 +01:00
Andrey Rakhmatullin
31f6c7112f
Add a test for an async callbacks that returns requests.
2020-02-07 17:14:52 +05:00
Adrián Chaves
24bb9fd5f7
Merge branch 'master' into spider.parse
2020-02-06 21:39:09 +01:00
Andrey Rakhmatullin
cc825c21de
Test returning items from an async def callback.
2020-01-30 16:17:06 +05:00
Andrey Rakhmatullin
a91a13b443
Support for async def callbacks.
2020-01-09 15:59:19 +05:00
Eugenio Lacuesta
c54df8253a
[test] Handle keyword args in CrawlSpider.parse
2019-12-26 15:12:19 -03:00
Eugenio Lacuesta
8d4948f6ca
[test] Override CrawlSpider.parse
2019-12-26 14:38:11 -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
Eugenio Lacuesta
714e0d3ac9
Merge remote-tracking branch 'upstream/master' into remove-six-code
2019-11-20 12:41:38 -03:00
Adrián Chaves
f261cf65e9
Add missing blank lines between functions and classes
...
Also fixed 2 unrelated Flake8 issues
2019-11-18 17:16:09 +01:00
Eugenio Lacuesta
5ab0f189ce
Remove six.moves occurrences from tests
2019-11-03 00:01:09 -03:00
Vostretsov Nikita
b364d27247
[MRG+1] Automatic port selection for servicies in unit tests ( #3210 )
...
* ability to pass port as a parameter
* try to find free ports
* use environment variables to pass mock server address
* get mock server address from environment variables
* ability to select ports for proxy in runtime
* use common method for URLs from mock server
* https support
* get mock server address
* get mock address
* replace hand-written mechanism by kernel-based one
* use ephemeral ports in mockserver
* strip EOL from addresses
* use ephemeral port in proxy
* no need to restore environment as it is restored in tearDown
* decode bytes
* use mockserver address as a variable
* ability to pass address as variable
* per test-case mockserver
* use base class
* remove obsolete environment manipulation
* return usage of proxy for http cases
* common method for broking proxy auth credentials
* python version-independent url methods
2018-05-23 21:25:50 +03:00
Mikhail Korobov
692975acb4
deprecate Spider.make_requests_from_url. Fixes #1495 .
2017-02-16 03:39:34 +05:00