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.
from scrapypi import info, stats, licence
# Get package information. You can either get information using package name or package pypi url.
info(<package_name>) # returns a dictionary of information.
# Get package full statistics, including download values everyday of package upload, date and number of downloads.
statistics = stats(<package_name>)
statistics.dataset() # get all daily download counts of package in the year.
statistics.get_total() # get total number of downloads.
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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scrapypi-0.0.6.tar.gz
.
File metadata
- Download URL: scrapypi-0.0.6.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4434dfdb05903a5f1a55af3a41f336bbec0acbaeb8a2bb32f264680f38900254 |
|
MD5 | 2cc72881e2dbebe78f5adfe071ada90e |
|
BLAKE2b-256 | c928edfbbf85980828877eefb571e28940f444df2589f8cfe6c7c4527cd45e52 |
File details
Details for the file scrapypi-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: scrapypi-0.0.6-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52618203c0116d6c2fb348cd0f47479254d9d2d5a9efd7188cd0095140767019 |
|
MD5 | d0e6dd92ddf410b8ada9890acf739147 |
|
BLAKE2b-256 | a160b1470f93336b931c2b6404b834d9fce5e94522c6827cff5e9b7584b2253f |