Skip to content

Commit

Permalink
KISS
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Dec 13, 2024
1 parent e0c6002 commit 1cd7e2f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion zyte_spider_templates/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from importlib.metadata import version
from logging import getLogger

from ._extensions import PackageVersionLoggingExtension
from ._incremental.middleware import IncrementalCrawlMiddleware
from .middlewares import (
AllowOffsiteMiddleware,
Expand Down
2 changes: 0 additions & 2 deletions zyte_spider_templates/_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
MaxRequestsPerSeedDownloaderMiddleware,
OffsiteRequestsPerSeedMiddleware,
OnlyFeedsMiddleware,
PackageVersionLoggingExtension,
TrackNavigationDepthSpiderMiddleware,
TrackSeedsSpiderMiddleware,
)
Expand Down Expand Up @@ -146,7 +145,6 @@ def update_settings(self, settings: BaseSettings) -> None:
)
_setdefault(settings, "SPIDER_MIDDLEWARES", CrawlingLogsMiddleware, 1000)
_setdefault(settings, "ITEM_PIPELINES", DropLowProbabilityItemPipeline, 0)
_setdefault(settings, "EXTENSIONS", PackageVersionLoggingExtension, 0)

try:
from scrapy.downloadermiddlewares.offsite import OffsiteMiddleware
Expand Down
16 changes: 0 additions & 16 deletions zyte_spider_templates/_extensions.py

This file was deleted.

0 comments on commit 1cd7e2f

Please sign in to comment.