Metadata-Version: 2.1
Name: scrapypi
Version: 0.0.5
Summary: Get PyPi Package information.
Author: Erasmus A. Junior
Author-email: eirasmx@pm.me
License: GNU LGPLv3
Keywords: pypi,information,package,module,stats,info,scrape
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENCE.txt

**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.

```python
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.

```python
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.



## **:- Change Log -:**

> **0.0.1** -- [ 16 JULY 2023 ]  
> [ NOTICE ]  
> [ ! ] - Initial Release

> **0.0.2** -- [ 16 JULY 2023 ]  
> [ FIXED ]  
> [+] - Import and Run

> **0.0.3** -- [ 17 JULY 2023 ]  
> [ ADDED ]  
> [+] Package download statistics  
> [+] More Package info

> **0.0.4** -- [ 18 JULY 2023 ]  
> [ FIXED ]  
> [+] - windows support

> **0.0.5** -- [ 18 JULY 2023 ]  
> [ FIXED ]  
> [+] - temp file furge
