Skip to main content

Get PyPi Package information.

Project description

scrapypi is used to get pypi package information using python.

scrapypi can be used to get package version, name, licence, author, summary and package download statistics.

Insallation

python -m pip install scrapypi

Usage

Type scrapypi in terminal or command prompt to scrapypi file for getting downloads statistics. scrapypi can also be used in code.

$ scrapypi

Below are examples and functions and classes in scrapypi for data fetching.

  • stats
  • info
  • version

info

Get package information. You can either get information using package name or package pypi url.

from scrapypi import info, stats, licence

info(<package_name>) # returns a dictionary of information.

values returned by info() is listed below:

  • name
  • author
  • licence
  • summary
  • previous_version
  • latest version
  • downloads

stats

Get package full statistics, including download values everyday of package upload, date and number of downloads.

from scrapypi import stats

statistics = stats(<package_name>)

statistics.dataset() # get all daily download counts of package in the year.

statistics.get_total() # get total number of downloads.

version

You can also get package name and version using the version function.

from scrapypi import version

version(<package_name>) # returns package name and version in a tuple. (name, version)

Use the version function if you need to get those information fast. But i recommend using the info function.

main

The main function is to get a statics view of packages and also compare the statistics of multiple packages. Use the main() function to run the scrapypi script for statistics fetcher. Fetching multiple packages needs to be seperated with a comma (,)

Package Name(s): package_one, package_two

CHANGELOG

0.0.7 -- [ 20 JULY 2023 ]
[ ADDED ]
[+] Previous version

[ FIXED ]
[+] Total amount of package downloads

[ CHANGED ]
[+] Interface

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapypi-0.0.7.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

scrapypi-0.0.7-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file scrapypi-0.0.7.tar.gz.

File metadata

  • Download URL: scrapypi-0.0.7.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for scrapypi-0.0.7.tar.gz
Algorithm Hash digest
SHA256 2a46cfd43a9560daf5239853d78b3d45be2a3769fbea3904754b7ce2ee1aa793
MD5 9e4e26302f51a9960eb46e3d59767089
BLAKE2b-256 3e30f2c568b9ed8c7e0b821452d17a0ae559f91546b75b48628afe846926963c

See more details on using hashes here.

File details

Details for the file scrapypi-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: scrapypi-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for scrapypi-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4ea362fef5ed6b342e4a5a6160c93a05a8e58f5504f0a4d2be99e9ce943c57
MD5 3f8cfc951d66cc81a544a999c79e8b40
BLAKE2b-256 b2c42417f6ebc41ee7122eb36a9bb71b158bae8ff1ba771cfec5bf5a59059000

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page