Metadata-Version: 2.1
Name: lst
Version: 0.4.0
Summary: Declarative Scraping Tools
Home-page: https://github.com/andriystr/LST
Author: Andriy Stremeluk
Author-email: astremeluk@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: bs4
Requires-Dist: monapy
Requires-Dist: requests

LST
===

Declarative Scraping Tools
---

**Fetch** - get content (requests library)

**Scan** - select tags by css selector (bs4 library)

### Example

```python

from lst import Fetch, Scan

parser = Fetch() >> Scan('a') >> Fetch() >> {'h1': Scan('h1'), 'h5': Scan('h5')}

for res in parser('http://some.site'):
    if 'h1' in res:
        tag = res['h1']
        print('H1', tag.get_text())
    if 'h5' in res:
        tag = res['h5']
        print('H5', tag.get_text())

```
