Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save statistics about crawler runs #42

Open
GoogleCodeExporter opened this issue Jun 7, 2015 · 0 comments
Open

Save statistics about crawler runs #42

GoogleCodeExporter opened this issue Jun 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

We could use the Statistic base class in our model to save a history of results 
from crawler runs.

I suggest something like:
class Crawl(Statistic):
    crawl_time = Column(Float)
    new = Column(Integer)
    changed = Column(Integer)
    deleted = Column(Integer)
    sharesize = Column(BigInteger)
    __mapper_args__ = {'polymorphic_identity': u'crawl'}

    def __init__(self, crawl_time, date=datetime.now()):
        self.crawl_time = crawl_time
        self.date = date

I will implement the change in branches/tg2.1 and see how it works out!

Original issue reported on code.google.com by moschlar@metalabs.de on 20 Sep 2011 at 2:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant