Metadata-Version: 2.4
Name: grabpy
Version: 0.1.2
Summary: Simple package for requesting web pages that respects robots.txt
Author-email: Riain Ó Tuathail <rotuathail01@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/belfastkeyboard/grabpy
Project-URL: Issues, https://github.com/belfastkeyboard/grabpy/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: requests==2.32.5
Dynamic: license-file

# Grabpy

Simple respectful web scraper

## INSTALLING

How to install Grabpy.

```bash
pip install grabpy
```

## USING

How to use Grabpy to fetch pages or download content.

```python
from grabpy import Grabber

with Grabber('useragent/0.1', retries=3) as grabber:
    content = grabber.get('https://www.example.org')
    
    if grabber.download('https://www.example.org/music.mp3', 'music.mp3'):
        print('Download successful.')
    else:
        print('Download failed.')
```

## LOGGING

How to enable logging for this package.

```python
import logging

logging.basicConfig(level=logging.DEBUG)
logging.getLogger('grabpy').setLevel(logging.DEBUG)
logging.getLogger().setLevel(logging.WARNING)
```
