Mikhail Korobov
d3f8f3d38a
Merge pull request #2612 from redapple/dupe-spider-name-tests
...
[WIP] Add warning on duplicate spider name
2017-03-07 20:08:42 +05:00
Eugenio Lacuesta
c7bb2fa8ce
Feed exports: consistent and backwards compatible behaviour on indent
2017-03-07 11:56:00 -03:00
Eugenio Lacuesta
766b2c8453
Feed exports: enforce difference between None and 0 on indent
...
Also rename params and settings from "indent_width" to just "indent"
2017-03-07 11:56:00 -03:00
Eugenio Lacuesta
7e9153b38d
Feed exports: beautify JSON and XML
2017-03-07 11:56:00 -03:00
Paul Tremberth
0b9a18e1a1
Warn only once for all spiders
2017-03-07 15:41:17 +01:00
Paul Tremberth
978306a223
Fix dupe spider name warning string tests
2017-03-07 14:48:16 +01:00
Paul Tremberth
b6378c7ef6
Revert to using self.assert methods
2017-03-07 12:28:24 +01:00
Konstantin Lopuhin
6f55ca4643
Revert unneeded test_crawl changes
2017-03-07 14:20:52 +03:00
Paul Tremberth
11cdf58abe
Always decompress Content-Encoding: gzip at HttpCompression stage
...
Let SitemapSpider handle decoding of .xml.gz files if necessary
2017-03-07 11:02:46 +01:00
Paul Tremberth
e42b846a9f
Use body to chose response type after decompression content
2017-03-06 23:10:38 +01:00
Paul Tremberth
768f3155e5
Fix referrer policy from response headers and support explicit empty string
2017-03-06 16:20:37 +01:00
Paul Tremberth
0a17f9b55c
Merge pull request #2334 from ArturGaspar/data_uri
...
[MRG+1] data URI download handler.
2017-03-06 13:50:46 +01:00
Paul Tremberth
c68f99eed8
Refactor settings tests
2017-03-03 17:03:25 +01:00
Konstantin Lopuhin
ef04cfd237
Respect log settings in custom_settings: fixes GH-1612
...
A new root logger is installed when a crawler is created
if one was already installed before.
This allows to respect custom settings related to logging,
such as LOG_LEVEL, LOG_FILE, etc.
2017-03-03 18:01:11 +03:00
Paul Tremberth
f7e11b198e
Cleanup
2017-03-03 16:00:59 +01:00
Paul Tremberth
ecde166ee1
Refactor without MEDIA_HTTPSTATUS_LIST setting
2017-03-03 15:52:05 +01:00
Bernardas
11b31c9fbd
fix redirect change
2017-03-03 15:52:05 +01:00
Bernardas
3cef1cd451
adjust variable wording and redirect logic
2017-03-03 15:52:05 +01:00
Bernardas
6a42214716
add tests for media pipeline MEDIA_ALLOW_REDIRECTS and MEDIA_HTTPSTATUS_LIST settings
2017-03-03 15:52:05 +01:00
Mikhail Korobov
7e8453cf1e
Merge pull request #2306 from redapple/referrer-policy
...
[MRG] Referrer policies in RefererMiddleware
2017-03-03 04:05:13 +05:00
Mikhail Korobov
93024c242b
Merge pull request #2537 from scrapy/no-canonicalize
...
[MRG+1] Set canonicalize=False for LinkExtractor
2017-03-03 02:53:36 +05:00
Artur Gaspar
b50d0370f4
Test response attributes in data URI download handler.
2017-03-02 14:46:33 -03:00
Paul Tremberth
12a8ddecab
Fix tests
2017-03-02 13:03:18 +01:00
Paul Tremberth
e71803c833
Add tests for duplicate spider name warnings
2017-03-02 12:48:47 +01:00
Paul Tremberth
2d55d838ca
Fix strip_url() tests
2017-03-01 20:59:52 +01:00
Paul Tremberth
efa50039ec
Add tests for policy fallback on unknown policies from meta and headers
2017-03-01 17:51:23 +01:00
Paul Tremberth
8226e77010
Add test for Referer header on HTTP redirections
2017-03-01 17:51:23 +01:00
Paul Tremberth
d2aa51c0fb
Update tests
2017-03-01 17:51:23 +01:00
Paul Tremberth
bc200d1155
Rename setting to REFERRER_POLICY (with 2 Rs)
2017-03-01 17:51:23 +01:00
Paul Tremberth
b6c761d2b4
Fix tests
2017-03-01 17:50:39 +01:00
Paul Tremberth
5cef67ae75
Update Referrer tests for "strict-" policies
2017-03-01 17:50:39 +01:00
Paul Tremberth
0a0b60a59f
Add tests for stripping userinfo with percent-encoded delimiters
2017-03-01 17:50:39 +01:00
Paul Tremberth
8864d0e8c1
Rename helper function to strip_url() + add more tests
2017-03-01 17:50:39 +01:00
Paul Tremberth
5dd7311cd4
Move URL credentials stripping to a helper function
2017-03-01 17:50:39 +01:00
Paul Tremberth
d3d4d66ce8
Add tests for referrer-policy set in response HTTP headers
2017-03-01 17:50:39 +01:00
Paul Tremberth
e50e670eff
Add test for custom referrer policy via settings
2017-03-01 17:50:39 +01:00
Paul Tremberth
0344f57fef
Support case-insensitive policy names in settings
2017-03-01 17:50:39 +01:00
Paul Tremberth
e72b6e3361
Add tests for referrer policy via settings and via Request meta
2017-03-01 17:50:39 +01:00
Paul Tremberth
7ec1b5f6c3
Add tests for the different referrer policies
2017-03-01 17:50:38 +01:00
Paul Tremberth
baed7c436f
WIP Add Referrer policies
2017-03-01 17:50:38 +01:00
Rolando Espinoza
f01ae6ffcd
Handle data loss gracefully.
...
Websites that return a wrong ``Content-Length`` header may cause a data
loss error. Also when a chunked response is not finished properly.
This change adds a new setting ``DOWNLOAD_FAIL_ON_DATALOSS`` (default:
``True``) and request.meta key ``download_fail_on_dataloss``.
2017-03-01 11:43:53 -03:00
Mikhail Korobov
0e5ed21397
Merge pull request #2599 from redapple/py3-ignores-cleanup-ftp
...
Fix FTP downloader and re-enable FTP tests on Python 3
2017-02-28 15:39:42 +05:00
Paul Tremberth
0b90c3b43c
Re-enable FTP tests on Python 3
2017-02-27 17:42:00 +01:00
Mikhail Korobov
c72ba07326
Merge pull request #2543 from scrapy/retry-stats
...
[MRG+1] Retry stats
2017-02-27 21:03:35 +05:00
Artur Gaspar
121a668a47
Rename data URI downloader module.
2017-02-22 12:30:56 -03:00
Artur Gaspar
3397d27574
Test for binary body content from data URI downloader.
2017-02-22 12:30:56 -03:00
Artur Gaspar
d60642e175
data URI download handler.
2017-02-22 12:30:56 -03:00
Mikhail Korobov
26c1256f95
HttpErrorMiddleware stats
2017-02-22 17:36:25 +05:00
Mikhail Korobov
2b4d46315f
TST fixed compatibility with new link extractor whitespace handling
2017-02-21 00:05:40 +05:00
Mikhail Korobov
df446d167f
fix deprecated link extractors
2017-02-20 23:01:14 +05:00
Mikhail Korobov
47f7da8724
canonicalize=False by default for LinkExtractor. Fixes GH-1941.
2017-02-20 22:58:11 +05:00
Mikhail Korobov
93e449f1f6
Merge pull request #2343 from redapple/anonymous-ftp
...
[MRG+1] Support Anonymous FTP
2017-02-20 23:19:54 +06:00
Omer Schleifer
ff3e299eb0
[MRG+2] add flags to request ( #2082 )
...
* add flags to request
* fxi test - add flags to request
* fix test(2) - add flags to request
* fix test(2) - add flags to request
* Updated test to reqser with flags field of request
* Updated documntation with flags field of request
* fix test identation
* fix test failed
* make the change backward comptaible
* remove unrequired spaces, fix documentation request flags
* remove unrequired space
* fx assert equal
* flags default is empty list
* Add flags to request
* add flags to request
* fxi test - add flags to request
* fix test(2) - add flags to request
* fix test(2) - add flags to request
* Updated test to reqser with flags field of request
* Updated documntation with flags field of request
* fix test identation
* fix test failed
* make the change backward comptaible
* remove unrequired spaces, fix documentation request flags
* remove unrequired space
* fx assert equal
* flags default is empty list
* add flags to request squashed commits
2017-02-20 20:42:29 +06:00
Daniel Graña
b0388e49b4
Merge pull request #1728 from scrapy/deprecate-make-requests-from-url
...
deprecate Spider.make_requests_from_url.
2017-02-20 11:23:49 -03:00
Daniel Graña
c68140e68a
Merge pull request #2540 from scrapy/response-follow
...
response.follow
2017-02-20 11:21:21 -03:00
Daniel Graña
b15b4541d1
Merge pull request #2569 from scrapy/fix-project-util-test-osx
...
TST fixed ProjectUtilsTest on OS X
2017-02-20 11:15:21 -03:00
Daniel Graña
322fd68e4c
Merge pull request #2548 from scrapy/formrequest-whitespaces
...
[MRG+1] FormRequest: handle whitespaces in action attribute properly
2017-02-20 11:09:50 -03:00
Daniel Graña
4a93be4ad8
Merge pull request #2547 from scrapy/linkextractor-strip-whitespaces
...
[MRG+1] LinkExtractors: strip whitespaces
2017-02-20 11:08:32 -03:00
Daniel Graña
58a18e3007
Merge pull request #2535 from pawelmhm/brotli
...
[MRG+1] [httpcompression] add support for br - brotli content encoding
2017-02-20 11:04:55 -03:00
Paul Tremberth
f2e200120b
Explicitly remove test directories in FTP tests
2017-02-20 14:50:05 +01:00
Paul Tremberth
26b7c039a9
Remove debug print statement
2017-02-20 14:19:36 +01:00
Paul Tremberth
3ffa2c5759
Support Anonymous FTP
...
Fixes GH-2342
2017-02-20 14:19:36 +01:00
Mikhail Korobov
a1e8a8525d
fix make_requests_from_url deprcation implementation, add tests
2017-02-17 00:18:29 +05:00
Mikhail Korobov
78cb46a079
TST fix a weird OS X testing issue
...
pytest intercepts temp file creation to provide readable file/folder
names; path is built from method name; in case of conflicts
pytests uses increasing numbers, but it seems it doesn’t account
for case-insensitive (but case preserving) OS X filesystem. There
are methods named test_encoding, pytest thinks test_Encoding is
different and fails to create a test folder
2017-02-16 18:22:04 +05:00
Mikhail Korobov
b9928558b2
TST remove temporary files and folders
2017-02-16 17:50:38 +05:00
Mikhail Korobov
f0c4e5dfd5
TST fixed ProjectUtilsTest on OS X
...
Temp folder can be a symlink on OS X.
2017-02-16 16:32:23 +05:00
Mikhail Korobov
692975acb4
deprecate Spider.make_requests_from_url. Fixes #1495 .
2017-02-16 03:39:34 +05:00
Mikhail Korobov
d079e15fe2
Strip leading/trailing whitespaces in link extractors. Fixes GH-838.
2017-02-16 02:22:17 +05:00
Mikhail Korobov
074caf434e
FormRequest: handle whitespaces in action attribute properly
2017-02-16 02:13:39 +05:00
Mikhail Korobov
fade5763af
TST more response.follow tests
2017-02-16 02:02:50 +05:00
Mikhail Korobov
160da6abab
fixed tests in Python 2
2017-02-15 04:41:53 +05:00
Mikhail Korobov
2674f317df
Response.follow
2017-02-15 04:39:47 +05:00
Mikhail Korobov
608c3f0c45
handle whitespace in response.follow; add tests
2017-02-15 04:17:41 +05:00
Mikhail Korobov
e285b1d6c2
retry stats
2017-02-14 20:27:49 +05:00
Mikhail Korobov
afac3fd2c2
Merge pull request #2530 from elacuesta/proxy_credentials
...
[MRG+1] Use credentials from request.meta['proxy']
2017-02-14 20:58:39 +06:00
Eugenio Lacuesta
ae0ea31abd
Add HTTPPROXY_ENABLED setting (default True)
2017-02-14 11:33:01 -03:00
Paul Tremberth
f32a229e3d
Merge pull request #2510 from elacuesta/reqser_request_class
...
[MRG+1] Preserve request class when converting to/from dicts (utils.reqser)
2017-02-08 18:30:07 +01:00
Eugenio Lacuesta
9c0aae724e
Use credentials from request.meta['proxy'] if present
2017-02-08 13:22:30 -03:00
Paul Tremberth
a8893190a1
Merge pull request #2464 from elacuesta/component_order_integer
...
[MRG+2] Validate numeric values (components order)
2017-02-08 13:01:02 +01:00
Paul Tremberth
3becb861af
Merge pull request #2544 from scrapy/twisted-version-cleanup
...
[MRG+1] Remove code required to support ancient twisted versions.
2017-02-08 12:59:45 +01:00
Rolando Espinoza
4e765acaed
BUG: Fix __classcell__ propagation.
...
Python 3.6 added simpler customization of class creation but this
requires to propagate correctly the __classcell__ attribute in custom
__new__ methods.
See https://docs.python.org/3.6/whatsnew/3.6.html#pep-487-simpler-
customization-of-class-creation
2017-02-08 02:12:52 -04:00
Mikhail Korobov
04b2f79e7a
Remove code required to support ancient twisted versions. See GH-1887.
2017-02-07 22:30:58 +05:00
Eugenio Lacuesta
24e82bfe75
Validate values for components order
2017-02-07 09:13:57 -03:00
Pawel Miech
fb4ef21a1d
[httpcompression] minor style edits
2017-02-07 10:22:42 +01:00
Pawel Miech
af802bad14
[httpcompression] add brotlipy for python 3
2017-02-06 15:45:21 +01:00
Pawel Miech
3daf473686
[httpcompression] skip test if no brotli
2017-02-06 13:49:41 +01:00
Pawel Miech
f8f8bbe080
[httpcompression] import brotli when available
2017-02-06 12:19:00 +01:00
Pawel Miech
16c4b4e184
[httpcompression] add support for br - brotli content encoding
2017-02-06 11:41:08 +01:00
Mikhail Korobov
814ce37dff
Merge pull request #2528 from redapple/dns-retry-test
...
Make DNS retry test compatible with Twisted 17+
2017-02-03 02:43:46 +05:00
Paul Tremberth
02e1d2b1fd
Add trailing dot
2017-02-02 22:28:37 +01:00
Paul Tremberth
e604c0f3ab
Remove unused imports
2017-02-02 18:26:41 +01:00
Paul Tremberth
3358254c5c
Make DNS retry test compatible with Twisted 17+
2017-02-02 17:53:28 +01:00
Paul Tremberth
803d8c4b57
Add tests for passing kwargs on response .xpath() shortcut
2017-02-02 17:44:57 +01:00
Paul Tremberth
ae6d8d728e
Support 'True' and 'False' strings as boolean settings values
2017-01-30 16:33:08 +01:00
Eugenio Lacuesta
53757e51e5
Preserve request class when converting to/from dicts (utils.reqser)
2017-01-24 17:13:21 -03:00
Paul Tremberth
07f9985a94
TST: Randomize FILES_EXPIRES above 90 days
2016-12-21 17:03:11 +01:00
Elias Dorneles
d09ec3db68
Merge pull request #2410 from redapple/fetch-transparent-redirect
...
[MRG+1] Transparently handle redirections in fetch and shell
2016-12-21 09:49:15 -02:00
Mikhail Korobov
d19c4c1f80
Merge pull request #2433 from redapple/wrong-spidermodules-warning
...
[MRG+1] Warn user instead of failing for wrong SPIDER_MODULES setting
2016-12-19 21:46:56 +05:00
Paul Tremberth
ed1e4d8df3
Merge pull request #1731 from scrapy/disable-toplevel-2
...
[MRG+1] LOG_SHORT_NAMES option to disable TopLevelFormatter
2016-12-19 16:02:55 +01:00
Elias Dorneles
97e82107b1
Merge pull request #2270 from redapple/httperror-log-info
...
[MRG+1] Raise log level for HttpErrorMiddleware to INFO (from DEBUG)
2016-12-14 12:18:04 -02:00
Paul Tremberth
f7e4081414
Add tests for SequenceExclude container
2016-12-12 22:37:53 +01:00
Mikhail Korobov
05b4555f39
TST tests for LOG_SHORT_NAMES
2016-12-09 02:19:51 +05:00
Mikhail Korobov
e46572d6f2
TST end-to-end test for LOG_LEVEL option
...
there were no end-to-end tests for this option
2016-12-09 02:19:33 +05:00
Mikhail Korobov
6eab59cbac
TST cleanup runspider tests
2016-12-09 02:14:12 +05:00
Paul Tremberth
948e3cd003
Warn user instead of failing for wrong SPIDER_MODULES setting
2016-12-08 12:50:26 +01:00
Paul Tremberth
2cd579a774
Add test for fetch(url) within shell with and without redirect
2016-12-07 19:07:32 +01:00
Paul Tremberth
7e54de2455
Add tests for shell command with and without --no-redirect
2016-12-07 18:41:24 +01:00
Elias Dorneles
cce631abec
Merge pull request #1887 from nyov/twisted11
...
[MRG+2] Bump Twisted dependency to 13.1.0
2016-12-07 15:00:01 -02:00
Paul Tremberth
778bed07bf
Let framework handle only HTTP redirects by default for fetch and shell commands
2016-12-07 17:56:13 +01:00
Mikhail Korobov
ff3aec6613
Merge pull request #2331 from moisesguimaraes/fixes-2272
...
[MRG+1] Fixes issue #2272 using arg_to_iter() to wrap single values and list() to…
2016-12-07 20:08:18 +05:00
Elias Dorneles
a9c69458ff
Merge pull request #2422 from rolando-contrib/nested-spiders-modules
...
[MRG+1] DOC State explicitly that spiders are loaded recursively.
2016-12-07 11:21:15 -02:00
Paul Tremberth
5efd65255c
TST: Randomize IMAGES_EXPIRES above 90 days
2016-12-06 18:49:53 +01:00
nyov
534772f6ea
Import xlib.tx code from twisted proper
2016-12-02 21:21:51 +00:00
Elias Dorneles
c4e67c0696
Merge pull request #2421 from rolando-contrib/tests-bug
...
[MRG+1] TST: Fix duplicated test name.
2016-12-01 18:43:48 -02:00
Elias Dorneles
f3a4420750
Merge pull request #2388 from redapple/robotparser-native-str
...
[MRG+1] Parse robots.txt content as native str
2016-12-01 18:43:23 -02:00
Rolando Espinoza
923b974f0a
TST Include nested a nested spider in spider loader test.
2016-12-01 13:26:19 -03:00
Rolando Espinoza
d9f43e21ba
TST: Fix duplicated test name.
2016-12-01 11:56:33 -03:00
Eugenio Lacuesta
5ff64ad015
handle relative sitemap urls in robots.txt
2016-12-01 09:53:40 -03:00
Paul Tremberth
9aefc0a886
Add test for fetch command with redirections disabled
2016-11-24 13:41:51 +01:00
Paul Tremberth
01142e2ae5
Print more dependencies versions in "scrapy version" verbose output
2016-11-22 14:48:33 +01:00
Paul Tremberth
6cd35c77da
Pass user-agent as native str when checking URLs against robots.txt
2016-11-15 17:38:32 +01:00
Paul Tremberth
de89b1b562
Merge pull request #2275 from scrapy/response-css-xpath-message
...
[MRG+1] Add better messages for when response content isn't text (closes #2264 )
2016-11-10 11:38:22 +01:00
Paul Tremberth
28155dfccc
Parse robots.txt content as native str
...
Fixes #2373
2016-11-09 12:20:06 +01:00
Paul Tremberth
af2280e695
Update docstring
2016-11-08 13:30:51 +01:00
Paul Tremberth
27456996a9
Add assertion on crawler not running
2016-11-08 11:46:16 +01:00
Paul Tremberth
61efacdd1f
Add testcase for catching exception from open_spider() from pipeline
2016-11-08 11:35:42 +01:00
Paul Tremberth
db40852892
Do not interpret non-ASCII bytes in "Location" and percent-encode them ( #2322 )
...
* Do not interpret non-ASCII bytes in "Location" and percent-encode them
Fixes GH-2321
The idea is to not guess the encoding of "Location" header value
and simply percent-encode non-ASCII bytes,
which should then be re-interpreted correctly by the remote website
in whatever encoding was used originally.
See https://tools.ietf.org/html/rfc3987#section-3.2
This is similar to the changes to safe_url_string in
https://github.com/scrapy/w3lib/pull/45
* Remove unused import
2016-10-19 23:26:12 -03:00
Moisés Guimarães
45e95b79ce
( fixes #2272 ) using arg_to_iter() to wrap single values and list() to avoid consuming from generators.
2016-10-18 11:06:55 -03:00
Elias Dorneles
2d932c173c
test abs path outside project as well
2016-09-30 15:07:58 -03:00
Elias Dorneles
25bd3b3fea
add .scrapy when outside spider too, add tests
2016-09-29 18:30:42 -03:00
Elias Dorneles
9c9690c76c
add better messages for when response content isn't text ( closes #2264 )
2016-09-21 10:30:35 -03:00
Paul Tremberth
81a0e3cd93
Raise log level for HttpErrorMiddleware to INFO (from DEBUG)
...
Fixes GH-910
2016-09-20 13:44:21 +02:00
Paul Tremberth
41cd9f401f
Merge pull request #2243 from pawelmhm/image-pipeline-2198
...
[MRG+1] [image & file pipeline] loading setting for user classes
2016-09-19 18:43:52 +02:00
Mikhail Korobov
5657f6b8ef
Merge pull request #2258 from redapple/feed-export-started
...
[MRG+1] Feed exporter: start exporting only on first item
2016-09-19 14:40:30 +06:00
Mikhail Korobov
552368727a
Merge pull request #2225 from Tethik/parse_command_rules_fix
...
[MRG+1] Two small fixes for when using the parse command and the '-r' flag (rules).
2016-09-19 14:39:09 +06:00
Joakim Uddholm
8c38dde4e8
Moved parse command tests to its own file. Added some checks to check for logged errors.
2016-09-19 05:33:05 +02:00
Paul Tremberth
03ab077249
Feed exporter: start exporting only on first item
...
Fixes GH-872
2016-09-17 01:36:56 +02:00
Paul Tremberth
b828facff4
Add shell test for using scrapy.Request() directly without importing scrapy
2016-09-15 19:25:20 +02:00
pawelmhm
7d88209543
[image & file pipeline] loading setting for user classes
...
if user has some custom subclass of Image pipeline and no setting for
this pipeline, he should get default settings defined for Image Pipeline.
Fixes #2198
2016-09-15 09:39:16 +02:00
Elias Dorneles
129421c7e3
Merge pull request #1503 from demelziraptor/amazon-json-response
...
[MRG+1] interpreting json-amazonui-streaming as TextResponse
2016-09-12 13:21:16 -03:00
Paul Tremberth
fbb5559299
Add tests for crawl command non-default cases
2016-09-12 13:35:14 +02:00
Paul Tremberth
9de6f1ca75
Merge pull request #1905 from rootAvish/duplication-fix
...
[MRG+1] Modified read failure recovery in utils/gz.py to read only the last f.extrasize bytes of f.extrabuf[ ]
2016-08-17 14:51:30 +02:00
Ashish Kulkarni
bb3b806467
Use w3lib.url.canonicalize_url() from w3lib 1.15.0
...
Also remove code/imports which are now unused due to this change.
fixes #2157
2016-08-16 17:42:16 +05:30
Paul Tremberth
9a734e6759
Merge pull request #2058 from dalleng/serialize_set
...
[MRG+1] Add set serialization to ScrapyJSONEncoder
2016-08-12 18:28:34 +02:00
rootavish
d9437fd3d9
Modifying existing gzip read failure recovery mechanism to patch read for broken archives
2016-08-11 18:21:42 +05:30
Mikhail Korobov
414857a593
Merge pull request #2140 from jesuslosada/images-expires
...
[MRG+1] Fix IMAGES_EXPIRES default value
2016-08-05 21:52:27 -04:00
Mikhail Korobov
2c9a38d1f5
Merge pull request #2153 from Digenis/Selector_bad_args
...
[MRG+1] Selector should not receive both response and text
2016-07-31 21:28:38 -04:00
Νικόλαος-Διγενής Καραγιάννης
643dbeffcf
Selector should not receive both response and text
2016-07-30 10:35:16 +03:00
Diego Allen
e17fdd7276
Add set serialization to ScrapyJSONEncoder
2016-07-22 17:20:03 -04:00
Jesús Losada
7c3e3b484e
Fix ImagesPipeline test settings
2016-07-22 20:03:49 +02:00
Paul Tremberth
ec1c61504a
Merge pull request #2005 from feliperuhland/master
...
[MRG+1] Included new optional parameter in startproject command line
2016-07-19 12:31:06 +02:00
Mikhail Korobov
79639d0fec
Merge pull request #1989 from pawelmhm/fix-images-pipeline-uppercase-other
...
[MRG+1] [image_pipeline] bring back uppercase class attributes
2016-07-13 14:44:00 +00:00
Mikhail Korobov
2dd1a9e3bc
Merge pull request #2094 from redapple/dns-invalid-id
...
Catch and ignore certification verification exception for IP-address hosts
2016-07-13 10:48:08 +00:00
Paul Tremberth
c3109daa72
Merge pull request #2034 from dracony/master
...
[MRG+1] Added option to turn off ensure_ascii for JSON exporters
2016-07-12 17:01:09 +02:00
Dracony
33a39b368f
added FEED_EXPORT_ENCODING setting to allow encoding specification
2016-07-12 16:20:17 +02:00
Paul Tremberth
778f1cf84c
Merge remote-tracking branch 'origin/master' into octet-stream-no-decompress
2016-07-08 18:13:20 +02:00
Elias Dorneles
d43a35735a
Merge pull request #2050 from Tethik/is_gzipped_fix
...
[MRG+1] Is_gzipped for application/x-gzip;charset=utf-8
2016-07-08 08:47:56 -03:00
Mikhail Korobov
b7553d921a
Merge pull request #2038 from redapple/canonicalize-idna-failures
...
[MRG] Do not fail on canonicalizing URLs with wrong netlocs
2016-07-08 10:47:54 +06:00
Mikhail Korobov
52a52e2388
Merge pull request #2001 from matveinazaruk/issue-2000
...
[MRG+1] Fixed choosing of response class.
2016-07-08 10:44:24 +06:00
Valdir Stumm Junior
1779f5feca
enable genspider command outside projects
2016-07-06 15:10:48 -03:00
Mikhail Korobov
759a555d28
Merge pull request #2069 from redapple/https-connect-host
...
[MRG] Add "Host" header in CONNECT requests to HTTPS proxies
2016-07-06 21:43:41 +06:00
Mikhail Korobov
4273734744
TST pin pytest-cov to 2.2.1; upgrade pytest
2016-07-06 18:29:49 +05:00
Paul Tremberth
37efdde3e3
Catch and ignore TLS verification exception for IP-address hosts
...
Fixes GH-2092
2016-07-06 14:20:13 +02:00
Paul Tremberth
6539277f99
Fix CONNECT request timeout (with an ugly hack)
2016-06-21 17:14:41 +02:00
Paul Tremberth
10a2c46e12
[HttpCompressionMiddleware] Do not decompress binary/octet-stream responses
2016-06-20 16:37:00 +02:00
Pawel Miech
fa4d0cdfe5
[FilesPipeline, ImagesPipeline] fix for cls attrs with DEFAULT prefix
...
some class attributes for ImagePipeline and FilesPipeline had DEFAULT prefix. These
attributes should be preserved as well, if users subclasses define values for
DEFAULT_<CLS_ATTRIBUTE_NAME> attribute this value should be preserved.
2016-06-20 12:53:20 +02:00
Pawel Miech
539d34bce0
[media-pipeline, file-pipeline] allow setting custom settings for subclasses
...
* move key_for_pipe function to media pipeline so that file pipeline can use it
* use key_for_pipe in file pipeline so that users can define custom settings for subclasses easily
* add tests for file pipelines attributes and settings
2016-06-15 15:39:11 +02:00
Pawel Miech
acbfdc6184
[files_pipeline] ensure class attributes are preserved
...
dont override class attributes with default settings (same as in image pipeline).
2016-06-15 15:14:28 +02:00
Pawel Miech
c6d1686d98
[files_pipeline] unify tests for files pipeline
...
if test tests same thing but for different field it can be unified into one.
2016-06-15 14:48:25 +02:00
Pawel Miech
72e4d5f33e
[image_pipeline] another test for subclass inheritance
...
test case when subclass inherits from base class and has no attributes nor
settings defined.
2016-06-15 14:07:17 +02:00
Pawel Miech
ee39d11e45
[image_pipeline] refactor and simplify tests for image settings
...
unify tests that test same thing for different attribute values into one. Add
better docstrings for tests.
2016-06-15 11:25:38 +02:00
Joakim Uddholm
23f99e98c4
is_gzipped: Separated tests again.
2016-06-14 21:33:51 +02:00
Pawel Miech
d715172528
[image_pipeline] unify and simplify tests for setting loading
...
there was identical test for different setting keys. I unified it into
one unit test.
Fixes comments for tests, adds comments about intention of uppercase attrs.
Adds another test for user defined setting keys and uppercase attrs.
2016-06-14 19:09:56 +02:00
Joakim Uddholm
124e218a3b
Added new testcases suggested by @redapple.
2016-06-14 14:22:18 +02:00
Matvei Nazaruk
b76b374648
Added test for http11 choosing response type without content-type header.
2016-06-13 23:21:38 +03:00
Joakim Uddholm
2c98a88a0e
Separated tests based on case
2016-06-12 10:49:34 +02:00
Joakim Uddholm
989f6b8843
Test to show bug with is_gzipped and Content-Type: application/gzip;charset.
2016-06-12 01:38:27 +02:00
Pawel Miech
a62d4b081c
[image-pipeline] image settings with class name
...
allow to have image settings with class name, so that settings for user defined ImagePipeline
subclasses can be defined easily.
2016-06-10 12:48:02 +02:00
Paul Tremberth
1aec5200bc
Do not fail on canonicalizing URLs with wrong netlocs
...
Fixes #2010
2016-06-08 16:49:33 +02:00
omer
c8ec79d959
fix issue with '' in python 3
2016-05-25 06:56:06 +03:00
Felipe Ruhland
9ad54b3815
Fix template description after create project
2016-05-24 13:03:33 -03:00
Felipe Ruhland
b8a09d7ab7
Added tests for more or less parameters
2016-05-24 11:58:52 -03:00
Felipe Ruhland
2521f031d6
Created new tests for implementation
2016-05-23 23:15:53 -03:00
omer
ce48bae533
Do not decode of head response
2016-05-23 19:52:38 +03:00
Pawel Miech
6c67db3917
[image_pipeline] tests for class attrs backward compatibility
...
and docs about image pipeline settings.
2016-05-18 12:04:52 +02:00
Pawel Miech
4cef1a1d00
[image_pipeline] bring back uppercase pipeline attributes
...
allow users to have class attributes on image pipelines. This assumes
that class attributes are useful if users want to have different pipeline
classes inhriting from ImagePipeline.
2016-05-13 12:35:35 +02:00
Paul Tremberth
0e11b3e6f0
Add idempotence tests for canonicalize_url
2016-04-26 20:03:17 +02:00
Paul Tremberth
68dedf54cb
Fix canonicalize_url() on Python 3 and re-enable tests
2016-04-21 14:50:59 +02:00
Mikhail Korobov
73a5571c60
Merge pull request #1923 from scrapy/request-new-safe_url_string
...
[MRG+1] Use newer w3lib.url.safe_url_string() and re-enable HTTP request tests
2016-04-20 19:33:45 +06:00
Paul Tremberth
cd979ace40
Add HTTPS tests with non-hostname-maching server certificate
2016-04-20 14:42:03 +02:00
Paul Tremberth
d42a98d3b5
Use newer w3lib.url.safe_url_string() and re-enable HTTP request tests
2016-04-12 00:33:25 +02:00
Paul Tremberth
7b5243a263
Add link extractor test for non-ASCII characters in query part of URL
2016-04-09 15:15:01 +02:00
Paul Tremberth
1656fbcffa
Fix link extractor tests for non-ASCII characters from latin1 document
...
URL path component should use UTF-8 before percent-encoding (that's what
browsers do when you open scrapy/tests/sample_data/link_extractor/linkextractor_latin1.html
and follow the links)
This matches current w3lib v1.14.1
2016-04-08 23:25:50 +02:00
Paul Tremberth
0ede017d2a
Merge pull request #1891 from djunzu/update_files_images_pipelines
...
[MRG+1] Change Files/ImagesPipelines class attributes to instance attributes
2016-04-08 12:55:09 +02:00
Paul Tremberth
bf7f675493
Merge pull request #1847 from aron-bordin/add_blocking_storage_path_setting
...
[MRG+2] added BLOCKING_FEED_STORAGE_PATH to settings
2016-04-01 15:47:06 +02:00
Aron Bordin
9250a5bffa
added FEED_TEMPDIR to settings
2016-04-01 00:05:21 -03:00
djunzu
8228a0c491
Change FilesPipeline class attributes to instance attributes.
...
modified: scrapy/pipelines/files.py
modified: tests/test_pipeline_files.py
2016-03-31 19:20:39 -03:00
djunzu
e9d48f8a8e
Add tests.
...
modified: tests/test_pipeline_files.py
modified: tests/test_pipeline_images.py
2016-03-31 19:19:49 -03:00
Paul Tremberth
3ba5671fbc
Merge pull request #1851 from nyov/binary_or_text
...
[MRG+1] Rename isbinarytext function to binary_is_text for clarity
2016-03-31 11:55:09 +02:00
nyov
e8ca467572
Rename isbinarytext function to binary_is_text for clarity
...
Closes #1389
2016-03-30 15:44:15 +00:00