How to get PyPI download statisticsKiran Koduru • May 20, 2017 • 1 minutes to read • Last Updated: May 21, 2017
This is a short post on how to get download statistics about any package from PyPI. Though there have been efforts in that direction from sites like pypi ranking but this post finds a better solution.
Google has been generous enough to donate it’s Big Query capacity to the Python Software Foundation. You can access the pypi downloads table through the Big Query console. I ran a sample query to find out how my personal package arachne has been doing on PyPI.
The above query returns the download count since 1st May 2015
What might have gotten your attention might be the, FROM statement.
If you aren’t familiar with Big Query the short version is that it creates a new table for each date. So in the above query I am trying to look for data in downloads table starting from date 2015-05-01.
I am writing a book!
While I do appreciate you reading my blog posts, I would like to draw your attention to another project of mine. I have slowly begun to write a book on how to build web scrapers with python. I go over topics on how to start with scrapy and end with building large scale automated scraping systems.
If you are looking to build web scrapers at scale or just receiving more anecdotes on python then please signup to the email list below.
Would you like to stay in touch?
If you enjoyed reading my post and want to hear from me again please subscribe below.