Kevin Lloyd Bernal
1fc91bb462
new `allow_offsite` parameter in OffsiteMiddleware ( #6151 )
...
* new 'allow_offsite' parameter in OffsiteMiddleware
* document deprecated dont_filter flag in OffsiteMiddleware
* avoid deprecating dont_filter in OffsiteMiddleware
* Copy the code to the downloader mw.
* Add tests for allow_offsite in the downloader mw.
* Mark allow_offsite with reqmeta.
---------
Co-authored-by: Andrey Rakhmatullin <wrar@wrar.name>
2025-01-08 21:28:51 +05:00
Andrey Rakhmatullin
7dfbecd392
Fix tracking of coverage in subprocesses.
2025-01-07 20:41:48 +05:00
Andrey Rakhmatullin
4d31277bc6
Explicitly mark re-exports. ( #6579 )
2025-01-02 23:48:14 +01:00
Andrey Rakhmatullin
c330a399dc
Merge pull request #6601 from wRAR/ruff-rules-5
...
Add more Ruff rules, do some pylint cleanups
2025-01-02 17:38:15 +04:00
Andrey Rakhmatullin
176ae348c5
Reformat long REFERRER_POLICY.
2025-01-02 18:14:18 +05:00
Andrey Rakhmatullin
6ae5b92671
Drop the remaining unittest.main() blocks. ( #6602 )
2025-01-02 12:45:04 +01:00
Arthur
b10d46d280
Fix the calculate_final_stats method ( #6599 )
2025-01-02 12:36:28 +01:00
Andrey Rakhmatullin
dc706d4fc3
Remove useless pylint: disable lines.
2025-01-02 12:32:25 +05:00
Andrey Rakhmatullin
b70443f2d0
Split ruff and pylint ignores into two categories, some pylint cleanup.
2025-01-02 01:03:42 +05:00
Andrey Rakhmatullin
c87354cd46
Enable SIM Ruff rules.
2025-01-02 01:03:36 +05:00
Andrey Rakhmatullin
273620488c
Enable PTH Ruff rules.
2025-01-01 22:21:51 +05:00
Andrey Rakhmatullin
f44ca39fa2
Enable FLY Ruff rules.
2025-01-01 21:50:02 +05:00
Andrey Rakhmatullin
838ff99f37
Enable RUF Ruff rules.
2025-01-01 21:41:08 +05:00
Andrey Rakhmatullin
cc484efd43
Replace isort with the ruff isort rules.
2024-12-29 14:15:16 +05:00
Laerte Pereira
a195af304d
Deprecate w3lib objects importable from scrapy.utils.url ( #6586 )
2024-12-18 11:50:44 +05:00
Adrián Chaves
21b9ba717c
Allow customizing logged software versions ( #6582 )
...
Co-authored-by: Grammy Jiang <grammy.jiang@gmail.com>
Co-authored-by: Andrey Rakhmatullin <wrar@wrar.name>
2024-12-16 14:46:23 +01:00
Andrey Rakhmatullin
7dd92e6e43
Add pylint rules to ruff, refresh the ignore list of pylint itself ( #6584 )
2024-12-16 09:44:36 +01:00
Andrey Rakhmatullin
1e4c81e9dc
Add Perflint rules to ruff.
2024-12-12 21:03:34 +05:00
Andrey Rakhmatullin
c2832ed131
Add flake8-pyi rules to ruff.
2024-12-12 20:44:28 +05:00
Andrey Rakhmatullin
93644f2c30
Add flake8-pie rules to ruff.
2024-12-12 20:33:35 +05:00
Andrey Rakhmatullin
e7595837a6
Add flake8-raise 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
cde0845ab2
Ruff: migrate pyupgrade and bandit, enable some other rules ( #6577 )
2024-12-10 19:53:27 +01:00
Andrey Rakhmatullin
f4d8d6d8ac
Tidy up noqa comments.
2024-12-10 14:58:45 +05:00
Andrey Rakhmatullin
cc146b9df7
Add ruff with basic rules. ( #6565 )
2024-12-09 10:47:47 +01:00
Andrey Rakhmatullin
4dcc04be48
Add tests for DOWNLOADER_CLIENT_TLS_METHOD, remove dead code.
2024-11-24 12:44:48 +04:00
Swayam Gupta
8c23da943c
Integrating configs into pyproject.toml ( #6547 )
2024-11-19 19:21:15 +05:00
Adrián Chaves
10089c6fe2
2.12 release notes ( #6226 )
...
* Cover 2.12 in the release notes up to 9bb973dc54
* Add one more highlight
* Better merge of the news entries.
* Cover 2.12 in the release notes up to 642af40 .
* Cover 2.12 in the release notes up to 7a0a34b .
* Cover 2.12 in the release notes up to b4bad97 .
* Add not yet merged PRs #6463 , #6507 , #6511 to the 2.12 release notes.
* Cover 2.12 in the release notes up to d85c39f , small fixes.
* Cover 2.12 in the release notes up to d215669 .
* Cover #6527 in the release notes.
* Address PR feedback.
* Cover recent PRs.
* Finalize the 2.12.0 release notes, small additional fixes.
---------
Co-authored-by: Andrey Rakhmatullin <wrar@wrar.name>
2024-11-18 13:07:32 +05:00
Andrey Rakhmatullin
feea3a0f67
Commit mitmproxy-dhparam.pem.
2024-11-15 21:08:18 +05:00
Nicholas Laustrup
bfcee452b0
Added failing test cases to tests/test_contracts.py and fixed corresponding methods + removed pylint comments
2024-11-14 10:40:12 -08:00
Andrey Rakhmatullin
ab5cb7c7d9
Merge pull request #6540 from wRAR/build_from_settings
...
Remove build_from_settings() and deprecate from_settings() code
2024-11-14 20:40:54 +05:00
Andrey Rakhmatullin
6aa4d2b4ab
Prefer crawler.settings over settings in media pipelines.
2024-11-14 02:03:43 +05:00
Andrey Rakhmatullin
28fafbb8c5
Modernize the media pipeline initialization API.
2024-11-14 01:29:51 +05:00
Andrey Rakhmatullin
8700a5b7a9
Deprecate build_from_crawler() calling from_settings().
2024-11-13 00:20:10 +05:00
Andrey Rakhmatullin
499e7e8aa6
Add from_crawler() to components that only had from_settings().
2024-11-12 21:12:32 +05:00
Andrey Rakhmatullin
f796d8780c
Add tests for MediaPipeline.from_crawler() and related code.
2024-11-12 21:08:04 +05:00
Andrey Rakhmatullin
eda3a89b3f
Remove build_from_settings().
2024-11-11 16:44:47 +05:00
Andrey Rakhmatullin
b042ad255d
Address some previously ignored pylint messages. ( #6531 )
2024-11-11 11:49:52 +01:00
Mikhail Korobov
bcef96570b
Merge pull request #6527 from Gallaecio/dont-throttle-meta
...
Replace Slot.throttle with Request.meta['dont_throttle']
2024-11-08 14:25:37 +05:00
Adrián Chaves
2a4b7fe0f8
dont_throttle → autothrottle_dont_adjust_delay
2024-11-07 16:17:16 +01:00
Adrián Chaves
f57fc454be
Replace Slot.throttle with Request.meta['dont_throttle']
2024-11-05 19:44:30 +01:00
Rohit Kumar Singh
d2156696c4
Deprecate unused scrapy utils ( #6519 )
...
* Added deprecation warnings for unused Scrapy.utils
* Grammatical corrections
* Exceptions class connected
* Deprecation of ScrapyJSONDecoder
* request_authenticate function deprecation
* Making all warning similar
* Added ignore statements for deprecation warning in tests
* Missing stacklevel attr. added
* Added Deprecation message
2024-11-04 21:09:45 +05:00
Andrey Rakhmatullin
ce5a132f12
Run and fix linkcheck. ( #6524 )
2024-11-04 11:40:07 +01:00
Andrey Rakhmatullin
d85c39f5bc
Deprecation removals. ( #6500 )
...
* Deprecation removals.
* Clean up the default pytest filterwarnings.
* Remove test_get_images_old().
* Redo boto-requiring test filtering.
* Remove an unused function.
* Improve the Crawler.crawl() error message.
* Fix the test.
2024-10-31 18:06:22 +05:00
Laerte Pereira
d2bdbad8c8
Deprecate `scrapy.twisted_version` ( #6512 )
...
* Deprecate scrapy.twisted_version
* fix: typing
* remove typing
* raise default exception if attribute is not found
* remove redudant ()
* add tests
* rollback exception raised
* add filterwarnings again
* change order
* lint
2024-10-30 00:28:35 +05:00
Andrey Rakhmatullin
fcb5ab6cff
Remove code for unsupported Twisted. ( #6510 )
2024-10-29 10:21:07 +01:00
Andrey Rakhmatullin
fffacb9dac
Merge remote-tracking branch 'origin/master' into py313
2024-10-22 19:07:10 +05:00
Andrey Rakhmatullin
04d0411bf7
Filter test-time warnings. ( #6501 )
2024-10-21 12:30:49 +02:00
Andrey Rakhmatullin
5759b3f0f2
Drop Reppy.
2024-10-17 23:41:23 +05:00
Andrey Rakhmatullin
7e07d48cc5
Small 3.7 and 3.8 cleanup.
2024-10-17 23:22:37 +05:00
Andrey Rakhmatullin
c9095ef927
Remove --keep-runtime-typing from pyupgrade.
2024-10-17 21:26:02 +05:00
Andrey Rakhmatullin
845b1ffd44
Merge remote-tracking branch 'origin/master' into py313
2024-10-16 14:50:12 +05:00
Vsevolod Breus
5391663072
Drop Python 3.8 Support ( #6472 )
2024-10-16 10:03:16 +02:00
mmoriniere
46cddc6ecf
Ignore SyntaxError as well when SPIDER_LOADER_WARN_ONLY is set to True ( #6484 )
2024-10-02 10:04:03 +02:00
Andrey Rakhmatullin
e139d22db9
Fix expectations for get_func_args() on 3.13.
2024-09-20 19:28:28 +05:00
LucasSD
f260f819e0
Remove debug log message from _schedule_request method
2024-09-09 20:26:02 +01:00
Laerte Pereira
b85e5a66ed
Add support for meta in Spider Contracts
2024-08-26 23:21:09 -03: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
9cdbcb4f63
add test_closespider_pagecount_no_item_with_pagecount
2024-07-11 14:02:24 -03: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
guillermo-bondonno
a44818afea
restore mitmproxy-dhparam
2024-07-09 16:07:55 -03:00
guillermo-bondonno
0b8604bb5d
add CLOSESPIDER_PAGECOUNT_NO_ITEM to CloseSpider extension
2024-07-09 15:52:49 -03:00
Andrey Rakhmatullin
ceedb026f8
Remove top-level imports that install the reactor from scrapy.extensions.telnet. ( #6432 )
2024-07-09 08:34:58 +02:00
Andrey Rakhmatullin
d08f559600
Add flake8-type-checking. ( #6413 )
2024-06-25 10:20:59 +02:00
Andrey Rakhmatullin
3d8dbd5648
flake8-bugbear
2024-06-20 00:27:38 +05:00
Andrey Rakhmatullin
1ef9c337ca
flake8-docstrings
2024-06-19 23:57:40 +05:00
Andrey Rakhmatullin
1c70d3e605
flake8-comprehensions
2024-06-19 23:36:36 +05:00
Andrey Rakhmatullin
1282ddf8f7
Add parameters to most Deferred in scrapy/core. ( #6395 )
2024-06-10 10:27:50 +02:00
Andrey Rakhmatullin
ddc98fe91b
Deprecate scrapy.utils.defer.process_chain_both(). ( #6397 )
2024-06-10 10:16:26 +02:00
Andrey Rakhmatullin
5850b8f3e6
Merge branch 'master' into pyupgrade
2024-06-07 11:20:31 +05:00
Andrey Rakhmatullin
feb0b8f7dc
Add pyupgrade.
2024-06-05 22:57:18 +05:00
Andrey Rakhmatullin
2e214210f6
Add parameters to iterable generics, replace generators with iterables.
2024-06-05 21:44:04 +05:00
Suvan Banerjee
3f76853bd2
Handle AttributeError: 'NoneType' in contract parsing ( #6388 )
2024-06-05 06:34:46 +02:00
Andrey Rakhmatullin
492c3bce9d
Don't run callbacks of requests from get_media_requests(). ( #6386 )
2024-06-03 13:28:20 +02:00
Fabian Schneebauer
0d58af8697
Add support for multiple referer policy tokens.
2024-05-29 10:59:32 +02:00
Sanchay Kumar
cadb0dd707
Fix overridable methods in MediaPipeline ( #6368 )
2024-05-28 10:42:58 +02:00
Laerte Pereira
2facdd4fb0
Add change reactor test to CrawlerRunner
2024-05-26 19:55:54 -03:00
Andrey Rakhmatullin
631fc65fad
Update expectations of cookies after redirects. ( #6367 )
2024-05-16 16:42:09 +02:00
Adrián Chaves
812fd2368f
Allow user-defined secure cookies ( #6357 )
2024-05-15 11:48:43 +02:00
Adrián Chaves
d2f1e00a6a
Merge 2.11.2 changes ( #6363 )
2024-05-14 18:54:11 +02:00
Bagaudin Magomedov
b88f22c6c5
Add SpiderLoggerAdapter, change Spider.logger to return SpiderLoggerAdapter ( #6324 )
2024-05-13 14:33:24 +02:00
Sanchay Kumar
c9ef520936
Add Downloader.get_slot_key() without a spider parameter ( #6352 )
2024-05-10 14:26:45 +02:00
aisha-partha
180bc9bad7
Closes #6342 . Setting METAREFRESH_IGNORE_TAGS to [‘noscript’] by default
2024-05-08 22:06:46 +05:30
Andrey Rakhmatullin
a5da77d01d
Merge pull request #6221 from jxlil/fix/LxmlLinkExtractor
...
fix: LxmlLinkExtractor unique_list missing key
2024-04-19 19:57:11 +05:00
kokobhara
b1fe97dc6c
Fix test expectations ( #6316 )
2024-04-17 13:14:57 +02:00
Víctor Ruiz
48c5a8c98f
Fix WrappedRequest.get_header raising TypeError if default is None ( #6310 )
2024-04-08 11:47:53 +02:00
Andrey Rakhmatullin
5d31e89262
Merge pull request #6298 from lorenzoverardo/bug-6292/robots.txt-non-UTF-8
...
Handle robots.txt files not UTF-8 encoded
2024-04-05 13:49:10 +05:00
Lorenzo Verardo
7b37dcd80d
Handle robots.txt files not UTF-8 encoded
2024-04-04 12:22:50 +02:00
igeni
f7bf3f726e
modified string's concat to f-strings ( #6296 )
2024-04-01 15:37:23 +02:00
Andrey Rakhmatullin
8d917c0b55
Run black.
2024-03-14 17:44:57 +05:00
Andrey Rakhmatullin
5bf0e1d1db
Merge branch 'master' into master
2024-03-14 17:38:30 +05:00
Andrey Rakhmatullin
7255dfd41f
Merge pull request #6231 from elramen/check_command_tests
...
Added tests for check command
2024-03-14 15:28:19 +05:00
Lucas Belo
4460d3ed96
Remove tests/requirements.txt and refactor extra deps ( #6272 )
...
Co-authored-by: lucasbelo777 <lucas.belo@cialdnb.com>
2024-03-13 07:22:48 +01:00
Andrey Rakhmatullin
95a70d3fa0
Merge pull request #6290 from Gallaecio/fix-skips
...
Fix WindowsRunSpiderCommandTest skip outside Windows for older Twisted
2024-03-12 14:17:10 +05:00
Adrián Chaves
d7581c6b41
Allow disabling the AutoThrottle extension for a given slot ( #6246 )
2024-03-12 09:44:29 +01:00
Adrián Chaves
e72de11f55
Add super
2024-03-12 09:29:10 +01:00
Adrián Chaves
188d9a8bb3
Remove unnecessary comment
2024-03-11 23:28:57 +01:00
Adrián Chaves
ab5ea32ffd
Fix WindowsRunSpiderCommandTest skip outside Windows for older Twisted.
2024-03-11 23:26:19 +01:00
pengqiseven
6e84648c07
Fix some comments ( #6285 )
...
Signed-off-by: pengqiseven <i@sohu.com>
Co-authored-by: pengqiseven <i@sohu.com>
2024-03-11 10:03:06 +01:00
Laerte Pereira
532cd2eabd
Use brotlicffi for PyPy
2024-03-05 21:30:20 -03:00
Laerte Pereira
cab1016bb6
Add brotlicffi support
2024-03-05 20:24:17 -03:00
Andrey Rakhmatullin
1311e7db05
Regenerate the expired mitmproxy-ca.pem.
2024-02-29 16:31:06 +05:00
Laerte Pereira
2169810414
fix: Proxy tests don't use custom certificate authority
2024-02-29 06:41:14 -03:00
Laerte Pereira
26a16f2c43
Fix tests
2024-02-28 16:36:19 -03:00
Andrey Rakhmatullin
4f9dd998dc
Bump pylint, cleanup the ignored tags.
2024-02-28 14:31:21 +05:00
Andrey Rakhmatullin
282767f23b
Bump black.
2024-02-28 14:30:38 +05:00
Adrián Chaves
2d46b4acf5
Complete coverage for the AutoThrottle extension ( #6245 )
2024-02-27 09:28:02 +01:00
Jon
b0ef9a89a1
Remove usage of deprecated mktemp ( #5285 )
2024-02-26 19:53:06 +01:00
vishesh10
e208f82076
Add support for multiple-compressed responses ( #6063 )
2024-02-22 12:16:24 +01:00
Andrey Rakhmatullin
ebd7e199f0
Merge pull request #6235 from elramen/http_request_tests
...
Added tests for form.py
2024-02-22 12:17:11 +05:00
Andrey Rakhmatullin
edd7ba1c06
Merge pull request #6236 from elramen/json_request_tests_main
...
Improve json_request.py coverage
2024-02-22 12:16:47 +05:00
Can Kupeli
c513e7d6e5
implemented tests for branch coverage for function printSummary
2024-02-21 23:52:35 +01:00
noon
877398a3de
refactor #3 Remove inner class in form test
2024-02-21 21:13:57 +01:00
noon
b7a7ae7dbb
refactor #22 Change comment and warning catching
2024-02-21 21:04:45 +01:00
Andrey Rakhmatullin
f798118ac2
Merge pull request #6232 from elramen/linkextractor_tests
...
Added tests for LxmlLinkExtractor
2024-02-21 23:03:20 +05:00
Elias Ram
f19045403a
test #8 made tests cleaner
2024-02-21 16:03:51 +01:00
Adrián Chaves
6fc7827042
Do not close the underlying file from compression plugins ( #6239 )
2024-02-21 14:27:42 +01:00
noon
bc036542a8
refactor #3 Moved tests to FormRequestTest
2024-02-21 02:35:45 +01:00
noon
12b4417c56
test #22 Improve json_request.py coverage
2024-02-21 02:30:50 +01:00
noon
e2a0c85f11
doc #3 Clarified test comments
2024-02-21 02:21:24 +01:00
noon
e27d320c3c
test #3 Increased branch coverage for form.py
2024-02-20 23:58:39 +01:00
Elias Ram
e8e6d28479
test #8 added tests for LxmlLinkExtractor
2024-02-20 20:41:18 +01:00
Elias Ram
f096f17fa4
test #6 added tests for check command
2024-02-20 20:32:02 +01:00
Laerte Pereira
ee1189512f
Replace urlparse with urlparse_cached where possible ( #6229 )
2024-02-20 12:47:29 +01:00
Adrián Chaves
5e51417a48
Add tests, fix canonicalize passing
2024-02-16 20:10:52 +01:00
Kevin Lloyd Bernal
9bb973dc54
Refactor LogStats extension to log IPM and RPM to stats on spider_close ( #4111 )
2024-02-16 12:25:38 +01:00
Adrián Chaves
6bd45bb6d9
Merge remote-tracking branch 'scrapy/2.11' into 2.11-port
2024-02-15 06:39:50 +01:00
Adrián Chaves
2f1d345e74
Solve test issues
2024-02-14 18:59:01 +01:00
Adrián Chaves
479619b340
Merge branch '2.11-redos' into 2.11
2024-02-14 17:18:26 +01:00
Adrián Chaves
809bfac489
Merge branch '2.11-compression-bomb' into 2.11
2024-02-14 17:16:25 +01:00
Adrián Chaves
5bcb8fd501
Merge branch '2.11-authorization' into 2.11
2024-02-14 17:14:29 +01:00
Adrián Chaves
c5dad41190
Speed up tests, remove comments without regexps
2024-02-02 14:03:16 +01:00
Laerte Pereira
7001193c80
Simplify the logic
2024-01-31 12:53:08 -03:00
Laerte Pereira
24634f1bb2
Attend PR comments
2024-01-31 12:29:43 -03:00
Laerte Pereira
019443dd57
Remove settings from default implementation test
2024-01-31 10:08:07 -03:00
Laerte Pereira
2487e3cc03
Cleanup deprecated fingerprint code in scrapy.utils.request
2024-01-31 10:05:50 -03:00
Andrey Rakhmatullin
09a7efef7c
Remove a defer.returnValue call.
2024-01-15 18:19:29 +04:00
Adrián Chaves
e8dadb9592
scrapy parse: fix the signature of callbacks from the CLI ( #6182 )
2024-01-15 13:37:03 +01:00
Adrián Chaves
fa0c598096
Add component getters to Crawler ( #6181 )
2024-01-15 13:14:02 +01:00
Mikhail Korobov
8ad17f7476
Merge pull request #6199 from Rotzbua/fix_flake8
...
fix(flake8): lint errors
2024-01-12 22:52:22 +05:00
Andrey Rakhmatullin
c2baf4d0da
Remove a defer.returnValue call.
2024-01-12 18:30:41 +04:00
Andrey Rakhmatullin
becff65ccb
Merge pull request #6201 from wRAR/more-mitmproxy
...
Fix and re-enable newer mitmproxy usage in tests.
2024-01-12 14:26:39 +04:00
Mikhail Korobov
32fda2dc53
Merge pull request #6196 from Rotzbua/fix_typo
...
fix(typo): correct `successfully`
2024-01-12 00:36:16 +05:00
Andrey Rakhmatullin
68fccb1d58
Fix and re-enable newer mitmproxy usage in tests.
2024-01-06 01:35:56 +04:00
Rotzbua
745b8412f6
fix(flake8): lint errors
...
E226 missing whitespace around arithmetic operator
E201 whitespace after '{'
2024-01-05 14:54:00 +01:00
Rotzbua
0d445a3224
refactor(yield): use `yield from` syntax
2024-01-05 12:30:10 +01:00
Rotzbua
c7b2b097b1
fix(typo): correct `successfully`
2024-01-05 10:50:45 +01:00
Adrián Chaves
0e78acb657
MediaPipeline: log media_to_download errors before stripping them ( #5068 )
2023-12-21 21:01:07 +01:00
Jalil SA
d25cfe5315
Add JsonResponse ( #6174 )
2023-12-21 10:36:21 +01:00
Swati Anshu
c67f730695
create_instance → build_from_crawler, build_from_settings ( #6169 )
2023-12-18 11:51:02 +01:00
Adrián Chaves
27781a85e7
Fix bad closing tags in XMLFeedSpider tests
2023-12-15 13:52:12 +01:00
Adrián Chaves
cd6846b763
Merge remote-tracking branch 'scrapy/2.11' into 2.11-redos
2023-12-15 11:52:35 +01:00
Adrián Chaves
150d96764b
Deprecate xmliter in favor of xmliter_lxml
2023-12-15 11:42:55 +01:00
Adrián Chaves
9655b0b8eb
Mark slow tests, with their own tox env and CI job
2023-12-15 10:19:47 +01:00
Adrián Chaves
4f72b49f97
Fix namespaces nodename support for xmliter_lxml
2023-12-15 10:06:13 +01:00
Laerte Pereira
b9c4ee26d7
Remove deprecated scrapy.downloadermiddlewares.decompression
2023-12-13 13:28:30 +01:00
Adrián Chaves
1533b69032
Test and address ReDoS attack vectors for open_in_browser
2023-12-13 12:01:35 +01:00
Laerte Pereira
09ce0ef526
Remove test_download_gzip_response test
2023-11-23 10:50:46 -03:00
Adrián Chaves
03d9866518
Also use DOWNLOAD_WARNSIZE for decompressions
2023-11-23 10:26:47 +01:00
Adrián Chaves
e0b66c021a
Mind Spider.download_maxsize and Request.meta['download_maxsize']
2023-11-22 19:03:24 +01:00
Adrián Chaves
3fda2fe103
Protect against gzip bomb sitemaps
2023-11-22 18:34:37 +01:00
Adrián Chaves
9cc8703877
Protect against zstandard bombs
2023-11-22 17:53:00 +01:00
Adrián Chaves
fba167c5e1
Protect against brotli bombs
2023-11-22 17:32:09 +01:00
Adrián Chaves
0c4a98f8e0
Protect against deflate bombs
2023-11-22 17:12:43 +01:00
Adrián Chaves
0bf29a7b1b
Update test expectations
2023-11-22 16:10:50 +01:00
Adrián Chaves
6969041c5f
Protect against gzip bombs
2023-11-22 15:52:00 +01:00
Adrián Chaves
1c4e93293a
Merge remote-tracking branch 'scrapy/2.11' into 2.11-authorization
2023-11-17 15:42:08 +01:00
Adrián Chaves
1045856a50
Merge pull request #6112 from wRAR/test-shutdown-forced
...
Make shutdown tests more robust.
2023-11-16 19:16:52 +04:00
Andrey Rakhmatullin
5e4fb0bc5f
Re-enable uvloop tests on 3.12 ( #6098 )
2023-11-16 19:16:31 +04:00
Andrey Rakhmatullin
538192916f
Merge pull request #6064 from wRAR/signals-proper
...
Refactor installing signals.
2023-11-16 19:15:30 +04:00
Andrey Rakhmatullin
59cfdeaa5c
Merge pull request #6083 from wRAR/py3.12-release
...
Adapt to the Python 3.12 final release
2023-11-16 19:14:47 +04:00
Adrián Chaves
080fecd890
Drop the Authorization header on cross-domain redirect
2023-11-15 15:39:30 +01:00
Andrey Rakhmatullin
b4acf5c827
Fix and remove most of the entries from the mypy ignore list ( #6137 )
2023-11-07 09:34:35 +01:00
Jeesang Kim
dda6feb935
Improve assert readability ( #6132 )
2023-11-03 09:24:25 +01:00
Andrey Rakhmatullin
01d9d28324
Full typing for scrapy/http/response/__init__.py.
2023-11-01 01:10:32 +04:00
Chenwei Niu
1f797d0fdb
Removed some deprecated functions and functionalities ( #6116 )
2023-10-30 09:59:11 +01:00
Adrián Chaves
1d81585612
Merge pull request #6112 from wRAR/test-shutdown-forced
...
Make shutdown tests more robust.
2023-10-30 09:35:29 +01:00
Andrey Rakhmatullin
6b0c18e921
Improve signal sending in test_shutdown_forced.
2023-10-19 23:13:47 +04:00
Andrey Rakhmatullin
cc9c415bf3
Disable ipython for InteractiveShellTest.
2023-10-18 19:30:57 +04:00
Laerte Pereira
38dbd43993
Remove tests not necessary anymore
2023-10-18 06:29:47 -03:00
Laerte Pereira
644ab3af48
Remove support for feed storage backends without feed_options
2023-10-17 22:39:09 -03:00
Laerte Pereira
3db438127c
Remove support for HttpCompressionMiddleware subclasses without stats
2023-10-17 21:38:38 -03:00
Laerte Pereira
a2b9351f04
Remove support for using HttpAuthMiddleware without http_auth_domain
2023-10-17 20:20:38 -03:00
Laerte Pereira
2de95f1fc0
Remove leftover from _make_compatible removal
2023-10-17 19:44:12 -03:00
Laerte Pereira
ad4e8b64d4
fix test_spider_manager_verify_interface test
2023-10-17 18:58:27 -03:00
Laerte Pereira
aa0a425826
Remove deprecated code moved to itemloaders
2023-10-17 18:20:12 -03:00
Laerte Pereira
7a5cefbcfa
Remove deprecated scrapy.downloadermiddlewares.decompression
2023-10-17 17:49:22 -03:00
Andrey Rakhmatullin
2cb1e10c76
Make shutdown tests more robust.
2023-10-17 23:56:54 +04:00
Andrey Rakhmatullin
991121fa91
Re-enable uvloop tests on 3.12 ( #6098 )
2023-10-17 19:24:44 +02:00
Andrey Rakhmatullin
5807970a22
Add typing hints to CaselessDict and Headers. ( #6097 )
2023-10-17 19:07:13 +02:00
Andrey Rakhmatullin
029a56384d
Increase the timeout.
2023-10-09 00:16:41 +04:00
Andrey Rakhmatullin
9910ccf3ae
Merge remote-tracking branch 'origin/master' into signals-proper
2023-10-08 23:02:11 +04:00
Andrey Rakhmatullin
2f436c05e0
Use SIGBREAK in Windows tests.
2023-10-08 22:55:05 +04:00
Andrey Rakhmatullin
a338873e3a
Re-enable bpython on Python 3.12.
2023-10-03 16:50:52 +04:00
Andrey Rakhmatullin
fb4debda04
Use path_to_file_uri to fix the test on Windows.
2023-10-03 16:47:03 +04:00
Andrey Rakhmatullin
1ed9ed4f92
Require pyftpdlib that supports Python 3.12.
2023-10-02 21:33:02 +04:00
Andrey Rakhmatullin
eb5e2e79ba
Use SIGINT instead of SIGTERM to support Windows.
2023-09-24 23:31:46 +04:00
Andrey Rakhmatullin
4b5fb9b5a6
Add a test for SIGTERM handling.
2023-09-24 22:52:17 +04:00
Andrey Rakhmatullin
d19e315b0b
Add an interactive test for `scrapy shell`.
2023-09-24 21:51:19 +04:00
Andrey Rakhmatullin
922ff57384
Improve the backwards compatibility for RetryMiddleware.EXCEPTIONS_TO_RETRY.
2023-09-14 15:51:00 +04:00
Andrey Rakhmatullin
6428356584
Use twisted.python.log instead of failure.printTraceback().
2023-09-13 18:20:42 +04:00
Andrey Rakhmatullin
be0e33af92
Don't rely on unhandled exception logging in the expected to fail scripts.
2023-09-13 16:59:54 +04:00
Andrey Rakhmatullin
3756216339
Rename methods.
2023-09-13 15:47:22 +04:00
Andrey Rakhmatullin
619140717f
Fix the new addon test.
2023-09-13 15:33:51 +04:00
Andrey Rakhmatullin
028a56b9a2
Improve and simplify tests.
2023-09-13 14:17:41 +04:00
Andrey Rakhmatullin
62183dc25f
Merge branch 'master' into change-init-order
2023-09-12 22:16:21 +04:00
Andrey Rakhmatullin
77f39be407
Add integration tests for modifying settings via args.
2023-09-12 20:16:26 +04:00
Andrey Rakhmatullin
e26bf4f918
Pin brotli for PyPy tests ( #6045 )
2023-09-12 16:18:25 +02:00
Andrey Rakhmatullin
bb15c93a2b
Add Crawler._load_settings().
2023-09-12 14:44:16 +04:00
Andrey Rakhmatullin
6629a61dd9
Fix one more testcase.
2023-09-08 20:15:49 +04:00
Andrey Rakhmatullin
036d5836d0
Move more things from Crawler.__init__() to .crawl().
2023-09-08 19:29:05 +04:00
Andrey Rakhmatullin
97b98bf181
Roll back the update_settings() changes.
2023-09-07 17:02:37 +04:00
Maria Mitropoulou
721df895f9
Fix charset handling in MailSender #5096 ( #5118 )
2023-09-07 07:47:42 +02:00
Andrey Rakhmatullin
b4380995da
Merge remote-tracking branch 'origin/master' into change-init-order
2023-09-06 20:34:27 +04:00
Andrey Rakhmatullin
b39d2d4353
Add a test.
2023-09-06 19:44:22 +04:00
Andrey Rakhmatullin
d3b5c9be97
Deprecate running Crawler.crawl() twice.
2023-09-06 19:29:44 +04:00
Andrey Rakhmatullin
69282c5318
Merge branch 'master' into change-init-order
2023-09-05 19:23:36 +04:00
Víctor Ruiz
c1dd5493ac
Fix enabled addons not being logged ( #6036 )
2023-09-04 08:03:35 +02:00
Mikhail Korobov
0fcb0554d1
Merge pull request #6016 from jxlil/fix/response.json
...
Fix: response.json() call makes unnecessary memory allocation
2023-08-31 14:07:24 +05:00
Georgiy Zatserklianyi
1f03cb1419
Merge remote-tracking branch 'upstream/master' into periodic_log_2
2023-08-21 17:07:18 +03:00
Laerte Pereira
df2163ce6a
Remove datetime.utcnow() usage ( #6014 )
2023-08-21 15:51:49 +02:00
Jalil SA
fd4292b722
fix: test_cache_json_response
2023-08-17 10:24:34 -06:00
Laerte Pereira
b06936f111
Handle Tuple type on getdictorlist method, bump 3.12 python version
2023-08-14 10:33:48 -03:00
Andrey Rakhmatullin
34d050cfe5
Remove deprecated CrawlerRunner.spiders. ( #6010 )
2023-08-11 10:41:05 +02:00
Laerte Pereira
4a090d951a
Remove deprecated PythonItemExporter.binary ( #6007 )
2023-08-10 07:36:42 +02:00
Andrey Rakhmatullin
644a71bfd4
Use ftp:// URLs in FTP tests.
2023-08-07 00:17:52 +04:00
Andrey Rakhmatullin
471281d29e
Fixes for scrapy/utils/iterators.py typing.
2023-08-06 23:05:02 +04:00
Andrey Rakhmatullin
518e56046e
Check for async callbacks in contracts.
2023-08-06 17:28:34 +04:00
Andrey Rakhmatullin
d1f87e4f08
More typing for scrapy/utils/iterators.py.
2023-08-06 00:35:33 +04:00
Georgiy Zatserklianyi
e9b088f1fb
periodic_log: typing
2023-08-04 12:49:22 +03:00
Laerte Pereira
09c63a178b
Remove the deprecated spider parameter from the engine ( #5998 )
2023-08-04 07:53:04 +02:00
Laerte Pereira
b9c32a0cfd
Remove functions deprecated in 2.6.0 ( #5996 )
2023-08-03 17:06:55 +02:00
Andrey Rakhmatullin
9f9a2292e0
Deprecate the custom attribute of build_component_list(). ( #5993 )
2023-08-02 14:21:06 +02:00
Andrey Rakhmatullin
06ebdee35d
Merge pull request #5950 from wRAR/addons
...
Add-ons
2023-08-01 22:18:57 +04:00
Andrey Rakhmatullin
e58b8078f0
Improve NotConfigured handling when clspath is a class.
2023-08-01 20:20:15 +04:00
Andrey Rakhmatullin
41a4a163e3
Handle NotConfigured in add-ons.
2023-07-31 21:09:18 +04:00
Andrey Rakhmatullin
d8c5b41559
Add more addon tests.
2023-07-31 19:09:21 +04:00
Andrey Rakhmatullin
bddbbc522a
Merge pull request #5979 from BurnzZ/closespider-timeout-no-item
2023-07-28 12:56:44 +04:00
freddiewanah
c4f0aa4fdf
Refactor test cases to improve unit test quality ( #5986 )
2023-07-26 13:09:03 +02:00
Andrey Rakhmatullin
6e3e3c2172
Merge pull request #5977 from scrapy/typing-settings
...
Typing for scrapy.settings.BaseSettings
2023-07-24 21:40:52 +04:00
Kevin Lloyd Bernal
9a1bf40c2f
expose AWS_REGION_NAME in S3FeedStorage
2023-07-24 16:37:52 +08:00
Laerte Pereira
7522aeed35
fix: -O/-o option does not work with absolute paths on Windows ( #5971 )
2023-07-24 09:53:41 +02:00
Mikhail Korobov
af2aa4b421
Merge pull request #5847 from namelessGonbai/feat/FixFeedExport
...
Fix FeedExporter not to export empty file
2023-07-22 23:18:36 +05:00
Adnan Awan
5d91ea12d6
Fix JsonItemExporter puts lone comma in the output if encoder fails ( #5952 )
...
* Partial fix for #3090 - only addresses JSON feeds.
* Adding test case for #3090 to Json Exporter
* Changing the deliberate-fail JSON example to a complex
* Further tightening JsonItemExporter behaviour to prevent corruption.
Based on Mikhail's observation that to_bytes can fail also, leading
to the same dangling comma as the failure to encode to JSON.
Added a new test case to avoid reversion.
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Add initial changes from cathal's PR
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Handle exception not to add empty item.
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Add comment for handling the exception
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Remove unused import
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Fix invalid json issue
- https://github.com/scrapy/scrapy/issues/3090
* [scrapy] JsonItemExporter puts lone comma in the output if encoder fails
- Perform CR changes
- https://github.com/scrapy/scrapy/issues/3090
---------
Co-authored-by: Cathal Garvey <cathalgarvey@cathalgarvey.me>
2023-07-22 23:13:40 +05:00
Andrey Rakhmatullin
e058a05763
Skip tests that don't work on Python 3.12.
2023-07-22 17:51:13 +04:00
Andrey Rakhmatullin
583df9f7d0
Simplify skipping uvloop tests.
2023-07-22 17:44:37 +04:00
Andrey Rakhmatullin
5c34f34ecb
Make AddonManager.add() private.
2023-07-18 19:50:08 +04:00
Kevin Lloyd Bernal
368ab29ffc
improve tests by having SlowSpider
2023-07-18 22:29:15 +08:00
Kevin Lloyd Bernal
3f5bbe3a8f
introduce CLOSESPIDER_TIMEOUT_NO_ITEM in CloseSpider
2023-07-18 18:30:21 +08:00
Andrey Rakhmatullin
043a24410b
Disable pylint for broken code.
2023-07-17 00:13:49 +04:00
Andrey Rakhmatullin
187e8f9a2d
Typing for scrapy/settings/__init__.py.
2023-07-17 00:01:36 +04:00
Andrey Rakhmatullin
c92c9af075
Add create_instance support to addons.
2023-06-29 15:04:46 +04:00
Georgiy Zatserklianyi
6fd94fdcb3
periodic_log: tests updated (errors fixed)
2023-06-28 19:55:33 +03:00
Andrey Rakhmatullin
9612ae3e93
Remove more code.
2023-06-28 18:44:30 +04:00
Laerte Pereira
b6196309cb
fix: Return value instead of `SettingsAttribute` object when using `pop` method ( #5963 )
2023-06-28 08:28:49 +02:00
Georgiy Zatserklianyi
56c38231b4
periodic_log: tests for logging stats added
2023-06-27 11:48:51 +03:00
Georgiy Zatserklianyi
ebce5b4bcb
periodic_log: tests for logging deltas added
2023-06-27 09:22:50 +03:00
Andrey Rakhmatullin
e7124447f7
Remove unneeded code.
2023-06-26 16:57:46 +04:00
Andrey Rakhmatullin
4e21e3e59d
Merge remote-tracking branch 'origin/master' into addons
2023-06-26 14:25:35 +04:00
Georgiy Zatserklianyi
2ce4856508
periodic_log: Exception handling on init updated
2023-06-25 12:16:59 +03:00
Andrey Rakhmatullin
712ee98848
Merge branch 'master' into typing-utils
2023-06-24 18:31:56 +04:00
Laerte Pereira
a3f8912d69
chore: Rename test
2023-06-23 00:15:32 -03:00
Laerte Pereira
876feaf339
chore: Use dunder to delete item instead of del keyword to handle immutable settings
2023-06-23 00:14:31 -03:00
Laerte Pereira
080b9bd0b8
chore: Implement `pop` method on `BaseSettings` class
2023-06-22 23:58:03 -03:00
Alex
04ee3303e4
Adding support for Windows of absolute pathlib.Path objects in FeedExporter ( #5939 )
2023-06-22 07:04:06 +02:00
Andrey Rakhmatullin
1b78e48944
Merge pull request #5146 from elacuesta/case-insensitive-dict
...
CaseInsensitiveDict (deprecate CaselessDict)
2023-06-21 23:48:40 +04:00
Andrey Rakhmatullin
39282d7bd0
Merge branch 'master' into case-insensitive-dict
2023-06-21 22:12:44 +04:00
Marc Hernández
5360ba34bc
IOError and other cleanup ( #4716 )
2023-06-21 20:08:53 +02:00
Laerte Pereira
a93a63c208
fix: move import to inside function
2023-06-20 17:05:49 -03:00
Laerte Pereira
6afb31b82b
chore: Add `packaging` to tests deps
2023-06-20 16:48:07 -03:00
Laerte Pereira
0097b4c0bb
cleanup: Remove `pkg_resources` usage
2023-06-20 16:40:38 -03:00
Serhii A
777a6ea412
Make the retry middleware exception list configurable ( #5929 )
2023-06-16 15:46:06 +02:00
Georgiy Zatserklianyi
6e65eeb07b
periodic_log: tests [wip] added
2023-06-16 14:30:50 +03:00
Andrey Rakhmatullin
79bf8b1f2e
Test cleanup.
2023-06-15 19:28:14 +04:00
Andrey Rakhmatullin
2f9ebb66c3
Remove some dead code/docs.
2023-06-15 17:00:38 +04:00
Andrey Rakhmatullin
58300e066f
Merge pull request #5949 from wRAR/tests-as-installed
...
Allow running tests against the installed version
2023-06-14 23:15:04 +04:00
Andrey Rakhmatullin
c7f78a8305
Revert "Remove load_module_or_object."
...
This reverts commit 815af43120 .
2023-06-14 20:43:18 +04:00
Andrey Rakhmatullin
7cfdca8f9b
Actually run test_set_asyncio_event_loop().
2023-06-14 18:23:29 +04:00
Andrey Rakhmatullin
815af43120
Remove load_module_or_object.
2023-06-14 18:11:14 +04:00
Andrey Rakhmatullin
7ebb8256f0
Some cleanup.
2023-06-14 17:52:11 +04:00
Andrey Rakhmatullin
fdbc141b23
Replace pkg_resources with packaging.
2023-06-14 17:23:50 +04:00
Andrey Rakhmatullin
55ac26228b
Remove builtin addons.
2023-06-14 16:50:43 +04:00
Andrey Rakhmatullin
075ad6f196
Test, linter etc. fixes.
2023-06-14 16:34:18 +04:00
Andrey Rakhmatullin
898e3045a1
Merge branch 'master' into addons
2023-06-14 15:37:08 +04:00
Andrey Rakhmatullin
85fe88f80f
Merge pull request #5833 from GodelTech/issue_960_s3_feed_export
...
Fix #960 : S3 Feed Export throws boto error
2023-06-13 18:44:06 +04:00
Andrey Rakhmatullin
8a64f3e8de
Merge branch 'master' into feat/FixFeedExport
2023-06-13 18:21:06 +04:00
Andrey Rakhmatullin
9e0bfc4a3d
Merge pull request #5705 from srki24/issue5043-feed_export
...
S3 CsvItemExporter read of closed file error #5043
2023-06-13 18:14:27 +04:00
Andrey Rakhmatullin
493ea43538
Improve finding tests.test_cmdline.settings.
2023-06-12 21:50:29 +04:00
Andrey Rakhmatullin
49839d6071
Don't rely on get_testenv() for running mockserver.
2023-06-04 19:59:58 +04:00
Andrey Rakhmatullin
54fa04aa0a
Add typing to scrapy/utils/test.py, fix a FTP test.
2023-05-07 22:39:27 +04:00
Andrey Rakhmatullin
ea15ff1d32
Merge pull request #5915 from jxlil/feature/support-parsel-jmespath
...
Added support for the Parsel JMESPath feature
2023-05-03 13:18:39 +04:00
Jalil SA
a038faf11c
fix: tests/tes_selector.py
2023-05-02 19:40:04 -06:00
Jalil SA
4bb99fd2f3
fix: pylint
2023-05-02 19:26:20 -06:00
Jalil SA
a604dfae5c
update tests
2023-05-02 19:19:00 -06:00
Laerte Pereira
7b49aa1b01
chore: add tests
2023-05-02 12:53:04 -03:00
Jalil SA
578606779d
update tests
2023-04-29 00:52:39 -06:00
Jalil SA
3d29f20fc2
added tests for jmespath
2023-04-28 23:54:09 -06:00
guillermo-bondonno
b50c032ee9
Add feed_slot_closed and feed_exporter_closed signals ( #5876 )
2023-04-26 08:20:37 +02:00
Andrey Rakhmatullin
abc9c1ac6f
Merge pull request #5901 from jxlil/fix/5899
...
Fix: Request.from_curl() with $-prefixed string literals
2023-04-19 13:35:01 +04:00
tstauder
ef61fb5698
Fix flaky tests involving feed export batches ( #5898 )
...
Co-authored-by: jmannoop <jmannoop@umich.edu>
2023-04-19 08:33:32 +02:00
Jalil SA
88c58a8c9c
feat: added test_post_data_raw_with_string_prefix
2023-04-18 22:28:16 -05:00
guillermo-bondonno
441ac196e4
Implement a request_to_curl function ( #5892 )
2023-04-13 17:46:59 +02:00
Serhii A
c2a31974ff
Improve get_func_args ( #5885 )
2023-04-13 11:44:20 +02:00
Andrey Rakhmatullin
d911837389
Merge pull request #5881 from sbartlett97/LinkExtractor-Patch
...
Patched LxmlParserLinkExtractor
2023-04-12 12:28:21 +04:00
Adrián Chaves
3f0c2fae5e
Skip test_skip_bad_links based on the w3lib version
2023-04-12 09:28:28 +02:00
Kartik Kumar
d47c732ae9
base64-decode GCS checksums ( #5891 )
2023-04-11 18:25:42 +02:00
Andrey Rakhmatullin
1e20ba0a1b
Merge branch 'master' into feat/FixFeedExport
2023-04-11 19:48:19 +04:00
Felipe Boff Nunes
a0e2e36b52
adjustments
2023-04-06 14:23:19 -03:00
Felipe Boff Nunes
0ffd1667ba
adjustments
2023-04-06 14:17:35 -03:00
Samuel Bartlett
618e82dbe1
Exclude test for python versionbs less than 3.8
2023-03-31 15:12:47 +00:00
Samuel Bartlett
608b7de582
Skip new test if python version less than 3.8
2023-03-31 14:38:06 +00:00
Samuel Bartlett
4043560547
remove utf-8 encoding flag from test
2023-03-31 12:29:22 +00:00
Samuel Bartlett
00d93026c8
Fix bad test case
2023-03-31 08:30:19 +00:00
Samuel Bartlett
7cb7cf1ad1
Add link extractor back to test
2023-03-31 08:09:02 +00:00
Samuel Bartlett
9cbcf7724d
Add test to make sure spider doesn't crash on bad
2023-03-31 08:07:43 +00:00
jazzthief
4ebc08ef10
Switch from `is_boto3_available()` to `IS_BOTO3_AVAILABLE` var
2023-03-16 17:24:11 +01:00
kenshi kikuchi
c8ed793257
Fix test_export_no_items_multiple_feeds
2023-03-16 17:16:14 +09:00
Adrián Chaves
7e7b41c6b3
Fix test expectations for boto3
2023-03-15 16:38:13 +01:00
Adrián Chaves
39dbfa1d82
Minimize test reliance on S3; do not install botocore on the default test environments
2023-03-15 15:31:39 +01:00
auxsvr
d60b4edd11
Prevent an edge case that creates an extra event loop ( #5832 )
2023-03-14 09:31:13 +01:00
Alex
101a0c32d7
Support genspider with HTTPS ( #5808 )
2023-03-14 08:13:44 +01:00
Mohammadtaher Abbasi
afafc2781a
Fix parse command issues with asyncio ( #5824 )
2023-03-10 16:20:15 +01:00
Andrey Rakhmatullin
3659a8c8d9
Merge pull request #5328 from GeorgeA92/per_slot_settings
...
Per slot settings
2023-03-09 22:31:24 +05:00
kenshi kikuchi
d311779887
Fix FeedExporter
...
+ Fix FeedExporter not to export empty file
+ Change default value of FEED_STORE_EMPTY
2023-03-08 16:24:09 +09:00
Jalil SA
8aca47e25d
Add setdefault to BaseSettings ( #5821 )
2023-03-07 10:26:59 +01:00
Alex
78269f9a4f
Merge branch 'scrapy:master' into path_object_error_#5739
2023-02-25 20:49:04 -08:00
Georgiy Zatserklianyi
864eee66c7
per_slot_settings(docs): code style fix 3 (from previous pre-commit check)
2023-02-16 18:19:36 +02:00
Georgiy Zatserklianyi
dd5524eb98
per_slot_settings(docs): code style fix 2 (from previous pre-commit check)
2023-02-16 17:59:36 +02:00
Georgiy Zatserklianyi
045092e8d7
per_slot_settings(docs): code style fix (from previous pre-commit check)
2023-02-16 17:55:59 +02:00
Andrey Rakhmatullin
824641e349
Merge remote-tracking branch 'origin/master' into mypy-imports
2023-02-11 22:02:19 +04:00
Alex
f17d2e711d
Merge branch 'scrapy:master' into path_object_error_#5739
2023-02-10 00:56:51 -08:00
Georgiy Zatserklianyi
80a86de507
per_slot_settings: test delays increased
2023-02-08 22:40:22 +02:00
Georgiy Zatserklianyi
13d1f69c78
Merge remote-tracking branch 'upstream/master' into per_slot_settings
...
# Conflicts:
# scrapy/core/downloader/__init__.py
2023-02-08 22:23:13 +02:00
Alex
4692e0e16b
Merge branch 'master' into path_object_error_#5739
2023-02-02 11:10:01 -08:00
Adrián Chaves
b07d3f85a3
Upgrade CI tools
2023-02-02 06:37:40 +01:00
Adrián Chaves
426f3ebb7b
Fix typo: causes it be closed → causes it to be closed
2023-02-02 05:58:32 +01:00
Adrián Chaves
32bc8bd436
Merge remote-tracking branch 'scrapy/master' into issue5043-feed_export
2023-02-02 05:56:48 +01:00
Adrián Chaves
2f2bcb006d
Test stream detaching in CsvItemExporter
2023-02-02 05:55:59 +01:00
Alex
8c8894f4be
Apply black formatting to templates ( #5814 )
2023-02-02 04:42:47 +01:00
Andrey Rakhmatullin
ccd1385e11
Merge branch 'master' into no-callback
2023-01-30 15:43:05 +05:00
Andrey Rakhmatullin
da15d93d39
Merge pull request #5806 from jxlil/master
...
Use isort
2023-01-30 15:40:44 +05:00
Andrey Rakhmatullin
c0efb271a2
Ignore typing for twisted.internet.reactor globally.
2023-01-27 23:19:44 +04:00
Adrián Chaves
f03b47db05
Make NO_CALLBACK a callable
2023-01-27 17:35:32 +01:00
Alex
a1e2fbafdc
applied black to tests
2023-01-26 16:46:08 -08:00
Cj Malone
33b85a9e2a
Test local files aren't processed
2023-01-26 19:51:20 +00:00
Alex
5433015a25
Merge branch 'master' into path_object_error_#5739
2023-01-26 07:12:01 -08:00
Jalil SA
a5c1ef8276
sort imports with isort
2023-01-25 14:25:15 -06:00
Andrey Rakhmatullin
afd5d85320
Fix remaining issues in tests.
2023-01-25 22:15:10 +04:00