mirror of https://github.com/scrapy/scrapy.git
handle exception use O(N) instead of O(NlogN) here we have request as struct additional check for meptiness small performance improvement do not consume another request test number of responses mark requests back to 3 slots test case raise exceptions in case of missed meta add marks to requests and work only with your own requests only disk queue should obtain signals separate functions for slot rasd/write use signlas without variable stop crawler get signals in correct place logic test for download-aware priority queue update comment for structure ensure text type transform slot name to path use implicit structure use unicode type implicitly use real crawler add signals more slot accounting simple implementation of pop small slot accounting code no need for custom len function ability to call super in py27 add slots generic tests for downloader aware queue dummy implementation of crawler aware priority queue move common logic to base class rename class pass crawler to pqclass constructor do not copy quelib.PriorityQueue code add comment about new class remove obsolete function modify behaviour of queuelib.PriorityQueue to dodge very complex priority better way to get name remove obsolete commentary check boundaries function for priority convertion with known limits correct import path move file do not switch on by deffault as ip concurrency not supported set scheduler slot in case of empty slot use constant single place for added urls single place for constants use as default queue correct format for error text test migration from old version with on disk queue in these tests we have only two inflection points - jobdir and priority_queue_cls we do not need separate mock spider, use usual one do not rely on order of dict elements, imply order of list test round robiness of priority queue add comments and requirements for our magick function remove debug logging put queues into slot as we fabricate priorities we do not need special types anymore fabricate priority for priority queue more versatile priorities Scheduler class is not inflection point wrap correct types check for emptinees before initialization tests for new priority queue correct default type for startprios use exact values put common settings to base class test priorities for disk scheduler test dequeue for disk scheduler test length for disk scheduler setUp/tearDown methods for on disk schedulers new methods remove excessive line base class to handle scheduler creation correct method names test priorities deque test close scheduler on test end enqueue some requests test template for scheduler use downloader slot I/O implementation for RoundRobin queue round-robin implementation without I/O and slot detection wrappers for every disk queue class |
||
|---|---|---|
| .. | ||
| keys | ||
| mocks | ||
| sample_data | ||
| test_cmdline | ||
| test_settings | ||
| test_spiderloader | ||
| test_utils_misc | ||
| __init__.py | ||
| constraints.txt | ||
| mockserver.py | ||
| pipelines.py | ||
| py3-ignores.txt | ||
| requirements-py2.txt | ||
| requirements-py3.txt | ||
| spiders.py | ||
| test_closespider.py | ||
| test_command_fetch.py | ||
| test_command_parse.py | ||
| test_command_shell.py | ||
| test_command_version.py | ||
| test_commands.py | ||
| test_contracts.py | ||
| test_crawl.py | ||
| test_crawler.py | ||
| test_dependencies.py | ||
| test_downloader_handlers.py | ||
| test_downloadermiddleware.py | ||
| test_downloadermiddleware_ajaxcrawlable.py | ||
| test_downloadermiddleware_cookies.py | ||
| test_downloadermiddleware_decompression.py | ||
| test_downloadermiddleware_defaultheaders.py | ||
| test_downloadermiddleware_downloadtimeout.py | ||
| test_downloadermiddleware_httpauth.py | ||
| test_downloadermiddleware_httpcache.py | ||
| test_downloadermiddleware_httpcompression.py | ||
| test_downloadermiddleware_httpproxy.py | ||
| test_downloadermiddleware_redirect.py | ||
| test_downloadermiddleware_retry.py | ||
| test_downloadermiddleware_robotstxt.py | ||
| test_downloadermiddleware_stats.py | ||
| test_downloadermiddleware_useragent.py | ||
| test_dupefilters.py | ||
| test_engine.py | ||
| test_exporters.py | ||
| test_feedexport.py | ||
| test_http_cookies.py | ||
| test_http_headers.py | ||
| test_http_request.py | ||
| test_http_response.py | ||
| test_item.py | ||
| test_link.py | ||
| test_linkextractors.py | ||
| test_linkextractors_deprecated.py | ||
| test_loader.py | ||
| test_logformatter.py | ||
| test_mail.py | ||
| test_middleware.py | ||
| test_pipeline_crawl.py | ||
| test_pipeline_files.py | ||
| test_pipeline_images.py | ||
| test_pipeline_media.py | ||
| test_proxy_connect.py | ||
| test_pydispatch_deprecated.py | ||
| test_responsetypes.py | ||
| test_scheduler.py | ||
| test_selector.py | ||
| test_selector_csstranslator.py | ||
| test_spider.py | ||
| test_spidermiddleware_depth.py | ||
| test_spidermiddleware_httperror.py | ||
| test_spidermiddleware_offsite.py | ||
| test_spidermiddleware_referer.py | ||
| test_spidermiddleware_urllength.py | ||
| test_spiderstate.py | ||
| test_squeues.py | ||
| test_stats.py | ||
| test_toplevel.py | ||
| test_urlparse_monkeypatches.py | ||
| test_utils_conf.py | ||
| test_utils_console.py | ||
| test_utils_datatypes.py | ||
| test_utils_defer.py | ||
| test_utils_deprecate.py | ||
| test_utils_gz.py | ||
| test_utils_http.py | ||
| test_utils_httpobj.py | ||
| test_utils_iterators.py | ||
| test_utils_log.py | ||
| test_utils_project.py | ||
| test_utils_python.py | ||
| test_utils_reqser.py | ||
| test_utils_request.py | ||
| test_utils_response.py | ||
| test_utils_serialize.py | ||
| test_utils_signal.py | ||
| test_utils_sitemap.py | ||
| test_utils_spider.py | ||
| test_utils_template.py | ||
| test_utils_trackref.py | ||
| test_utils_url.py | ||
| test_webclient.py | ||