• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scrapy / scrapy

Build:
Build:
LAST BUILD BRANCH: f-allow-setting-of-custom-log-config-file
DEFAULT BRANCH: master
Repo Added 29 Oct 2013 05:17PM UTC
Files 5
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH singleton_removal
branch: singleton_removal
CHANGE BRANCH
x
Reset
  • singleton_removal
  • 0.16
  • codecov
  • dupefilter-persist
  • feature-1371-download-prios
  • master
  • py3-fixes
  • py3-linkextractors
  • py3-middlewares
  • twisted-15.4

pending completion
37

push

travis-ci

pablohoffman
Removed signals/stats singletons

This change removes singletons for stats collection and signal
dispatching facilities, by making them a member of the Crawler class.

Here are some examples to illustrates the old and new API:

Signals - before:

    from scrapy import signals
    from scrapy.xlib.pydispatch import dispatcher
    dispatcher.connect(self.spider_opened, signals.spider_opened)

Signals - now:

    from scrapy import signals
    crawler.signals.connect(self.spider.opened, signals.spider_opened)

Stats collection - before:

    from scrapy.stats import stats
    stats.inc_value('foo')

Stats collection - now:

    crawler.stats.inc_value('foo')

Backwards compatibility was retained as much as possible and the old API
has been properly flagged with deprecation warnings.
Relevant lines Covered
NO TREND HISTORY
Source Files on singleton_removal
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
37 singleton_removal Removed signals/stats singletons This change removes singletons for stats collection and signal dispatching facilities, by making them a member of the Crawler class. Here are some examples to illustrates the old and new API: Signals - before: ... push 07 Nov 2013 10:22AM UTC pablohoffman travis-ci pending completion  
See All Builds (248)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc