Open
Description
More than once I needed to get the stats of a job using scrapinghub
library, but it is not well documented that I can find this information using job.metadata.get("scrapystats")
(the information is there but it took a while for me to figure out how to get the job stats).
As this seems (at least for my latest usages of the library), something that it is used frequently, what do you think to include a new property in Job
to return the dictionary with the job stats (similar to items.Items.stats()).
Activity
vshlapakov commentedon Oct 29, 2018
Hey @rennerocha Sorry for the long response. I think such addition would be consistent and I like the idea in general. The only thing is that I'd stay with a method, not a property, so
jobs.Job.stats()
, to match with the current design. Do you want to prepare a PR?rennerocha commentedon Nov 7, 2018
Hi @vshlapakov ! I will work on this and send a PR soon.