Mikhail Korobov
517cbc8d71
Merge pull request #5508 from mtabbasi/thumb_path-access-item
...
pass on item to thumb_path function as additional argument
2022-06-05 03:42:45 +05:00
Mikhail Korobov
99cddecd28
Merge pull request #5497 from AngelikiBoura/issue_3264/command_parser_unhandled_error
...
Issue #3264 , fix error handling when spider is not matched
2022-05-28 13:26:23 +05:00
Eugenio Lacuesta
2c65066ad9
Avoid exceptions on copy
2022-05-27 19:56:42 -03:00
Eugenio Lacuesta
1b1d518e2b
Merge remote-tracking branch 'upstream/master' into case-insensitive-dict
2022-05-27 18:45:10 -03:00
Mohammadtaher Abbasi
5c586d78f0
add tests
2022-05-25 23:58:09 +04:30
Andreas Tziortziortziopoulos
b5c15d87ff
[issue3264] Separate test for not matched spider to a url
2022-05-22 12:19:20 +03:00
Maxime Nannan
078622cfb0
Fix file expiration issue with GCS ( #5318 )
2022-05-20 08:30:06 +02:00
Eugenio Lacuesta
1c031b8a8d
Underscore CaseInsensitiveDict normkey/normvalue
2022-05-12 13:10:08 -03:00
Eugenio Lacuesta
7297ae566f
Merge remote-tracking branch 'upstream/master' into case-insensitive-dict
2022-05-12 12:43:41 -03:00
GeorgeA92
0ffc52a491
per slot settings: test added (delays for each download slots)
2022-05-11 10:40:12 +03:00
Andreas Tziortziortziopoulos
83c1939281
Issue #3264 , fix error handling when spider is not matched
...
Changes
Implementation:
- Check whether Spider exists or is None, and if it's None skip execution of start_requests() with non existing Spider
Testing:
- Add a test case with invalid url inside test_command_parse
Test proves that non-matched Spider does not throw an AttributeError
2022-05-06 03:59:30 +03:00
AngelikiBoura
b2afcbfe2b
Fix typos in three files for Flake8 check ( #5487 )
...
* Fix typos in extensions files
Made some fixes in files memusage.py and statsmailer.py
in order to pass the flake8 check.
* Fix typos in twisted_reactor_custom_settings_same.py
A small change was needed in order for flake8 check
to pass.
2022-05-05 15:49:52 +02:00
PluT00
cc16af35af
Add deprecation warning test for scrapy.pipelines.images.NoimagesDrop
2022-05-03 11:29:21 +03:00
Alex
636127ec1e
tests that all CLI help messages don't throw errors
2022-04-22 16:32:58 -07:00
Andrey Rahmatullin
35b44f3b98
Merge pull request #5436 from Gallaecio/fix-crawlerprocess-regression
...
CrawlerProcess: initialize the reactor only once
2022-03-25 13:21:21 +05:00
Andrey Rahmatullin
1e1bf353bf
Merge pull request #5440 from Gallaecio/fix-closespider-exception
...
engine: prevent slot method call after unsetting the slot
2022-03-24 19:43:31 +05:00
FJMonteroInformatica
6a3f2ee687
HTML Conventions
2022-03-17 20:09:56 +01:00
Eugene
9a28eb0bad
Suggest installing the brotli package instead of brotlipy ( #4267 )
2022-03-17 05:39:54 +01:00
Yann Defretin
5b4b8b6fb1
added test for new url_has_any_extension function
2022-03-16 22:32:05 +01:00
Adrián Chaves
c961438d5d
tests: cover scenarios of bad results from process_spider_output
2022-03-16 18:45:56 +01:00
Adrián Chaves
cb3afcf0e7
Merge remote-tracking branch 'upstream/master' into wrar-asyncio-parse-asyncgen-proper-rebased
2022-03-16 18:08:47 +01:00
Adrián Chaves
b59a69be17
Test that a low CLOSEPIDER_TIMEOUT does not raise an exception
2022-03-15 12:10:41 +01:00
Laerte Pereira
c1d4be8cb5
Restore ‘-o -’ support ( #5445 )
2022-03-15 11:30:30 +01:00
Adrián Chaves
96fc4dae15
CrawlerProcess: test a multi-spider scenario
2022-03-02 17:30:05 +01:00
Adrián Chaves
50c8becbe0
Freeze and upgrade CI packages ( #5429 )
2022-03-01 17:29:08 +01:00
Adrián Chaves
e865c4430e
Merge pull request from GHSA-mfjm-vh54-3f96
...
* Ignore cookies with a public suffix as domain unless it matches the request domain
* Fix the merge of 1.8.2 release notes
* Re-apply removal of tldextract restriction
2022-03-01 12:38:19 +01:00
Adrián Chaves
8ce01b3b76
Merge pull request from GHSA-cjvr-mfj7-j4j8
...
* Do not carry over cookies to a different domain on redirect
* Cover the cookie-domain redirect fix in the release notes
* Cover 1.8.2 in the release notes
* Fix redirect Cookie handling when the cookie middleware is disabled
* Update the 1.8.2 release date
2022-03-01 12:26:05 +01:00
Laerte Pereira
befb6df119
Remove Python 2 code from WrappedRequest
2022-02-11 06:19:27 -03:00
Andrey Rahmatullin
5d7c0a5f86
Use toscrape.com instead of example.com in test_command_check. ( #5407 )
2022-02-10 10:50:12 +01:00
Alex
e2e2ffd0d1
Move from optparse to argparse ( #5374 )
2022-02-09 20:52:07 +01:00
Andrey Rakhmatullin
1e1cfc26db
Copy resource classes from twisted.web.test.test_webclient.
2022-02-08 21:01:16 +05:00
Laerte
4bda0976b2
Fix csviter call, add parse_rows test ( #5394 )
2022-02-08 14:57:19 +01:00
Eugenio Lacuesta
fca49cca92
Remove deprecated DictItem class
2022-02-06 18:31:55 -03:00
Eugenio Lacuesta
c8c1edd43b
Flake8 adjustments
2022-02-06 18:27:41 -03:00
Eugenio Lacuesta
bbfa185664
Remove deprecated BaseItem class
2022-02-06 18:12:28 -03:00
Eugenio Lacuesta
55ae2109c9
Remove deprecated TextResponse.body_as_unicode
2022-02-05 13:11:13 -03:00
Laerte
fe43411bc4
Fix TypeError on using pathlib.Path as key on FEEDS settings ( #5384 )
2022-02-04 09:57:57 +01:00
Sixuan (Cherie) Wu
30d5779ea9
Fix FEED_URI_PARAMS: custom params throws KeyError ( #4966 )
...
* fix FEED_URI_PARAMS: custom params throws KeyError closes #4962
* another try FEED_URI_PARAMS
* add warning message and change default function
* Add tests for FEED_URI_PARAMS
* FEED_URI_PARAMS: warn if the params dict has been modified in-place
* [Doc] FEED_URI_PARAMS: modifying params in-place is deprecated
* Remove whileline
* Rename parameters for lambda function
* Type hints for FeedExporter._get_uri_params
Co-authored-by: Adrián Chaves <adrian@chaves.io>
Co-authored-by: Eugenio Lacuesta <eugenio.lacuesta@gmail.com>
2022-01-28 14:30:30 -03:00
Georgiy Zatserklianyi
4bdaa54af4
response_httprepr memory issue fixed ( #4972 )
...
* response_httprepr replaced by response.body
* unused import deleted
* get_header_size function added
* response size calculation updated
* flake8 codestyle fix
* added counting status code, line breaks to response size
* get_status size: list to tuple, comments added
* test added: comparing new response size counting method with old `len(response_httprepr)`
* downloader stats : unreachable code deleted
* `get_status_size` optimized
* comment added
* tests.test_downloadermiddleware_stats: statement formatting updated
* scrapy.utils.response: `response_httprepr` -> deprecated
* tests.test_downloadermiddleware_stats: flake8 fix
2022-01-28 18:39:32 +05:00
Andrey Rakhmatullin
f789547551
Implement spider middleware iterable upgrade/downgrade.
2022-01-11 18:28:32 +05:00
Andrey Rakhmatullin
8864407c4d
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2022-01-10 19:37:46 +05:00
Andrey Rakhmatullin
3577c00569
Merge remote-tracking branch 'origin/master' into crawler-process-reactor-later
2022-01-03 13:59:26 +05:00
Andrey Rahmatullin
c5ab58056c
Set WindowsSelectorEventLoopPolicy on Windows ( #5315 )
2021-12-31 20:38:10 +01:00
Andrey Rakhmatullin
d4565318c7
Fix a reactor test on Windows.
2021-12-23 17:40:31 +05:00
Andrey Rakhmatullin
df04e934e6
Merge remote-tracking branch 'origin/master' into crawler-process-reactor-later
2021-12-23 17:25:56 +05:00
Andrey Rakhmatullin
9c4bfb4836
Remove an unused import.
2021-12-23 17:17:36 +05:00
Andrey Rakhmatullin
0025134382
Completely skip WindowsRunSpiderCommandTest outside Windows.
2021-12-23 16:45:17 +05:00
Andrey Rakhmatullin
ebcafdf4a9
Add tests for TWISTED_REACTOR in custom_settings.
2021-12-23 16:35:26 +05:00
Andrey Rakhmatullin
041699b54c
Remove tests that want to modify the test process reactor.
2021-12-23 16:14:47 +05:00
Andrey Rakhmatullin
60c8838554
Move installing the reactor from CrawlerProcess to Crawler.
2021-12-23 16:07:18 +05:00
Andrey Rahmatullin
9ec60e8e4a
Merge pull request #5320 from zessx/5319-oib-base-tag
2021-12-21 17:49:31 +05:00
Alex
c316ca45a5
Use augmented assignment statements ( #5322 )
2021-11-16 10:20:56 +01:00
Samuel Marchal
75ed765476
Test coverage for open_in_browser base tag injection ( #5319 )
2021-11-15 16:44:56 +01:00
azzamsa
55cce25a79
test: `test_format_engine_status`
2021-11-05 03:02:02 +07:00
Andrey Rakhmatullin
c105a7a85f
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-10-22 21:52:47 +05:00
Andrey Rahmatullin
144d1eb834
Add Deferred-to-Future helpers ( #5288 )
2021-10-22 18:46:01 +02:00
Adrián Chaves
d774d6a9c4
Remove unused variable
2021-10-15 17:25:22 +02:00
Erik Kemperman
ca320feb2a
Add LOG_FILE_APPEND to settings
2021-10-15 16:36:41 +02:00
Andrey Rahmatullin
5b13bfd14a
Merge pull request #5269 from Ankur19/allow-non-text-response-types-in-ItemLoader
...
Fix bug #5145 - Removing Selector for Response's that are not Http or Xml
2021-10-14 16:19:54 +05:00
Andrey Rakhmatullin
a642b73e1a
Remove an unused import.
2021-10-13 19:22:22 +05:00
Andrey Rakhmatullin
e5b057cfd4
Don't use a HTTP request in a case that will not be awaited.
2021-10-13 19:07:53 +05:00
Andrey Rakhmatullin
66d8a71920
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-10-11 20:24:22 +05:00
Kian-Meng, Ang
3a263280ba
Fix typos
2021-10-11 22:32:42 +08:00
ankur19
6fbd6f941f
Fix issue#5145
...
Fix condition for failing tests
set Selector to None on AttributeError
Add test and remove unused imports
Fix imports
2021-10-10 15:55:22 -04:00
Georgiy Zatserklianyi
d3f1bf79e8
Use f-strings where appropriate ( #5246 )
2021-10-07 16:27:20 +02:00
Eugenio Lacuesta
029cab72e8
[CI] fix pypy test ( #5264 )
2021-10-06 19:34:09 +02:00
Laerte
6c858cec91
Cookies: Cast primitive types to str ( #5253 )
...
* cast primitive types to str
* add tests
2021-10-06 12:32:04 -03:00
Andrey Rakhmatullin
b081f18a2f
Add http_auth_domain to HttpAuthMiddleware.
2021-10-06 12:33:18 +02:00
Eugenio Lacuesta
890f884de4
Allow 'callback' key in keyword arguments for request callbacks ( #5251 )
2021-10-01 09:50:42 +02:00
Andrey Rahmatullin
8284de5e76
Fix/silence the Pylint messages added in 2.10 ( #5235 )
2021-08-24 12:15:29 +02:00
D R Siddhartha
43ea21e830
Feed post-processing plugin support ( #5190 )
2021-08-24 11:48:01 +02:00
Matsievskiy S.V
3f635eb683
Extract domain from genspider URL ( #4439 )
2021-08-24 11:05:50 +02:00
Andrey Rahmatullin
ada539a63a
Merge pull request #4676 from Gallaecio/startproject-existing-folder
...
Fix startproject failing for existing folders
2021-08-24 12:18:49 +05:00
Andrey Rahmatullin
731f2d3085
Merge pull request #4178 from elacuesta/remove_spider_make_requests_from_url
2021-08-20 16:16:25 +05:00
Eugenio Lacuesta
5792e1c922
Merge remote-tracking branch 'upstream/master' into case-insensitive-dict
2021-08-19 14:09:39 -03:00
Eugenio Lacuesta
bbeed6ae8f
CaseInsensitiveDict: preserve original keys (only lookups are key-insensitive)
2021-08-19 14:09:30 -03:00
Andrey Rakhmatullin
5d4b232de8
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-08-16 20:20:43 +05:00
Andrey Rahmatullin
2814e0e197
Disable builtin middlewares in spider middleware tests. ( #5229 )
2021-08-16 13:22:01 +02:00
Andrey Rakhmatullin
b63369c148
Rename tests/requirements-py3.txt to tests/requirements.txt.
2021-08-11 20:02:45 +05:00
Andrey Rahmatullin
0590c3756c
Merge pull request #5221 from wRAR/3.10-tests
...
Fixing tests for upcoming 3.10.
2021-08-11 14:19:51 +05:00
Andrey Rakhmatullin
983b89ad4f
Fix SpiderLoaderTest on Python 3.10.
2021-08-11 10:39:23 +05:00
Michel Ace
ce9d6c658b
Add more rel_has_nofollow tests
2021-08-10 22:21:51 +02:00
Michel Ace
295f0e2bf5
Make flake8 happy
2021-08-10 21:38:29 +02:00
Michel Ace
07d20a8ce4
Fix test_rel_has_nofollow test
2021-08-10 21:21:43 +02:00
Michel Ace
18b6f30a73
Add test for rel_has_nofollow
2021-08-10 21:13:50 +02:00
Mannan2812
94baa4b272
Fix FileFeedStoragePreFeedOptionsTest fails in CI/CD pipeline ( #5198 )
2021-08-05 21:23:11 +02:00
Andrey Rakhmatullin
93bf1ae7e3
Fix tests for the 3.10 TypeError message change.
2021-08-03 20:16:59 +05:00
Andrey Rahmatullin
b406affd5b
Merge pull request #5210 from laggardkernel/feature/aws-session-token
2021-07-30 15:15:55 +05:00
Eugenio Lacuesta
cc89f6be38
Response.attributes ( #5218 )
2021-07-29 22:12:44 +02:00
laggardkernel
7e4321f201
Add support for temporary security credential in AWS auth
2021-07-27 19:39:59 +08:00
Pascal Corpet
70dddfe2b2
Typing: switch to a newer version of MyPy to check types
2021-07-21 17:10:10 +02:00
Andrey Rakhmatullin
7306a81188
Disable builtin middlewares in spider middleware tests.
2021-07-19 20:09:11 +05:00
Adrián Chaves
8a2768561f
Merge branch 'master' into asyncio-parse-asyncgen-proper-rebased
2021-07-16 14:32:15 +02:00
Türkalp Burak KAYRANCIOĞLU
fcc6becc58
S3FeedStorage: allow custom endpoint ( #4998 )
...
Co-authored-by: Andrey Rahmatullin <wrar@wrar.name>
2021-07-14 10:00:43 +02:00
D R Siddhartha
4ddc9d6b55
Feeds: Item Filters ( #5178 )
2021-07-13 17:22:29 +02:00
Iván de Prado
eca641aa3d
Update tests/test_engine.py
...
Co-authored-by: Adrián Chaves <adrian@chaves.io>
2021-07-08 12:40:20 +01:00
Iván de Prado Alonso
f35970778b
Test case for raising CloseSpider on spider idle signal handler
2021-06-29 13:21:38 +01:00
Andrey Rahmatullin
016c7e92d1
Merge pull request #3579 from maramsumanth/duplicate_key
...
[MRG+1] Issue #2919 : Fix FormRequest.formdata with GET method duplicates same key in query string
2021-06-15 13:36:53 +05:00
ajaymittur28
7d653288e3
Update unittest
2021-06-14 21:39:18 +05:30
ajaymittur28
857e0e225a
Merge branch 'master' into http-proxy-schema
2021-06-14 21:18:49 +05:30
Andrey Rahmatullin
66e2004239
Fix a flake8 problem
2021-06-14 18:58:35 +05:00
Andrey Rahmatullin
16be658a31
Merge branch 'master' into duplicate_key
2021-06-14 18:45:33 +05:00
Andrey Rakhmatullin
ecfc924ca8
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-06-04 18:55:32 +05:00
Vostretsov Nikita
23cfdb058e
Reducing amount of warnings during test run ( #5162 )
...
* put flake8 options into separate file to remove pytest warnings
* remove ResourceLeaked warning in pypy
* suppress warnings from twisted
* ignore deprecation warnings here
* ignore deprecation warning in tests of deprecated methods
* ignore deprecation warnings here
* update test classes
* don`t use deprecated method call
* ignore deprecation warnings here
* proper warning class
* more selective ignoring
* Revert "don`t use deprecated method call"
This reverts commit 59216ab560 .
2021-05-28 14:45:06 +05:00
Eugenio Lacuesta
52d0df5f98
CaseInsensitiveDict (deprecate CaselessDict)
2021-05-12 13:08:08 -03:00
Adrián Chaves
c5b1ee8101
Make Twisted[http2] installation optional ( #5113 )
...
Co-authored-by: Eugenio Lacuesta <eugenio.lacuesta@gmail.com>
2021-05-11 09:04:53 +02:00
Eugenio Lacuesta
cec36a9284
Refactor request to/from dict ( #5130 )
2021-05-10 18:00:08 +02:00
Eugenio Lacuesta
02ae1deaf4
Deprecate unused squeues ( #5117 )
2021-04-27 09:41:44 -03:00
Eugenio Lacuesta
ddea6b7bfa
Scheduler: minimal interface, API docs ( #3559 )
2021-04-26 16:16:14 -03:00
Eugenio Lacuesta
6837919798
Add peek method to queues ( #5112 )
2021-04-26 14:55:02 -03:00
Eugenio Lacuesta
7e23677b52
Engine: deprecations and type hints ( #5090 )
2021-04-20 08:45:28 -03: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
d8d1dc5b50
Ignore typing warning in test
2021-04-12 10:43:02 -03:00
Eugenio Lacuesta
b6f77806b0
Engine tests: fix item class spider, add minimal type hints
2021-04-09 13:09:47 -03:00
Eugenio Lacuesta
91f8144552
Remove deprecated Spider.make_requests_from_url method
2021-04-07 15:16:55 -03:00
Adrián Chaves
a71d6ef29d
2.5.0 release notes ( #5028 )
...
Co-authored-by: Eugenio Lacuesta <1731933+elacuesta@users.noreply.github.com>
2021-04-06 16:09:07 +02:00
Andrey Rakhmatullin
30ed7fa349
Some cleanup, make sync middlewares fail earlier.
2021-04-02 22:20:56 +05:00
Eugenio Lacuesta
9e7cbc05ae
Fix type for urlencode's doseq argument
2021-04-01 15:22:51 -03:00
Mikhail Korobov
12f2006b7b
Merge pull request #4799 from GeorgeA92/patch-2
...
httpcompression stats added
2021-04-01 22:47:24 +05:00
Mikhail Korobov
f0c8d31193
Merge pull request #4694 from Jgaldos/improve-httpstatus-all-meta
...
Improve http status all on http error middleware
2021-04-01 22:43:45 +05:00
Mikhail Korobov
d0e23486b4
Merge pull request #4902 from Gallaecio/retry-request
...
Implement a retry request function
2021-04-01 22:23:56 +05:00
Andrey Rakhmatullin
6803779eb7
Add more tests for _process_iterable_universal.
2021-03-26 22:29:07 +05:00
Andrey Rakhmatullin
7b515a0485
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-03-25 22:13:49 +05:00
Andrey Rakhmatullin
f422861ef4
Add more tests for spider middlewares.
2021-03-25 20:49:12 +05:00
Andrey Rakhmatullin
a6034f942b
Add tests for _AsyncCooperatorAdapter.
2021-03-23 22:47:37 +05:00
Andrey Rakhmatullin
c51ec1ae1c
Drop process_iterable_helper, add _process_iterable_universal.
2021-03-23 22:47:30 +05:00
Eugenio Lacuesta
72e8cea8af
Avoid exceptions in is_generator_with_return_value ( #4935 )
2021-03-22 11:51:11 -03:00
Adrián Chaves
ec5a7918ec
Include Content-Length in HTTP/1.1 responses ( #5057 )
2021-03-22 11:25:40 +01:00
Mikhail Korobov
0e7ee1256c
Merge pull request #5036 from dmiwell/urllength-dont-skip-silently
...
UrlLengthMiddleware: don't skip silently
2021-03-20 00:55:33 +05:00
Adrián Chaves
308a58aa27
Update CI to support Twisted 21.2.0 ( #5027 )
2021-03-19 18:39:44 +01:00
Adrián Chaves
8e73e1dfb5
upper-constraints.txt: restrict botocore further
2021-03-18 23:42:29 +01:00
Adrián Chaves
1d83697990
Merge pull request #4769 from scrapy/http2
...
Implement experimental HTTP/2 support
2021-03-18 22:18:12 +01:00
Dmitriy Pomazunovskiy
9cc4513bd6
simpler stats access
2021-03-15 21:38:03 +06:00
Dmitriy Pomazunovskiy
0f254a6afb
Test from_settings
2021-03-12 17:11:50 +06:00
Dmitriy Pomazunovskiy
d4b2b61255
Use from_settings for backward compatibility
2021-03-12 16:59:37 +06:00
Dmitriy Pomazunovskiy
6e5ea7924c
Log skipped urls by length to INFO, add skipped stats
2021-03-12 11:08:41 +06:00
Eugenio Lacuesta
0c16088230
headers_received signal ( #4897 )
2021-03-11 11:52:35 -03:00
Adrián Chaves
5b2d3e17a3
Merge branch 'master' into http2
2021-03-09 14:59:17 +01:00
Eugenio Lacuesta
9e62355271
Allow logger/stats customization in get_retry_request
2021-03-02 12:12:22 -03:00
Adrián Chaves
386e2a51ae
tests/test_downloader_handlers_http2.py: fix style issue
2021-02-24 10:41:01 +01:00
Adrián Chaves
12064d799b
HTTP/2: improve header handling
2021-02-24 10:37:38 +01:00
Adrián Chaves
5101094207
HTTP/2: test a CONNECT request
2021-02-24 07:33:39 +01:00
Adrián Chaves
7605f19ec4
HTTP/2: test 2 concurrent requests to the same domain
2021-02-23 05:54:48 +01:00
Eugenio Lacuesta
6326178bc5
http2: acceptable protocol update, tests ( #4994 )
2021-02-22 16:50:51 +01:00
Adrián Chaves
1f7665c4cf
Silence a PyLint check on a mistake made for testing purposes
2021-02-22 16:48:10 +01:00
Adrián Chaves
722a33a2ac
Fix style issues
2021-02-22 16:42:38 +01:00
Adrián Chaves
80f5003c88
Add tests for get_retry_request
2021-02-22 16:38:38 +01:00
Andrey Rakhmatullin
40eab1d473
Drop a duplicate import.
2021-02-18 19:56:12 +05:00
Andrey Rakhmatullin
58706c6598
Merge branch 'asyncdef-tests' into asyncio-parse-asyncgen-proper-rebased
2021-02-18 17:20:25 +05:00
Andrey Rakhmatullin
49af7c4c8b
Drop pytest-twisted, use Scrapy code to install the reactor.
2021-02-18 17:10:30 +05:00
Eugenio Lacuesta
e80f37bd3f
Test http2 agent for unsupported scheme
2021-02-17 16:34:29 -03:00
Eugenio Lacuesta
ac82a4a8a0
Merge remote-tracking branch 'upstream/master' into http2
2021-02-17 16:33:57 -03:00
Andrey Rakhmatullin
abbbfbbb38
Add tests for deferred_f_from_coro_f.
2021-02-12 22:41:16 +05:00
Andrey Rakhmatullin
a7557f2a49
Merge remote-tracking branch 'origin/master' into asyncio-parse-asyncgen-proper-rebased
2021-02-11 16:09:14 +05:00
Andrey Rakhmatullin
54fd371481
Skip uvloop 0.15.0+ on py36.
2021-02-11 14:24:11 +05:00
Adrián Chaves
9ac5b1d021
Adjust test constraints
2021-02-09 09:13:25 +01:00
Adrián Chaves
bb72bba178
tox: apply upper constraints to all non-pinned package installations
2021-02-09 09:13:25 +01:00
Adrián Chaves
45345ba6b5
Use constraints.txt to limit pip resolver backtracking
2021-02-09 09:13:25 +01:00
Andrey Rakhmatullin
5cf403295d
Remove a duplicate definition.
2021-02-05 19:40:14 +05:00
Andrey Rakhmatullin
2152a2a508
Add main infrastructure for async callbacks.
2021-02-05 16:21:56 +05:00
Andrey Rakhmatullin
d66d52d3ed
Add process_iterable_helper.
2021-02-05 16:21:56 +05:00
Andrey Rakhmatullin
7e9f498e00
Add MutableAsyncChain.
2021-02-05 16:21:56 +05:00
Andrey Rakhmatullin
acff1eb496
Add aiter_errback.
2021-02-05 16:21:56 +05:00
Andrey Rakhmatullin
76abcedaf4
Add as_async_generator.
2021-02-05 16:21:56 +05:00
Adrián Chaves
248800328c
Fix test_pinned_twisted_version
2021-02-03 21:13:43 +01:00
Adrián Chaves
c8d8b180bf
Merge remote-tracking branch 'upstream/master' into http2
2021-02-03 09:37:35 +01:00
Eugenio Lacuesta
80db569aea
Migrate CI to GitHub actions ( #4924 )
2021-01-01 19:13:39 -03:00
Eugenio Lacuesta
e494a3f733
protocol attribute for h2 responses
2020-12-31 11:50:15 -03:00
Eugenio Lacuesta
d698b5147b
Merge branch 'master' into http2
2020-12-31 11:13:25 -03:00
Eugenio Lacuesta
b83a1a6fbf
Disable test under pypy
2020-12-21 17:21:08 +01:00
Adrián Chaves
0567fdc56e
Merge remote-tracking branch 'upstream/master' into tox-pip20.2
2020-12-21 11:02:05 +01:00
Adrián Chaves
d0af008608
Merge pull request #4878 from elacuesta/response-protocol-attribute
...
Response.protocol attribute
2020-12-16 15:27:40 +01:00
Adrián Chaves
f6879c681e
SCRAPY_PINNED → _SCRAPY_PINNED
2020-11-23 23:53:03 +01:00
Adrián Chaves
0dc3e6350c
Add a test to check the Twisted version in pinned environments
2020-11-23 22:10:45 +01:00
Eugenio Lacuesta
18b05af877
Remove tests/test_utils_http.py
2020-11-23 16:18:58 -03:00
Eugenio Lacuesta
51ca4d0138
Remove deprecated scrapy.utils.gz.is_gzipped function
2020-11-23 15:47:08 -03:00
Adrián Chaves
07379cf9b7
Merge branch 'master' into allow-customizing-export-column-names
2020-11-20 20:06:18 +01:00
Eugenio Lacuesta
2405df49f1
Add tests for Response.protocol=None
2020-11-16 12:50:33 -03:00
joaquin garmendia
85604e1078
Add failed and success count stats to feedstorage backends ( #4850 )
2020-11-11 21:16:01 +01:00
Eugenio Lacuesta
5e9a99e6a1
Reponse.protocol as string
2020-11-11 11:15:29 -03:00
Eugenio Lacuesta
5b6b56240c
Test Response.protocol attribute
2020-11-11 01:08:37 -03:00
Eugenio Lacuesta
c20b34269f
Remove unnecessary pytest-azurepipelines package ( #4876 )
2020-11-10 15:35:09 -03:00
Mikhail Korobov
91a8451c98
Merge pull request #4874 from stummjr/fix-missing-fstring-prefix-genspider
...
Fix incorrect output on the genspider command
2020-11-10 17:23:28 +05:00
Eugenio Lacuesta
b20cfef1e5
Remove unnecessary line from test
2020-11-09 13:58:52 -03:00
Eugenio Lacuesta
7e98a76ac4
Use deferred_from_coro in asyncio test
2020-11-09 12:17:15 -03:00
Valdir Stumm Junior
a2c4a7f920
Add missing f-string prefix to genspider output
2020-11-08 20:14:59 -03:00
Adrián Chaves
4b28da4333
Fix syntax error
2020-11-06 16:46:22 +01:00
Adrián Chaves
f3064254ce
Merge branch 'patch-2' of github.com:GeorgeA92/scrapy into patch-2
2020-11-06 16:42:58 +01:00
Adrián Chaves
ee98771fa7
Remove unused variable
2020-11-06 16:42:32 +01:00
Adrián Chaves
1941f607ca
Skip 2 additional tests with older Twisted versions
2020-11-06 16:25:56 +01:00
Eugenio Lacuesta
3095d39740
Test: disable asyncio reactor on Windows for Py>=3.8
2020-11-06 12:16:18 -03:00
Adrián Chaves
5d2a9cf5b1
Merge branch 'master' into patch-2
2020-11-06 14:17:54 +01:00
Adrián Chaves
a3e53027ec
Test HttpCompressionMiddleware subclasses with custom, parameterless __init__
2020-11-06 14:16:26 +01:00
Adrián Chaves
fea5a11899
Also skip test_asyncdef_asyncio on old Twisted versions
2020-11-06 13:00:42 +01:00
Adrián Chaves
ea851b910e
Clean up Twisted version check
2020-11-06 13:00:31 +01:00
Eugenio Lacuesta
5b5478ae9d
Call asyncio.get_event_loop when installing the asyncio reactor
2020-11-05 14:01:34 -03:00
Adrián Chaves
906626cf0b
Skip MiddlewareUsingCoro::test_asyncdef on asyncio and old Twisted
2020-11-04 21:50:12 +01:00
Adrián Chaves
8e7b756727
Solve Flake8-reported issues
2020-11-04 21:26:55 +01:00
Adrián Chaves
7327145bf3
Remove mitmproxy from pinned environments
2020-10-30 21:34:15 +01:00
Georgiy Zatserklianyi
a5872a0fad
Fix output file overwrite with -O (FeedExporter updated) ( #4859 )
2020-10-30 19:36:39 +01:00
Eugenio Lacuesta
585e4a8aee
Replace local server address
2020-10-15 09:07:34 -03:00
GeorgeA92
872b2e4ce4
testcase added for COMPRESSION_ENABLED setting
2020-10-13 18:41:58 +03:00
GeorgeA92
d32d0d2739
testcase added for HttpCompressionMiddleware with no stats
2020-10-13 18:36:41 +03:00
Eugenio Lacuesta
868826b346
CachingHostnameResolver tests
2020-10-09 10:38:07 -03:00
Andrey Rahmatullin
9f8c3938cc
Merge pull request #4823 from elacuesta/cookies-revert-header
...
Do not process cookies from headers
2020-10-08 20:20:32 +05:00
Andrey Rahmatullin
45c06cfd80
Merge pull request #4831 from starrify/downloadermw-support-zstd
...
Adding support for zstd in HttpCompressionMiddleware
2020-10-08 14:08:18 +05:00
Adrián Chaves
269fe35d6d
Merge branch 'master' into http2
2020-10-06 21:05:10 +02:00
P. Chen
156bb0a1d4
Fixing the minor typo on test file path in tests/test_downloadermiddleware_httpcompression.py
2020-10-06 19:53:40 +01:00
Adrián Chaves
e40788153c
Do not consider about: URLs invalid
2020-10-06 19:13:29 +02:00
GeorgeA92
6050604f62
httocompression/response_bytes tests added
2020-10-06 18:59:57 +03:00
Andrey Rahmatullin
b1255b016a
Merge pull request #4746 from Gallaecio/fix_iternodes
...
Fix iternodes
2020-10-06 20:14:04 +05:00
Andrey Rahmatullin
1aeda66435
Merge pull request #4804 from Gallaecio/mock-s3
...
Use mocking for S3 tests that currently need server credentials
2020-10-06 18:23:01 +05:00
P. Chen
6032a9a310
Minor adjustment to the test case in tests/test_downloadermiddleware_httpcompression.py
2020-10-05 23:55:48 +01:00
P. Chen
50e1f35d1f
Adding test cases for the zstd content encoding
2020-10-05 23:43:12 +01:00
D R Siddhartha
0c24cdb257
Improved warning messages a little
2020-10-04 02:09:21 +05:30
Eugenio Lacuesta
797a6690c0
Tests: use classes instead of paths in settings ( #4817 )
2020-10-01 23:11:11 -03:00
Mikhail Korobov
4f27c5f82b
Merge pull request #4768 from maranqz/feature/4606-exporter-from-FEEDS
...
Pass info from FEEDS to ItemExporter
2020-10-02 00:10:05 +05:00
Mikhail Korobov
f173af6b9d
Merge pull request #4778 from drs-11/unparseable-no-proxy-fix
...
Check for unparseable no_proxy values
2020-10-01 23:57:00 +05:00
Akshay Sharma
159e2b2e2f
allowing to run .pyw files ( #4646 )
...
* allow .pyw in scrapy/commands/runspider.py
* aesthetics
* added tests for '.pyw'
* created class for testing .pyw files
* name=None parameter in get_log
* small fix
* .pyw tests for non-windows
* used @skipIf for tests
* two more tests skipped
2020-10-01 23:53:08 +05:00
Eugenio Lacuesta
744f352d09
Do not process cookies from headers
2020-10-01 14:52:23 -03:00
Eugenio Lacuesta
894b509d7a
Crawl rule: remove deprecated code
...
Remove the compatibility layer that handles 'process_request'
methods that do not receive a 'response' parameter
2020-09-29 23:37:28 -03:00
Adrián Chaves
6ef7c44061
Fix timezone test issue
2020-09-22 12:45:21 +02:00
GeorgeA92
c22e810658
httocompression tests added
2020-09-22 07:47:37 +03:00
Adrián Chaves
8f46e84519
Fix style issues
2020-09-21 23:28:16 +02:00
Adrián Chaves
c3b740f078
Use mocking for tests/test_pipeline_files.py::TestS3FilesStore::test_persist
2020-09-21 23:25:37 +02:00
Adrián Chaves
35726da434
tests/test_feedexport.py: remove unused import
2020-09-21 22:55:25 +02:00
Adrián Chaves
17e135377a
Use mocking for tests/test_feedexport.py::BatchDeliveriesTest::test_s3_export
2020-09-21 22:54:39 +02:00
Adrián Chaves
56f05fb164
Use mocking for tests/test_feedexport.py::S3FeedStorageTest::test_store
2020-09-21 22:01:09 +02:00
Adrián Chaves
008cf1c75e
Remove a test that has never been executed in Python 3
2020-09-21 20:45:21 +02:00
Andrey Rahmatullin
5e997587d9
Remove dead boto2 code, deprecate is_botocore() ( #4776 )
2020-09-20 15:06:46 +02:00
Eugenio Lacuesta
6e8d20a07a
HTTP/2: add some type hints ( #4785 )
2020-09-16 09:57:07 +02:00
drs-11
82ba7c8b52
created separate test for invalid no-proxy values
2020-09-10 20:56:39 +05:30
drs-11
959222df7e
check for unparseable no_proxy values
2020-09-05 21:32:05 +05:30
drs-11
35e2d25689
Merge remote-tracking branch 'upstream/master' into 3689-update
2020-09-02 20:51:09 +05:30
drs-11
6565adc471
added test case for get_images
2020-09-02 20:44:26 +05:30
Andrey Rahmatullin
c1cc3f2f42
Merge pull request #4761 from Gallaecio/on-the-fly-certificates
...
Generate localhost keys for tests on the fly
2020-09-02 13:37:44 +05:00
Adrián Chaves
9731d91f34
Merge branch 'master' into fix_iternodes
2020-09-01 12:38:37 +02:00
Eugenio Lacuesta
307e35c664
Improve check for invalid cookie in CookiesMiddleware ( #4772 )
2020-09-01 11:04:00 +02:00
Adrián Chaves
8a3ba34a75
Merge remote-tracking branch 'upstream/master' into http2
2020-08-31 16:43:32 +02:00
Aditya
eff33a2e79
fix(h2): Mockserver test uses H2DownloadHandler
2020-08-30 23:55:17 +05:30
maranqz
71d2c2f1a3
improve view of dict
2020-08-30 12:43:44 +03:00
maranqz
fc3c66ce95
fix tests:
...
* FeedExportConfigTestCase.test_feed_complete_default_values_from_settings_empty
* FeedExportConfigTestCase.test_feed_complete_default_values_from_settings_non_empty
2020-08-30 11:44:48 +03:00
maranqz
a8e895e684
kwargs for Item exporters classes
...
test
docs
2020-08-30 10:57:22 +03:00
Mikhail Korobov
be655b855d
Merge pull request #4765 from scrapy/simplify-test_crawl
...
Simplify tests/test_crawl
2020-08-29 13:31:20 +05:00
Andrey Rakhmatullin
8123c42737
Simplify running spiders in CrawlSpiderTestCase.
2020-08-29 12:01:58 +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
Mikhail Korobov
7e6476ff0a
Merge pull request #4764 from scrapy/test_crawl-move-py36
...
Merge back tests/py36/_test_crawl.py.
2020-08-29 00:12:53 +05:00
Andrey Rahmatullin
59a0157ef1
Merge pull request #4722 from Gallaecio/umask
...
Do not let umask affect the permissions of startproject-generated files
2020-08-28 18:41:02 +05:00
Andrey Rakhmatullin
de640f41ec
Merge back tests/py36/_test_crawl.py.
2020-08-28 18:27:36 +05:00
Ammar Najjar
0e57918231
test(Slot): cover __repr__
...
Issue: #4324
2020-08-28 13:58:32 +02:00
Mikhail Korobov
64905e3397
Merge pull request #4691 from elacuesta/typing-spider-attributes
...
Typing: annotate a few Spider attributes
2020-08-28 00:03:40 +05:00
Adrián Chaves
195f738bba
Update Python version references after dropping support for 3.5 ( #4742 )
...
* Update Python version references after dropping support for 3.5
* Remove outdated test
* Undo change affecting collect_asyncgen
* Undo change to be handled by #4743
* Remove unused import
* Remove unused import
* Update tests/requirements-py3.txt
Co-authored-by: Mikhail Korobov <kmike84@gmail.com>
Co-authored-by: Mikhail Korobov <kmike84@gmail.com>
2020-08-27 15:43:43 +05:00
Adrián Chaves
dd378b4bb1
Generate localhost keys for tests on the fly
2020-08-27 11:33:18 +02:00
Mikhail Korobov
a6b67cf4a1
Merge pull request #4755 from maranqz/csv-item-exporter-errors
...
Add errors parameter for CsvItemExporter with tests
2020-08-27 12:51:53 +05:00
Ammar Najjar
5ab1a318e8
test: list appears in ValueError Exception message
...
Issue #4324
2020-08-26 15:11:46 +02:00
Eugenio Lacuesta
a8114d3731
Typing: annotate a few Spider attributes
2020-08-26 09:00:36 -03:00
Ammar Najjar
7597193dbe
Merge branch 'master' into 4307-use-f-strings
...
Resolve Conflicts:
tests/test_middleware.py
2020-08-26 13:46:46 +02:00
nyov
cf50561b86
Allow passing classes directly in Settings ( #3873 )
...
Co-authored-by: Adrián Chaves <adrian@chaves.io>
2020-08-26 13:08:14 +02:00
Ammar Najjar
58ca8bbf6d
Use f-strings ( #4307 )
2020-08-26 07:11:05 +02:00
Mikhail Korobov
0ccaf89a6f
Merge pull request #4756 from ivanprado/master
...
Support for delegated methods as callbacks
2020-08-26 00:10:43 +05:00
Adrián Chaves
2f28cee3ce
Add a test to cover searching for a missing node name
2020-08-25 17:49:17 +02:00
Adrián Chaves
6eb1fc4ab5
Merge remote-tracking branch 'upstream/master' into fix_iternodes
2020-08-25 17:01:54 +02:00
Andrey Rahmatullin
067125c303
Merge pull request #4752 from drs-11/master
...
DOWNLOAD_MAXSIZE logger level changed from Error to Warning
2020-08-25 18:35:50 +05:00
Adrián Chaves
39affea93c
Fix style issues
2020-08-25 13:57:48 +02:00
maranqz
a2d6fa5adc
Add errors parameter for CsvItemExporter with tests
2020-08-25 13:34:43 +03:00
Iván de Prado
3e726b9df7
Support for delegated methods as callbacks
...
It can be useful to structure the spiders code around some helper classes.
2020-08-25 11:31:20 +01:00
Andrey Rahmatullin
64e0ea4ee5
Merge pull request #4735 from wRAR/ciphers-tests
...
Re-enable TLS 1.2 in cipher tests.
2020-08-25 11:48:31 +05:00
drs-11
1f9598ada4
Update branch to latest
2020-08-25 02:14:22 +05:30
drs-11
8b84a65a6b
cleaned up code relating to issue #3689
2020-08-25 00:30:17 +05:30
WinterComes
2d8ec9d44f
Change DOWNLOAD_MAXSIZE logger level from Error to Warning
2020-08-24 20:37:40 +05:30
Aditya
26d344b762
Merge branch 'http2' of https://github.com/scrapy/scrapy into h2-client-protocol
2020-08-24 14:58:23 +05:30
Eugenio Lacuesta
f1250177dc
Remove Python 3.5 from CI ( #4743 )
2020-08-22 09:33:35 +02:00
Adrián Chaves
e90be0d8a5
Mark the new test as xfail for xmliter_lxml
2020-08-21 14:09:52 +02:00
Adrián Chaves
d711eca4d9
Merge remote-tracking branch 'upstream/master' into fix_iternodes
2020-08-21 13:52:52 +02:00
Grisha Temchenko
d68aab992e
Smarter generator check for combined return/yield statements ( #4721 )
2020-08-20 10:22:07 -03:00
sakshamb2113
42383cc267
Add a setting to customize the asyncio event loop ( #4414 )
2020-08-19 09:18:14 +02:00
Aditya
a87ab71d10
refactor(http2): metadata for Stream
...
- Add Note about HTTP/2 Cleartext not supported in settings.rst
2020-08-18 05:52:40 +05:30
Andrey Rakhmatullin
d9e69bfb51
Re-enable TLS 1.2 in cipher tests.
2020-08-17 19:46:24 +05:00
Adrián Chaves
e70975f0bb
Allow overwriting feeds ( #4512 )
...
Co-authored-by: Yuval Hager <yhager@yhager.com>
2020-08-17 15:10:08 +02:00
Mikhail Korobov
282a6d4fc1
Merge pull request #4727 from wRAR/mitmproxy-ca
...
Use a longer key in mitmproxy-ca.pem.
2020-08-17 14:06:58 +05:00
Mikhail Korobov
61459de476
Merge pull request #4688 from ashellunts/obsolete-s3feednokeys
...
Remove obsolete S3FeedStorage instancing without AWS credentials
2020-08-17 13:58:32 +05:00
Mikhail Korobov
5ac135f036
Merge pull request #4718 from Gallaecio/support-pinned-3.6
...
Upgrade minimum dependencies for Python 3.6 support
2020-08-17 13:54:45 +05:00
Ajay Mittur
a8e08d51cd
Check if file is already present on running `scrapy genspider` and terminate if so ( #4623 )
2020-08-17 10:45:52 +02:00
Eugenio Lacuesta
2aa4f3cbf9
Conditional request attribute binding for responses ( #4632 )
2020-08-17 10:39:59 +02:00
adityaa30
75fe3d1365
fix: increase timeout to 0.5 seconds
...
- In Windows specifically the reactor was left unclean by the
HostnameEndpoint due to the tearDown method of
test_downloader_handlers.py::HttpTestCase due to
which the following 2 tests were failing:
1. test_timeout_download_from_spider_server_hangs
2. test_timeout_download_from_spider_nodata_rcvd
- Increasing the timeout fixed the test (in local)
2020-08-17 04:18:03 +05:30
Aditya
d97cf973dd
Merge branch 'master' of https://github.com/scrapy/scrapy into h2-client-protocol
2020-08-16 11:31:10 +05:30
Aditya
af73f141b2
refactor: move all http2 tests in separate files
2020-08-16 11:26:32 +05:30
Andrey Rakhmatullin
756c368a6b
Use a longer key in mitmproxy-ca.pem.
2020-08-14 22:09:24 +05:00
Adrián Chaves
24ba5a71ac
Maybe the problem is not in the code after all
2020-08-13 06:35:09 +02:00
Adrián Chaves
5f4df622a1
test_utils_iterators.py: support Windows the right way
2020-08-13 05:41:06 +02:00
Adrián Chaves
4c0afb606c
Update permission expectations
2020-08-12 17:45:26 +02:00
Adrián Chaves
125a058340
Do not let umask affect the permissions of startproject-generated files
2020-08-12 17:07:21 +02:00
Adrián Chaves
b1de55d37d
Fix marker syntax
2020-08-12 12:34:40 +02:00
Adrián Chaves
8e393a0b21
Do not change the mitmproxy version for no-3.6 Python versions
2020-08-12 12:29:51 +02:00
Adrián Chaves
394631fc0a
Restore 3.5 support for mitmproxy-based tests
2020-08-12 12:08:09 +02:00
Ajay Mittur
1c4b4cc6b0
Support defining file path based on item in media pipelines ( #4686 )
2020-08-11 14:12:44 +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
aefd43a6c6
Upgrade minimum dependencies for Python 3.6 support
2020-08-11 12:52:54 +02:00
Aditya
c67d6dea31
fix: H2 docs, NotImplementedError for H2 Tunnel
2020-08-11 04:39:41 +05:30
Andrey Rahmatullin
0cf1340c29
Merge pull request #4663 from ajaymittur28/scrapy-check-test
...
Add Tests to `scrapy check` command
2020-08-10 16:18:29 +05:00
Aditya
e0c3019d90
fix: ScrapyProxyH2Agent
...
- add required test cases
BREAKING CHANGES
Presently the tests (in test_downloader_handlers.py)
1. test_download_without_proxy
2. test_download_with_proxy_https_timeout
collide with each other when run together. However, if both of the tests
are ran individually then both pass.
2020-08-09 16:19:35 +05:30
Jose Galdos
13181ba788
Improve http status all on http error middleware
2020-08-06 20:43:16 -05:00
Marc Hernández
336f19f5cc
Change super syntax ( #4707 )
2020-08-04 20:42:01 +02:00
Artur Shellunts
5ec66be4a4
Merge branch 'master' into obsolete-s3feednokeys
2020-07-30 22:18:00 +02:00
Adrián Chaves
890b2138a6
Remove the u prefix from strings
2020-07-30 13:39:30 +02:00
Aditya
a3fecaf07f
test: fix host-name H2DownloadHandler tests
2020-07-30 15:45:27 +05:30
Mikhail Korobov
5e2d1bd187
Merge pull request #4434 from BroodingKangaroo/ISSUE-4250-add_batch_deliveries
...
Feed exports: add batch deliveries
2020-07-29 23:03:28 +05:00
Aditya
e8342996f6
test: H2DownloadHandler
...
Following tests are skipped as Content-Length header not matching the
data received is considered as a ProtocolError
- test_download_broken_content_cause_data_loss
- test_download_broken_chunked_content_cause_data_loss
- test_download_broken_content_allow_data_loss
- test_download_broken_chunked_content_allow_data_loss
- test_download_broken_content_allow_data_loss_via_setting
- test_download_broken_chunked_content_allow_data_loss_via_setting
BREAKING CHANGES
The following tests currently fail
- test_content_length_zero_bodyless_post_request_headers
- test_host_header_seted_in_request_headers
- test_download_with_maxsize_very_large_file
2020-07-29 13:51:01 +05:30
Aditya
92bec38591
feat: MethodNotAllowed405, Content-Length header
...
- add tests to check for Content-Length header
- raise MethodNotAllowed405 when remote send 'HTTP/2.0 405 Method Not
Allowed'
2020-07-29 13:49:14 +05:30
Eugenio Lacuesta
5265853937
Use ItemAdapter.field_names when writing header in CsvItemExporter ( #4668 )
2020-07-28 11:15:14 +02:00
Aditya
3685e99cca
test: http2 connection timeout
2020-07-22 14:47:20 +05:30
Aditya
316620b517
chore: pass spider as argument for request method
...
- download_maxsize and download_warnsize can now be extracted from the
spider directly and passed to the stream
- remove `partial` flag from the response as per RFC 7540 - Section
8.1.2.6
2020-07-22 13:57:49 +05:30
Artur Shellunts
430d22e46e
Remove not used import warnings
2020-07-21 23:39:04 +02:00
nyov
2829cd4268
Allow use without credentials
2020-07-21 23:38:02 +02:00
nyov
98e8086d1b
Adapt S3FeedStorage testcase
2020-07-21 23:38:02 +02:00
nyov
ece4fa6c7c
Fix ignored testcase: boto is never installed
2020-07-21 23:38:01 +02:00
Andrey Rahmatullin
f3372a3753
Merge pull request #4254 from elacuesta/spider.parse
...
Change Scraper API to call internal `_parse` method
2020-07-21 17:37:54 +05:00
Akshay Sharma
de297a3a16
enable ANSI color (instead of ANSI color codes) in the Windows terminal #4393 ( #4403 )
...
* changed ie. -> i.e.(spelling error) on lines 667, 763 (issue scrapy#4332)
* updated all text files for issue #4332 (ie. -> i.e.)
* Apply ie. → i.e. in source comments
* ie → e.g.
* modified scrapy/utils/display.py to stop ANSI color sequences in the Windows terminal (issue #4393 )
* modified scrapy/utils/display.py to stop ANSI color sequences in the Windows terminal (issue #4393 )
* enabled virtual terminal processing (pr #4403 )
* check for specific windows 10 version (pr #4403 )
* fixing flake-8 test (pr #4403 )
* added error handling for terminal info (pr #4403 )
* corrected stderr (pr #4403 )
* changed orientation, removed unwanted spaces (pr #4403 )
* no need for style variable (pr #4403 )
* fixing trailing whitespaces
* commenting windows check
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* small fixes
* Shifting _color_support_info() function
* enabled virtual terminal processing (pr #4403 )
* check for specific windows 10 version (pr #4403 )
* fixing flake-8 test (pr #4403 )
* added error handling for terminal info (pr #4403 )
* corrected stderr (pr #4403 )
* changed orientation, removed unwanted spaces (pr #4403 )
* no need for style variable (pr #4403 )
* fixing trailing whitespaces
* commenting windows check
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* Update scrapy/utils/display.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
* small fixes
* Shifting _color_support_info() function
* error handling
* error handlingy
* raise ValueError
* added in-built function for version comparison
* recommit changes
* changed check -> parse
* version comparison -> parse_version
* added scrapy/utils/display.py in pytest.ini
* Trigger
* Add simple test for scrapy.utils.display._colorize
* Flake8: E501 for tests/test_utils_display.py
* assertEquals -> assertEqual
* Normal formatter for all platforms
* separate test for windows
* all curses under try block
* added global TestStr
* more test added
* small fix
* covering exceptions
* windows test failing
* Refactor output color handling
* Fix pprint test
* fix flake8
Co-authored-by: Adrián Chaves <adrian@chaves.io>
Co-authored-by: Eugenio Lacuesta <eugenio.lacuesta@gmail.com>
2020-07-20 17:23:38 +05:00
BroodingKangaroo
3e0492741d
Another try to fix test errors on Windows
2020-07-19 00:10:29 +03:00
BroodingKangaroo
86f7ac2f2b
Try to fix error at Windows
2020-07-17 18:22:47 +03:00
Artur Shellunts
62a4ede5e9
Remove deprecated classes BaseSgmlLinkExtractor, RegexLinkExtractor and SgmlLinkExtractor ( #4356 )
2020-07-17 12:40:04 +02:00
Adrián Chaves
d29bec60d7
Upgrade PyPy for CI, and test both 3.5 (oldest) and 3.6 (newest) ( #4504 )
...
* Upgrade PyPy for CI, and test both 3.5 (oldest) and 3.6 (newest)
* Log a detailed error message to discover why MockServer is not working
* Go for all lines!
* Disable tests based on mitmproxy while running on PyPy
* Fix test_get_func_args for PyPy 3.6+
* Make testPayloadDefaultCiphers work regardless of OpenSSL default ciphers
* Crossing fingers…
* Rename: testPayloadDefaultCiphers → testPayloadDisabledCipher
* Test the PyPy version currently documented as the minimum required version
* Fix the PYPY_VERSION tag
* Update the documentation about supported PyPy versions
* Also test the latest 3.5 Python version with PyPy
* Fix the PYPY_VERSION value for the latest 3.5 version
* Use pinned dependencies for asyncio and PyPy tests against oldest supported Python versions
* Fix PyPy installation for the pypy3-pinned Tox environment
* Try installing Cython
* Maybe PyPy requires lxml 3.6.0?
* install.rst: minor clarification
* lxml 4.0.0 is required on PyPy
* Require setuptools 18.5+
* Revert "Require setuptools 18.5+"
This reverts commit 017ec33ac2 .
* Maintain lxml as a dependency if setuptools < 18.5 is used
2020-07-17 02:19:24 +05:00
Mikhail Korobov
9a74a71c63
Merge pull request #4682 from noviluni/remove_python2_reminiscence
...
remove python 2 reminiscence in cookies
2020-07-16 23:58:58 +05:00
Adrián Chaves
c4f9250220
Merge branch 'master' into ISSUE-4250-add_batch_deliveries
2020-07-16 17:44:18 +02:00
Mikhail Korobov
07470e1a3c
Merge pull request #3608 from ejulio/feat-685
...
[MRG+1] Fix for #685 Add Google Cloud Storage Feed Export
2020-07-16 18:11:19 +05:00
Mikhail Korobov
0f2f1acf04
Merge pull request #4458 from scrapy/azure-pipelines
...
Set up CI with Azure Pipelines
2020-07-16 18:09:31 +05:00
Marc
0e0d1ad643
remove python 2 reminiscence in cookies
2020-07-16 14:25:46 +02:00
Júlio César Batista
38496a00b7
Use the itemlaoders library ( #4516 )
2020-07-15 12:08:36 +02:00
Andrey Rahmatullin
eb1bc74417
Merge pull request #4674 from ashellunts/delete_deprecated_htmlparserlinkextractor
...
Remove deprecated class HtmlParserLinkExtractor
2020-07-15 12:51:42 +05:00
Aditya
1dd27a92fa
feat: Idle Timeout for H2Connection (240s)
2020-07-14 22:46:32 +05:30
Artur Shellunts
ed5247ca4c
Remove htmlparser.py from tests/ignore.txt
2020-07-14 18:06:11 +02:00
Adrián Chaves
6e119bd3e3
Merge branch 'master' into azure-pipelines
2020-07-14 11:26:19 +02:00
Aditya
aeaeb7385b
feat: assert negotiated protocol as h2
...
- implement IHandshakeListener in H2ClientProtocol to know when
handshake is completed
- implement IProtocolNegotiationFactory in H2ClientFactory to provide
information about the acceptableProtols (h2) during NPN or ALPN protocol
2020-07-14 03:55:14 +05:30
Adrián Chaves
544c1f6e39
Fix the issue
2020-07-13 16:30:34 +02:00
Adrián Chaves
0770961054
Write a test for #4665
2020-07-13 16:05:57 +02:00
Adrián Chaves
53c323b19d
_is_path → _is_filesystem_path
2020-07-13 15:29:30 +02:00
Adrián Chaves
d54c4496ee
Refactor guess_scheme
2020-07-13 14:37:08 +02:00
Andrey Rahmatullin
0ebba175ea
Merge pull request #4666 from Gallaecio/execution-access
...
Fix permission handling on project generation from template files
2020-07-13 16:01:06 +05:00
Andrey Rahmatullin
b6f8693db9
Merge pull request #4673 from elacuesta/remove-backslash
...
Remove backslash
2020-07-13 11:14:00 +05:00
Aditya
64c6af10e1
refactor: use str instead of to_unicode
2020-07-13 00:57:49 +05:30
Aditya Kumar
3f7e8635f4
Allow the parse command to write data to a file ( #4377 )
2020-07-11 08:48:24 +02:00
Eugenio Lacuesta
9aea1f0961
Remove backslash (tests)
2020-07-09 11:04:46 -03:00
Eugenio Lacuesta
2be2bdd2df
Merge remote-tracking branch 'upstream/master' into spider.parse
2020-07-08 14:00:54 -03:00
ajaymittur28
75bff7b6d3
Update url contract value
2020-07-08 19:48:42 +05:30
Aditya
2ea7d82534
feat: H2ClientFactory
2020-07-08 18:57:13 +05:30
ajaymittur28
3e98ed24b6
Convert f-string to .format()
2020-07-08 17:13:57 +05:30
Ajay Mittur
b6d4f28ea7
Merge branch 'master' into scrapy-check-test
2020-07-08 15:13:37 +05:30
Adrián Chaves
7e38615703
Remove unused import
2020-07-07 15:30:19 +02:00
Adrián Chaves
ca77ca1f75
Generate read-only files on the fly
2020-07-07 14:44:03 +02:00
Adrián Chaves
e1450799ce
Remove debug test case variable
2020-07-07 14:11:37 +02:00
Adrián Chaves
a3afff4a0e
Fix style issue
2020-07-07 14:11:02 +02:00
Adrián Chaves
79b4dfc53e
Fix permission handling on project generation from template files
2020-07-07 14:07:04 +02:00
Aditya
1c40dfa740
fix: handle CONNECTION_LOST & RESET separately
2020-07-07 15:36:41 +05:30
ajaymittur28
770a8127e8
Added basic `scrapy check` tests
2020-07-07 15:23:29 +05:30
Adrián Chaves
17aec5944c
Update tests/CrawlerRunner/ip_address.py
...
Co-authored-by: Eugenio Lacuesta <1731933+elacuesta@users.noreply.github.com>
2020-07-06 10:47:25 +02:00
Adrián Chaves
ec06cf79a6
Update tests/CrawlerRunner/ip_address.py
...
Co-authored-by: Eugenio Lacuesta <1731933+elacuesta@users.noreply.github.com>
2020-07-06 10:47:11 +02:00
Aditya
a94b30342a
test: reduce test data size to 1MB
2020-07-06 12:49:12 +05:30
BroodingKangaroo
6454d456d2
Make check of placeholder less strict
2020-07-03 10:24:13 +03:00
Adrián Chaves
eb93774256
TrackrefTestCase.test_get_oldest: protect from lack of precision
2020-07-03 01:41:47 +02:00
Adrián Chaves
3199048520
Complete Azure Pipelines CI setup
2020-07-03 00:56:24 +02:00
Adrián Chaves
6e58da1dcd
Merge branch 'master' into azure-pipelines
2020-07-02 17:49:42 +02:00
BroodingKangaroo
1e245046ed
Change setting name. Add leading zeroes to batch_id. Minor fixes.
2020-07-02 12:38:08 +03:00
Aditya
4acdc2e5d6
refactor: use __qualname__, () for large strings
2020-07-01 20:15:33 +05:30
Aditya
c361fe0d3b
feat: check for invalid hostname
...
- Initiating requests having hostname or (ip_address, port) different
from the peer to which HTTP/2 connection is made can lead to closing the
whole connection and close out all the pending streams.
- This change aims to fix that problem
- Add required tests
- Save hostname & port in H2ConnectionMetadataDict
2020-07-01 18:14:44 +05:30
BroodingKangaroo
7b1d3c35ea
Minor updates
2020-07-01 12:24:31 +03:00
ajaymittur28
006a945214
Update schemaless http proxy test
2020-07-01 13:32:58 +05:30
Aditya
7b1ad995a4
test: query params, certificate & ip_address
...
- refactor from str.format() to f-strings
2020-07-01 10:45:36 +05:30
Aditya
50dd9271b4
fix: disable redundant logs
...
- while testing the job exceeded the maximum log length
and was terminated
- reduce the number of requests from 20 to 10
2020-06-30 07:36:56 +05:30
Aditya
26ab3e4137
feat: FIFO policy to handle large no. of requests
...
- add required test -- test by sending 1000 requests
- increase test timeout to 180 seconds to account for tests taking long
time
2020-06-30 06:44:20 +05:30
Aditya
d17417b03a
Merge branch 'master' of https://github.com/scrapy/scrapy into h2-client-protocol
2020-06-29 18:43:42 +05:30
Aditya Kumar
e46b47c365
Renew the localhost certificate for tests ( #4650 )
...
Validity
Not Before: Jun 28 12:54:15 2020 GMT
Not After : Jun 28 12:54:15 2021 GMT
Subject: C = IE, O = Scrapy, CN = localhost
2020-06-29 15:05:13 +02:00
Aditya
90a7007f88
test: warnsize logs, no content header, dataloss
2020-06-29 18:29:31 +05:30
Marc Hernández
464f24f8c1
Add --data-raw to utils.curl and fix missing method with data ( #4612 )
2020-06-29 14:20:29 +02:00
Aditya
690dd7f38b
test: GET & POST request test for h2 client
...
- Remove repeated dependency Twisted from setup.py
- Test for both GET & POST when
- Only 1 request
- Large number (=20) of requests
and
- Small Data (10 KB) per request
- Large Data (10 MB) per request
- Test when request is cancelled by the client'
BREAKING CHANGES
Tests raises OpenSSL.SSL.Error when run using tox. However, all tests
passes when ran using `python -m unittest`.
2020-06-28 16:38:49 +05:30
BroodingKangaroo
05c2587c6a
Docs update and tiny fixes
2020-06-28 09:45:45 +03:00
ajaymittur28
f53f06020b
Test http schemaless proxy
2020-06-27 23:28:40 +05:30
BroodingKangaroo
88a52198b9
Add batch_item_count support in FEEDS setting
2020-06-27 12:45:08 +03:00
BroodingKangaroo
c3cee74fd4
Change default value of FEED_STORAGE_BATCH_ITEM_COUNT to 0
2020-06-26 18:45:21 +03:00
BroodingKangaroo
77333666f1
resolve conflicts
2020-06-26 14:55:46 +03:00
Aditya
065b3153fe
Merge branch 'master' of https://github.com/scrapy/scrapy into h2-client-protocol
2020-06-24 07:51:41 +05:30
Aditya
a97ac0adf8
test: GET request for HTTP2Client using mockserver
2020-06-24 06:40:20 +05:30
Lukas Anzinger
3672f5f988
Spider constructor expects name as argument, not start_urls.
...
Fixes #4644
2020-06-23 14:56:12 +02:00
Eugenio Lacuesta
c7f1c7e3f3
Merge branch 'master' into feat-685
2020-06-19 21:30:54 -03:00
Stanislau Hluboki
a4bfd5ab6f
Fix duplicated feed logs
2020-06-19 17:51:56 +03:00
Adrián Chaves
f9c63384c0
Merge branch 'master' into allow-customizing-export-column-names
2020-06-18 14:09:20 +02:00
Aditya
700df3eeb7
test: mockserver with h2 protocol for tests
...
- add Twisted[http2] in setup.py requirements
- add test_protocol.py to test the current implementation
BREAKING CHANGES
test_download times out because of no protocol negotiated between
Mockserver and HTTP/2 client
2020-06-17 21:02:14 +05:30
Stas Glubokiy
3d027fb578
Fix missing storage.store calls in FeedExporter.close_spider ( #4626 )
2020-06-17 17:08:14 +02:00
Eugenio Lacuesta
ec98dabfab
Support for dataclass and attrs items ( #3881 )
2020-06-14 11:45:27 +02:00
Eugenio Lacuesta
91e505edfe
Return single element from coroutine callback ( #4609 )
2020-06-02 10:32:14 +02:00
Bulat Khabibullin
5cef927944
Implement TextResponse.json() ( #4574 )
2020-06-01 06:57:23 +02:00
Mikhail Korobov
13215cfb71
Merge pull request #4559 from elacuesta/cancel-request-download
...
Stop response download from signal handler
2020-05-27 21:46:00 +05:00
Andrey Rahmatullin
ff699eb1f8
Merge pull request #4599 from elacuesta/LocalWeakReferencedCache-getitem-fix
...
Fix KeyError in LocalWeakReferencedCache
2020-05-27 21:42:04 +05:00
Andrey Rahmatullin
7bf375098e
Merge pull request #2400 from elacuesta/keep_cookie_header
...
[MRG+1] CookiesMiddleware: keep cookies from 'Cookie' request header, fix encoding
2020-05-27 21:41:43 +05:00
Eugenio Lacuesta
44d5801b05
Fix KeyError in LocalWeakReferencedCache
2020-05-27 11:15:33 -03:00
Eugenio Lacuesta
492197e477
StopDownload: store response in the exception instead of the failure
2020-05-27 10:45:07 -03:00
Eugenio Lacuesta
634ad5ebca
Merge remote-tracking branch 'upstream/master' into cancel-request-download
2020-05-27 10:27:45 -03:00
Kyle Altendorf
5b2af85289
Link to issue describing troublesome pytest versions
2020-05-22 15:09:58 -04:00
Eugenio Lacuesta
f6ed5edc31
CookiesMiddleware: keep cookies from 'Cookie' request header
2020-05-21 11:07:41 -03:00
BroodingKangaroo
677e619d37
Fix too long lines
2020-05-21 14:57:03 +03:00
BroodingKangaroo
5f6c1dceb1
Merge remote-tracking branch 'upstream/master' into ISSUE-4250-add_batch_deliveries
2020-05-21 12:43:04 +03: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
Kyle Altendorf
eb8493f09c
Incompatible with pytest 5.4 and 5.4.1
2020-05-20 09:21:34 -04:00
Mikhail Korobov
febe82a907
Merge pull request #4486 from ilias-ant/add-file-status-on-media-pipelines-file-info
...
Add status (downloaded, uptodate) to files information
2020-05-18 22:30:30 +05:00
Mikhail Korobov
314adf6c38
Merge pull request #4237 from elacuesta/flake8-max-line-length
...
Set flake8-max-line-length to 119
2020-05-16 03:26:45 +05:00
Mikhail Korobov
14612fc3d3
Merge pull request #4534 from elacuesta/deprecate-baseitem
...
Deprecate scrapy.item.BaseItem
2020-05-16 03:24:06 +05:00
BroodingKangaroo
10ae1a284f
Minor fixes
2020-05-15 22:50:54 +03:00
Adrián Chaves
36c3c9713e
Run tests with Python 3.5.0 ( #4518 )
...
* Run tests with Python 3.5.0
* Use Ubuntu Trusty 14.04 to test Python 3.5.0
* Use mitmproxy<3.0.0 on Python 3.5.0
* Skip tests requiring mitmproxy in Python 3.5.0
* Change the minimum Python version from 3.5 to 3.5.1
* Do not prevent Scrapy from working with Python 3.5.0
* Force system Python 3.5.1
* Do not install a non-system Python in Python 3.5.1 jobs
* Switch to Trusty to be able to test Xenial’s Python version ¯\_(ツ)_/¯
* Add missing trusty
* Stop breaking old PyPy
* Allow installing Scrapy on Python 3.5.0
2020-05-15 22:37:56 +05:00
Eugenio Lacuesta
3eeecb4273
Merge branch 'master' into flake8-max-line-length
2020-05-15 11:11:20 -03:00
Marc Hernández
fffb0a5b6a
replace set constructor with set literals ( #4573 )
2020-05-15 15:23:09 +02:00
BroodingKangaroo
0627bf476e
Merge remote-tracking branch 'upstream/master' into ISSUE-4250-add_batch_deliveries
2020-05-14 20:59:22 +03:00
Eugenio Lacuesta
ee13c3e95f
Merge branch 'master' into deprecate-baseitem
2020-05-14 13:31:16 -03:00
Eugenio Lacuesta
89d0c98f7a
Merge remote-tracking branch 'upstream/master' into flake8-remove-e128
2020-05-14 11:35:30 -03:00
Eugenio Lacuesta
df8a1d1c01
Flake8: Remove E741
2020-05-14 10:40:50 -03:00
BroodingKangaroo
111a58fe3d
Merge remote-tracking branch 'upstream/master' into ISSUE-4250-add_batch_deliveries
2020-05-14 09:53:14 +03:00
Adrián Chaves
e31b6ccc45
Merge branch 'master' into flake8-remove-e128
2020-05-13 22:39:45 +02:00
BroodingKangaroo
2327ecead0
Rename FEED_STORAGE_BATCH_SIZE to FEED_STORAGE_BATCH_ITEM_COUNT
2020-05-13 22:50:04 +03:00
Adrián Chaves
7dac99bb12
Merge branch 'master' into deprecate-baseitem
2020-05-13 20:35:03 +02:00
Andrey Rahmatullin
519f752d6d
Merge pull request #4566 from elacuesta/flake8-remove-f841
...
Flake8: remove F841
2020-05-13 11:46:48 +05:00
Aditya Kumar
97532a9144
test(spiderloader): no duplicate spider names ( #4560 )
2020-05-12 17:10:09 +02:00
willbeaufoy
cf9be5344a
Prevent create_instance() returning None ( #4532 )
...
Currently create_instance() can return None if an extension is
incorrectly implemented, but the extension will still show up as
enabled in the logs. This can cause confusion, as in the linked bug.
This change prevents this occurring by throwing an error if
create_instance() will return None.
2020-05-11 20:35:25 +02:00
nsirletti
cb8140a42a
Deprecate Response.body_as_unicode() ( #4555 )
...
Co-authored-by: Nicolas Sirletti <n.sirletti@gmail.com>
2020-05-11 20:20:31 +02:00
Eugenio Lacuesta
6f8758624c
Flake8: remove F841
2020-05-11 13:50:34 -03:00
Eugenio Lacuesta
25e9bc2d0d
Merge branch 'master' into flake8-remove-e128
2020-05-11 13:23:57 -03:00
Eugenio Lacuesta
fb7ba6964d
Merge branch 'master' into deprecate-baseitem
2020-05-11 10:21:56 -03:00
Mikhail Korobov
892467cb8a
Merge pull request #4541 from elacuesta/pickle-adjustments
...
Pickle: use protocol 4, update tests
2020-05-11 15:16:14 +05:00
Mikhail Korobov
b183579564
Merge pull request #4205 from elacuesta/bytes_received_signal
...
Add bytes_received signal
2020-05-11 15:09:55 +05:00
Eugenio Lacuesta
9485724d98
Merge branch 'master' into deprecate-baseitem
2020-05-08 19:32:47 -03:00
Eugenio Lacuesta
be39f274b8
Merge branch 'master' into flake8-remove-e128
2020-05-08 18:33:29 -03:00
Mikhail Korobov
333910f6c8
Merge pull request #4554 from elacuesta/linkextractor-remove-lambdas
...
Remove lambda attributes in default link extractor
2020-05-09 02:11:59 +05:00
Eugenio Lacuesta
c2c3054ac1
Flake8: remove E121
2020-05-08 16:43:47 -03:00
Eugenio Lacuesta
3ebf2a0d82
Remove lambdas in link extractor
2020-05-08 15:24:37 -03:00
Antonio Gordillo Toledo
cf09af787e
Remove Python 2 encoding header from files ( #4553 )
2020-05-08 15:45:19 +02:00
Eugenio Lacuesta
6160370927
Merge remote-tracking branch 'upstream/master' into deprecate-baseitem
2020-05-07 14:38:54 -03:00
Eugenio Lacuesta
5256eae60d
Meta class to handle isinstance checks for BaseItem
2020-05-07 14:37:41 -03:00
Eugenio Lacuesta
8b4485134e
Merge branch 'flake8-remove-e126' into flake8-remove-e128
2020-05-07 12:50:20 -03:00
Eugenio Lacuesta
8659b0d896
Merge remote-tracking branch 'upstream/master' into flake8-remove-e126
2020-05-07 09:24:38 -03:00
Mikhail Korobov
a8f61e909f
Merge pull request #4544 from elacuesta/flake8-remove-e129
...
Flake8: remove E129
2020-05-07 15:08:11 +05:00
Mikhail Korobov
a18bfccac2
Merge pull request #4542 from elacuesta/flake8-remove-e122-e124
...
Flake8: remove E122 and E124
2020-05-07 15:05:01 +05:00
Eugenio Lacuesta
7fd2085725
Merge remote-tracking branch 'upstream/master' into bytes_received_signal
2020-05-06 22:41:16 -03:00
Eugenio Lacuesta
d472402a02
Fix pickle test for pypy
2020-05-06 20:30:22 -03:00
Eugenio Lacuesta
881b4f417f
Flake8: Remove E128 (tests, part 3)
2020-05-06 19:33:22 -03:00
Eugenio Lacuesta
bf56517abf
Flake8: Remove E128 (tests, part 2)
2020-05-06 19:18:29 -03:00
Mikhail Korobov
2da952b928
Merge pull request #4519 from Gallaecio/test-ubuntu-bionic
...
Test the latest Ubuntu along the latest Python
2020-05-07 03:12:19 +05:00
Eugenio Lacuesta
9c6d13075a
Flake8: Remove E128 (tests, part 1)
2020-05-06 18:56:14 -03:00
Eugenio Lacuesta
25eeb77ba6
Merge remote-tracking branch 'upstream/master' into flake8-max-line-length
2020-05-06 16:52:17 -03:00
Eugenio Lacuesta
88efc98847
Flake8: remove E129
2020-05-06 16:42:47 -03:00
Eugenio Lacuesta
4c12a234ae
Flake8: Remove E126
2020-05-06 16:10:21 -03:00
Eugenio Lacuesta
cc23d1cb58
Flake8: Remove E124
2020-05-06 15:40:37 -03:00
Eugenio Lacuesta
d71804ef29
Flake8: Remove E122
2020-05-06 15:23:36 -03: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
Eugenio Lacuesta
0e382c8160
Remove unused import
2020-05-06 14:09:10 -03:00
Eugenio Lacuesta
93436f9d3a
Chain pickling exception, test_squeues.py updates
2020-05-06 14:05:27 -03:00
Eugenio Lacuesta
b1ddd7bd7b
Refactor test_squeues.py
2020-05-06 13:44:02 -03:00
Eugenio Lacuesta
8643e8d355
Flake8: remove E123 (Closing bracket does not match indentation of opening bracket's line)
2020-05-06 12:26:04 -03:00
Eugenio Lacuesta
63600243e0
Flake8: remove E125 (Continuation line with same indent as next logical line)
...
Also remove E401 from pytest.ini - no occurrences in the codebase
2020-05-06 10:26:52 -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
98835a0d40
Merge branch 'master' into test-ubuntu-bionic
2020-05-06 13:59:01 +02:00
Eugenio Lacuesta
17c0cf64ae
Flake8: remove W504 code ( #4525 )
...
Co-authored-by: Mikhail Korobov <kmike84@gmail.com>
2020-05-06 00:14:48 +02:00
Eugenio Lacuesta
7988c676a9
Update Item docstring, update BaseItem occurrences
2020-05-05 13:11:01 -03:00
Eugenio Lacuesta
622ce86066
Test: make sure scrapy.item.Item does not issue a deprecation warning
2020-05-04 16:22:24 -03:00
Eugenio Lacuesta
f75941f79d
Deprecate scrapy.item.BaseItem
2020-05-04 08:53:32 -03:00
BroodingKangaroo
dad2ea7522
Change time_id to batch_time
2020-05-02 01:21:03 +03:00
Eugenio Lacuesta
4d625afda5
Merge branch 'master' into bytes_received_signal
2020-05-01 16:11:32 -03:00
BroodingKangaroo
3f9874fac9
Add test s3 export
2020-05-01 11:52:16 +03:00
Eugenio Lacuesta
f787b8483c
IPv6 test: check for the absence of DNSLookupError
2020-04-28 17:50:06 +02:00
BroodingKangaroo
a18621552f
Merge branch 'master' of https://github.com/BroodingKangaroo/scrapy into ISSUE-4250-add_batch_deliveries
2020-04-27 10:34:36 +03:00
BroodingKangaroo
f0f1be76d1
Using time_id instead of time as a timestamp
2020-04-27 09:56:57 +03:00
Eugenio Lacuesta
efb6f13deb
Remove assertions from production code ( #4440 )
2020-04-23 12:40:10 +02:00
Eugenio Lacuesta
1fecacbb1a
IPv6 test: check for the absence of DNSLookupError
2020-04-20 12:05:15 -03:00
ilias-ant
773ddf77ba
added more tests to cover the (downloaded, uptodate, cached) status functionality
2020-04-19 14:14:17 +03:00
BroodingKangaroo
ec76445dd6
Update tests
2020-04-18 09:29:23 +03:00
Mikhail Korobov
209ab05315
Merge pull request #4500 from victor-torres/reference-callback
...
Serialize requests with callback references as spider attribute
2020-04-17 18:58:28 +05:00
Victor Torres
1ade3fc723
trying to improve test coverage
2020-04-17 10:34:34 -03:00
Eugenio Lacuesta
7926da4bd0
Merge branch 'master' into flake8-max-line-length
2020-04-16 16:05:09 -03:00
Mikhail Korobov
cf39602c30
Merge pull request #4471 from elacuesta/fix-pycodestyle-e731
...
Fix pycodestyle E731 ("do not assign a lambda expression, use a def")
2020-04-16 23:17:31 +05:00
Adrián Chaves
ea3e675801
test_utils_iterators: use os.linesep
2020-04-16 17:10:45 +02:00
Adrián Chaves
cf41803089
Skip test_reactor_poll on Windows
2020-04-16 17:07:29 +02:00
Adrián Chaves
7cc9601029
Improve reporting on test_ipv6_alternative_name_resolver
2020-04-16 16:57:48 +02:00
Eugenio Lacuesta
c922992277
Tests: Move code inside __main__ block
2020-04-16 11:37:37 -03:00
Eugenio Lacuesta
1f2e2a6006
Merge branch 'master' into response_ip_address
2020-04-16 11:32:37 -03:00
Victor Torres
e0921cab66
remove not used code
...
This code is not needed anymore because we're getting the
already mangled name when matching func with spider attributes.
2020-04-16 11:18:59 -03:00
Adrián Chaves
94ee68695a
Mock server: use 127.0.0.1 also for HTTPS
...
Windows throws an error about 0.0.0.0 being external:
https://stackoverflow.com/a/23857995/939364
2020-04-16 15:37:06 +02:00
Adrián Chaves
1d77eac950
Fix Flake8-reported issues
2020-04-16 14:57:55 +02:00
BroodingKangaroo
5980ae72c6
Some minor fixes and refactoring
2020-04-16 10:13:39 +03:00
Victor Torres
47a992615a
serialize requests with callback references as spider attribute
...
You could define a spider attribute that references a callback method
but if this method has a different name than your spider attribute,
the request serializer is not able to find it on the spider class.
With this commit we're fixing this behavior as we're searching for
callback references in the spider object itself instead of looking
for attributes with the same function's name, that could be different.
2020-04-15 20:03:58 -03:00
BroodingKangaroo
16836e9e77
Merge branch 'ISSUE-4250-add_batch_deliveries' of https://github.com/BroodingKangaroo/scrapy into ISSUE-4250-add_batch_deliveries
2020-04-16 00:41:21 +03:00
BroodingKangaroo
963580463b
Update tests
2020-04-15 23:39:46 +03:00
BroodingKangaroo
39d0d13d3f
Add partial deliveries tests
2020-04-15 23:38:27 +03:00
Adrián Chaves
2f510fd47d
Fix ShellTest.test_local_file on Windows
2020-04-15 21:10:05 +02:00
Mikhail Korobov
2d46777d0a
Merge pull request #4489 from elacuesta/remove-returnValue-function
...
Remove twisted.internet.defer.returnValue occurrences
2020-04-15 22:45:52 +05:00
Adrián Chaves
c28dd0cedb
Merge branch 'master' into duplicate_key
2020-04-15 16:22:59 +02:00
Eugenio Lacuesta
01d73dd3f0
Merge branch 'master' into flake8-max-line-length
2020-04-15 09:24:33 -03:00
Adrián Chaves
d323a57381
Merge branch 'master' into fix-pycodestyle-e731
2020-04-15 14:16:15 +02:00
Eugenio Lacuesta
94d7ad76cb
Fix pycodestyle E2XX (whitespace) ( #4468 )
2020-04-15 14:11:37 +02:00
Eugenio Lacuesta
4023d5db33
Replace _DefGen_Return exception handling
...
Handle StopIteration instead
2020-04-13 06:35:26 -03:00
Eugenio Lacuesta
1bd8f392c9
Initial removal of twisted.internet.defer.returnValue
2020-04-13 06:12:30 -03:00
ilias-ant
83a0cc6cdf
Add status to files information
2020-04-12 23:22:17 +03:00
Eugenio Lacuesta
950a52468c
Merge branch 'master' into flake8-max-line-length
2020-04-10 15:24:22 -03:00
Eugenio Lacuesta
2265c1fda9
Merge branch 'master' into fix-pycodestyle-e731
2020-04-10 14:32:30 -03:00
Eugenio Lacuesta
c4a5e3f0da
Simplify bytes_received signal
...
Remove "source" parameter
2020-04-06 09:26:13 -03:00
Eugenio Lacuesta
e3342669ae
Merge branch 'master' into bytes_received_signal
2020-04-06 09:17:35 -03:00
Eugenio Lacuesta
4270e0a0da
Fix E731: do not assign a lambda expression
2020-04-04 21:54:55 -03:00
Eugenio Lacuesta
e2d5d357a7
Fix pycodestyle E502
2020-04-01 14:24:30 -03:00
Adrián Chaves
bdb28ac600
Merge remote-tracking branch 'origin/sybil' into azure-pipelines
2020-03-30 20:25:40 +02:00
Adrián Chaves
3fb0027138
Require sybil ≥ 1.3.0 for tests
2020-03-28 17:36:50 +01:00
Daniel Graña
02206e5ffe
Run tox
2020-03-27 02:20:39 -03:00
Eugenio Lacuesta
182394bcec
E501 compliance (tests)
2020-03-22 23:29:30 -03:00
Eugenio Lacuesta
34d607194b
Merge branch 'master' into feat-685
2020-03-18 21:24:36 -03:00
elacuesta
dfbe1d9507
Remove object base class ( #4430 )
2020-03-16 20:12:46 +01:00
Andrey Rahmatullin
ecd3a976d2
Merge pull request #4398 from nyov/remove-crawler-spiders
...
Remove deprecated Crawler.spiders property
2020-03-16 17:21:07 +05:00
Eugenio Lacuesta
aa6075e08c
Merge branch 'master' into bytes_received_signal
2020-03-15 18:05:04 -03:00
Eugenio Lacuesta
bde0384dfd
Merge branch 'master' into spider.parse
2020-03-14 19:53:36 -03:00
Adrián Chaves
3f6cdcabce
Restrict pytest to versions prior to 5.4
2020-03-13 13:25:53 +01:00
Lukas Anzinger
ccc4d88779
Ignore a domain in allowed_domains with port and issue a warning ( #4413 )
2020-03-12 20:42:14 +01:00
nyov
3b0820d747
Deprecate Spider.make_requests_from_url, part 2 ( #4412 )
2020-03-12 20:15:49 +01:00
Mikhail Korobov
db9198bc20
Merge pull request #4409 from nyov/remove-deprecation-warning
...
Remove a 'twisted.test.proto_helpers' deprecation warning
2020-03-12 18:46:47 +05:00
Eugenio Lacuesta
8d30dc0888
Response.follow_all: return empty generators for empty sequences
2020-03-12 09:36:15 -03:00
Andrey Rahmatullin
388f23c30c
Merge pull request #3858 from elacuesta/multiple_feed_export_formats
...
[MRG+1] Support for exporting to multiple feeds in a single crawl
2020-03-12 14:31:57 +05:00
Eugenio Lacuesta
21f1eddc90
Merge branch 'master' into bytes_received_signal
2020-03-11 21:16:35 -03:00
Eugenio Lacuesta
f3bab819ab
Add tests for scrapy.utils.conf.feed_complete_default_values_from_settings
2020-03-11 20:57:31 -03:00
Eugenio Lacuesta
ac73bcc79c
Merge branch 'master' into response_ip_address
2020-03-08 22:30:59 -03:00
Lukas Anzinger
9d9dea0d69
Fix handling of None in allowed_domains.
...
Nones in allowed_domains ought to be ignored and there are also tests
for that scenario. This commit fixes the handling of None and also the
accompanying tests which are now executed again.
2020-03-07 20:34:18 +01:00
nyov
915e363db5
Remove a 'twisted.test.proto_helpers' deprecation warning
2020-03-07 18:03:25 +00:00
Eugenio Lacuesta
ada37c5409
Export to multiple formats in a single crawl
2020-03-05 09:33:57 -03:00
nyov
b1566a6962
Remove deprecated Crawler.spiders property
...
Deprecated since 419026615 (2014, Scrapy 0.25)
2020-03-04 21:23:42 +00:00
Eugenio Lacuesta
3aa5eab993
Merge branch 'master' into response_ip_address
2020-03-03 13:53:43 -03:00
nyov
1b591ff061
Obsolete deprecated settings
...
Obsolete REDIRECT_MAX_METAREFRESH_DELAY
which has been deprecated since Scrapy 0.18
Obsolete LOG_UNSERIALIZABLE_REQUESTS
which has been deprecated since Scrapy 1.2.0
and is replaced by SCHEDULER_DEBUG
2020-03-03 14:03:30 +00:00
Adrián Chaves
6aa0ba4553
Write release notes for Scrapy 2.0.0 ( #4329 )
2020-03-03 09:11:11 +01:00
sakshamb2113
c411a51f42
Fix random failures from test_fixed_delay in some machines ( #4372 )
2020-02-28 13:17:02 +01:00
Adrián Chaves
9aae4c0be7
Add tests for envvar setting warnings
2020-02-27 16:31:43 +01:00
gunblues
034e2c31c7
Use a non-zero exit code when a pipeline's open_spider method throws an exception ( #4207 )
...
* fix issue 4175 - Scrapy does not use a non-zero exit code when pipeline's open_spider throws the exception
* remove extra blank lines
* remove redundant code
* remove blank line at end of file
* more suitable naming for response and make if-condition shorter
* avoid error - AttributeError: 'Deferred' object has no attribute 'result'
* use getattr to make code concisely
* add test
* remove useless file
* modify test class name
* remove unneccessary files
* Fix Flake8-reported issue
* fix these items which are suggested by Gallaecio
・Sort those imports at tests/test_cmdline_crawl_with_pipeline/__init__.py
・Remove the unused setUp method.
・Remove comments generated by Scrapy’s project generation tool.
・Remove the [deploy] section from the scrapy.cfg file (I don’t think it’s needed here)
・Remove BOT_NAME and NEWSPIDER_MODULE from settings.py (I think there are not needed either, although I’m less sure about NEWSPIDER_MODULE)
* have to reserve BOT_NAME, SPIDER_MODULES in settings.py
* Remove unneeded empty lines
* Empty __init__.py file with unneeded comments
* Remove an unneeded empty line at the end
* Remove unneeed empty line from __init__.py file
* Update __init__.py
* Update __init__.py
* Update exception.py
* Update normal.py
* Update __init__.py
* Update __init__.py
* fix W391 blank line at end of file
Co-authored-by: Adrián Chaves <adrian@chaves.io>
2020-02-26 00:46:05 +05:00
Eugenio Lacuesta
889b471852
Import changes
2020-02-23 18:40:43 -03:00
Eugenio Lacuesta
a44942d27d
Merge branch 'master' into response_ip_address
2020-02-23 18:13:52 -03:00
Mikhail Korobov
49480225d7
Merge pull request #4365 from noviluni/fix_flake8_E701_E271
...
Fix flake8 E131, E211, E251, E271, E701
2020-02-23 15:52:52 +05:00
elacuesta
9d983c1b99
Expose certificate for HTTPS responses ( #4054 )
...
* Expose certificate for HTTPS responses
* Fix test (missing inlineCallbacks decorator)
* Note about Response.certificate
* Explicitly cover None as the default value of Response.certificate
Co-authored-by: Adrián Chaves <adrian@chaves.io>
2020-02-22 17:20:31 +05:00
Vostretsov Nikita
67ee0b097f
Remove specifics of downstream request queues from scheduler ( #3884 )
...
* move serialization/deserialization logic to downstream queues
* make memory queues conform to common interface
* make ScrapyPriorityQueue conform common interface
* ScrapyPriorityQueue works with disk
* make key as string
* return list instead of dict as earlier
* downloader aware pq works with new interface
* we don`t need these methods anymore
* create directories for files
* remove dummy priority
* remove priority as parameter, let every queue decide for itself
* rename obj to request
* DownloaderAwarePriorityQueue is too thin wrapper around _SlotPriorityQueues, just remove second one
* remove priority as parameter, let every queue decide for itself
* rename argument
* more granular class separation
* python2 compatible
* one more argument for common interface
* more simple downstream queue interface
* single place for easier customization
* rename function
* shorter
* shorter
* use named arguments
* fix typo
* add docstring
* Update scrapy/pqueues.py
Co-Authored-By: Mikhail Korobov <kmike84@gmail.com>
* Update scrapy/pqueues.py
Co-Authored-By: Mikhail Korobov <kmike84@gmail.com>
* 4 spaces indentation
* we ok with existing directories
* remove unused import
* rename method
* remove unused imports
* it has no sense now
* relining
* note about queues
* add value
* Revert "it has no sense now"
This reverts commit b61604275b .
* pep8 E261
* pep8 E303
* pep8 E501
* pep8 E123
* pep8 E123
* use create instance
* remove excessive import
Co-authored-by: Mikhail Korobov <kmike84@gmail.com>
2020-02-22 17:02:57 +05:00
Marc Hernandez Cabot
6e8e117aee
fix flake E211
2020-02-22 12:32:38 +01:00
Marc Hernandez Cabot
69a8648bef
fix E251
2020-02-22 12:32:38 +01:00
Marc Hernandez Cabot
9ad10bb6f7
fix E131
2020-02-22 12:32:38 +01:00
Marc Hernandez Cabot
b49ece0b87
fix E701 and E271 flake8
2020-02-22 12:32:38 +01:00
Mikhail Korobov
e551bc5170
Merge pull request #4318 from wRAR/asyncio-parse-asyncgen
...
Support yield in async def callbacks.
2020-02-21 23:50:01 +05:00
Marc Hernandez Cabot
6fb85951ce
fix E22X flake8
2020-02-21 08:39:14 +01:00
Marc Hernández
91bbc70bc1
fix E30X flake8 ( #4355 )
2020-02-21 06:05:31 +01:00
Andrey Rahmatullin
88179027de
Merge pull request #4331 from Gallaecio/response-cb-kwargs
...
Implement Response.cb_kwargs
2020-02-19 22:40:14 +05:00
Andrey Rahmatullin
f558df2558
Merge pull request #4188 from elacuesta/logformatter-error-formatting
...
LogFormatter error formatting
2020-02-19 19:05:08 +05:00
Andrey Rahmatullin
528b894f28
Merge pull request #4321 from Gallaecio/link-extractor-encoding
...
Use safe_url_string in link extraction
2020-02-19 18:19:21 +05:00
Adrián Chaves
5834088e67
Apply feedback
2020-02-18 14:18:15 +01:00
Adrián Chaves
43b43654a1
Add tests for meta and cb_kwargs not being available
2020-02-13 22:39:58 +01:00