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.
- info
- stats
- version
info
Get package information. You can either get information using package name or package pypi url.
from scrapypi import info, stats, licence
# returns a dictionary of information.
info(<package_name>)
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>)
# get all daily download counts of package in the year.
statistics.dataset()
# get total number of downloads.
statistics.get_total()
version
You can also get package name and version using the version function.
from scrapypi import version
# returns package name and version in a tuple. (name, version)
version(<package_name>)
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
Metadata
Release files for scrapypi 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scrapypi-0.0.8.tar.gz | 8.6 kB | Without provenance | Details for scrapypi-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapypi-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for scrapypi-0.0.8-py3-none-any.whl |
Total release size: 17.5 kB
Release files / scrapypi-0.0.8.tar.gz
| Download URL | scrapypi-0.0.8.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
733013b98c7b26ab65bc84aba136e1f66220e6101807c07a1532bd5c0eab5ea1
|
|
BLAKE2b-256 checksum How to use checksums |
3e0b4ea8f1bb3119136d3fa987480e60e14cf5b072be76ec857d22c3105e5859
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / scrapypi-0.0.8-py3-none-any.whl
| Download URL | scrapypi-0.0.8-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a94f87646c2e6ce02c08229c0afee88058d609a44f300f0d0c2ce5c475d4df96
|
|
BLAKE2b-256 checksum How to use checksums |
d86be6306b92d3c282d3791f720b122d575fe0eac0978779d55ca7eb4bbffb42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for scrapypi 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.