Open hadley opened 10 years ago
The pypstats package pulls from PyPI's published stats which is out of date ever since PyPI switched to using a CDN.
Actually, there's a JSON API! However, the results seem to only give about as much data as scraping the package pages:
>>> resp = requests.get("http://pypi.python.org/pypi/numpy/json")
>>> resp.json()
{
...
u'downloads': {
u'last_day': 7634,
u'last_month': 173916,
u'last_week': 41854},
...
}
Domain specific thing to think about though -- deployments of python applications will install these packages in automation which doesn't tell you about folks doing hands on analysis.
See https://pypi.python.org/pypi/pypstats for python