You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()).
The text was updated successfully, but these errors were encountered:
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?
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 usingjob.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()).The text was updated successfully, but these errors were encountered: