**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.
```bash
$ 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.
```python
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.
```python
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.
```python
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
```
Raw data
{
"_id": null,
"home_page": "",
"name": "scrapypi",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "pypi,information,package,module,stats,info,scrape",
"author": "Erasmus A. Junior",
"author_email": "eirasmx@pm.me",
"download_url": "https://files.pythonhosted.org/packages/3e/0b/4ea8f1bb3119136d3fa987480e60e14cf5b072be76ec857d22c3105e5859/scrapypi-0.0.8.tar.gz",
"platform": null,
"description": "**scrapypi is used to get pypi package information using python.**\n\nscrapypi can be used to get package version, name, licence, author, summary and package download statistics.\n\n## **Insallation**\n\n> python -m pip install scrapypi\n\n## **Usage**\n\nType **scrapypi** in terminal or command prompt to scrapypi file for getting downloads statistics. scrapypi can also be used in code.\n\n```bash\n$ scrapypi\n```\n\nBelow are examples and functions and classes in scrapypi for data fetching.\n\n- info\n- stats\n- version\n\n### **info**\n\nGet package information. You can either get information using package name or package pypi url.\n\n```python\nfrom scrapypi import info, stats, licence\n\n# returns a dictionary of information.\ninfo(<package_name>)\n```\n\nvalues returned by info() is listed below:\n\n- name\n- author\n- licence\n- summary\n- previous_version\n- latest version\n- downloads\n\n### **stats**\n\nGet package full statistics, including download values everyday of package upload, date and number of downloads.\n\n```python\nfrom scrapypi import stats\n\nstatistics = stats(<package_name>)\n\n# get all daily download counts of package in the year.\nstatistics.dataset()\n\n# get total number of downloads.\nstatistics.get_total()\n```\n\n### **version**\n\nYou can also get package name and version using the version function.\n\n```python\nfrom scrapypi import version\n\n# returns package name and version in a tuple. (name, version)\nversion(<package_name>)\n```\n\n> Use the version function if you need to get those information fast. But i recommend using the info function.\n\n### **main**\n\nThe 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 (,)\n\n```\nPackage Name(s): package_one, package_two\n```\n",
"bugtrack_url": null,
"license": "GNU LGPLv3",
"summary": "Get PyPi Package information.",
"version": "0.0.8",
"project_urls": null,
"split_keywords": [
"pypi",
"information",
"package",
"module",
"stats",
"info",
"scrape"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d86be6306b92d3c282d3791f720b122d575fe0eac0978779d55ca7eb4bbffb42",
"md5": "82c3a945e11c0bc6bae0b56bef3a7b00",
"sha256": "a94f87646c2e6ce02c08229c0afee88058d609a44f300f0d0c2ce5c475d4df96"
},
"downloads": -1,
"filename": "scrapypi-0.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "82c3a945e11c0bc6bae0b56bef3a7b00",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 8969,
"upload_time": "2023-07-24T01:22:57",
"upload_time_iso_8601": "2023-07-24T01:22:57.663240Z",
"url": "https://files.pythonhosted.org/packages/d8/6b/e6306b92d3c282d3791f720b122d575fe0eac0978779d55ca7eb4bbffb42/scrapypi-0.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3e0b4ea8f1bb3119136d3fa987480e60e14cf5b072be76ec857d22c3105e5859",
"md5": "cedd1c7baac951856a2bb01c3b9ed89f",
"sha256": "733013b98c7b26ab65bc84aba136e1f66220e6101807c07a1532bd5c0eab5ea1"
},
"downloads": -1,
"filename": "scrapypi-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "cedd1c7baac951856a2bb01c3b9ed89f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 8557,
"upload_time": "2023-07-24T01:22:59",
"upload_time_iso_8601": "2023-07-24T01:22:59.294954Z",
"url": "https://files.pythonhosted.org/packages/3e/0b/4ea8f1bb3119136d3fa987480e60e14cf5b072be76ec857d22c3105e5859/scrapypi-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-24 01:22:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "scrapypi"
}