Commit Graph

7931 Commits

Author SHA1 Message Date
elacuesta e5711127b1
Remove deprecated ChunkedTransferMiddleware (#4431) 2020-03-16 19:43:02 +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
Andrey Rahmatullin 1d862e0d35
Merge pull request #4404 from nyov/obsolete2
Remove obsolete DEPRECATED_SETTINGS (deprecated.py)
2020-03-16 17:18:48 +05:00
Aditya Kumar f9bf4b8d4d
Remove all top-level imports for twisted.internet.reactor (#4406) 2020-03-14 10:39:00 +01:00
Andrey Rahmatullin 0afe3da3dd
Merge pull request #4422 from Gallaecio/pin-working-pytest
Restrict pytest to versions prior to 5.4
2020-03-13 18:28:11 +05: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
Mikhail Korobov ae5f59856c
Merge pull request #4420 from elacuesta/response_follow_all_empty_generator
Response.follow_all: return empty generators for empty sequences
2020-03-12 18:44:49 +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 c886a70eae
Use dict.setdefault in scrapy.utils.conf.feed_complete_default_values_from_settings 2020-03-11 21:06:51 -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 49156f2ecb
[doc] Feed exports: full local path as example 2020-03-11 20:45:54 -03:00
Andrey Rahmatullin 2eb990a252
Merge pull request #4410 from Lukas0907/fix-offsite-middleware-tests
Fix handling of None in allowed_domains
2020-03-11 23:11:35 +05: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
nyov c2c6ea376c Remove obsolete DEPRECATED_SETTINGS (deprecated.py) 2020-03-07 15:52:05 +00:00
Eugenio Lacuesta ada37c5409
Export to multiple formats in a single crawl 2020-03-05 09:33:57 -03:00
Daniel Graña c57512fa66
Merge pull request #4384 from nyov/nodeb
Drop horribly outdated deb package build files
2020-03-04 19:02:36 -03:00
nyov b1566a6962 Remove deprecated Crawler.spiders property
Deprecated since 419026615 (2014, Scrapy 0.25)
2020-03-04 21:23:42 +00:00
Mikhail Korobov ff8e826dd6
Merge pull request #4385 from nyov/obsolete
Obsolete REDIRECT_MAX_METAREFRESH_DELAY, LOG_UNSERIALIZABLE_REQUESTS
2020-03-05 00:04:29 +05:00
Mikhail Korobov 29f957d8cb
Merge pull request #4400 from nyov/obsolete-datatypes
Remove deprecated SiteNode and MultiValueDict classes
2020-03-04 23:56:36 +05:00
nyov 6c35baae25 Remove deprecated SiteNode and MultiValueDict classes 2020-03-04 00:40:11 +00:00
nyov 6400225555 Drop horribly outdated deb package build files 2020-03-03 14:03:44 +00: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 a4dbb7754b Bump version: 1.8.0 → 2.0.0 2020-03-03 09:13:00 +01:00
Adrián Chaves 6aa0ba4553
Write release notes for Scrapy 2.0.0 (#4329) 2020-03-03 09:11:11 +01:00
MaliCN ef00f8eb8e
updated with new macOS name (#4308) (#4323)
* changed for new name as "macOS"  (issue #4308)

* updated macOS name

* update macOS name

* updated macOS name

* update for new macOS name

* docs/intro/install.rst: fix macOS header symbols

Co-Authored-By: elacuesta <elacuesta@users.noreply.github.com>

Co-authored-by: Adrián Chaves <adrian@chaves.io>
Co-authored-by: elacuesta <elacuesta@users.noreply.github.com>
2020-02-29 00:42:07 +05:00
sakshamb2113 c411a51f42
Fix random failures from test_fixed_delay in some machines (#4372) 2020-02-28 13:17:02 +01:00
Andrey Rahmatullin 09d9e75c08
Merge pull request #4375 from Gallaecio/env-warn-whitelist
Stop deprecation warnings on arbitrary SCRAPY-prefixed env vars
2020-02-28 13:26:17 +05:00
Adrián Chaves 9aae4c0be7 Add tests for envvar setting warnings 2020-02-27 16:31:43 +01:00
Adrián Chaves 2acaa86231 Do not warn about valid environment variables 2020-02-27 15:46:21 +01:00
HEndo12345 6109ad9aac
Clean up the deprecated settings list (#4378) 2020-02-27 15:15:30 +01:00
Mikhail Korobov 647cba0f10
Merge pull request #4373 from Gallaecio/fix-readthedocs
Fix the ReadTheDocs build
2020-02-26 02:27:02 +05:00
Adrián Chaves 778813717d Use ReadTheDocs install.path 2020-02-25 21:58:28 +01:00
Adrián Chaves a9d7d8f064 Add Scrapy dependencies back to docs/requirements.txt 2020-02-25 21:41:07 +01:00
Adrián Chaves 7291173f6b Have ReadTheDocs builds fail on warning 2020-02-25 21:35:21 +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
Mikhail Korobov ea6ab179d9
Merge pull request #4361 from nyov/linkfix
Documentation linkcheck run, fixing some links.
2020-02-25 22:30:44 +05:00
nyov a34c366fa4 DOC linkcheck run; https and 301 link updates.
Closes #4359
2020-02-25 16:51:33 +00:00
Mikhail Korobov caa1dea890
Merge pull request #4370 from Gallaecio/dont-fail-kw-only
Make BaseItemExporter’s dont_fail parameter keyword-only
2020-02-25 13:12:01 +05:00
Adrián Chaves 7417a9871c Make BaseItemExporter’s dont_fail parameter keyword-only 2020-02-24 13:28:15 +01:00
elacuesta 31f35c9c00
Remove unnecessary comma (#4369) 2020-02-24 12:02:00 +01: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