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
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
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