Metadata-Version: 2.1
Name: pupalink
Version: 0.1.0a4
Summary: Springer Link Download Module for Python
Home-page: https://github.com/pupagang/pupalink
License: GPL-3.0-or-later
Author: Jimmy Nelle
Author-email: jimmy.nelle@hsw-stud.de
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: aiohttp (>=3.7.4,<4.0.0)
Requires-Dist: beautifulsoup4 (>=4.9.3,<5.0.0)
Requires-Dist: lxml (>=4.6.3,<5.0.0)
Project-URL: Repository, https://github.com/pupagang/pupalink
Description-Content-Type: text/markdown

<img align="right" src="https://user-images.githubusercontent.com/14788425/119204060-d10abc80-ba94-11eb-91a0-72b0d0ab3649.png" height="300px">

# ♞ pupalink

A simple Python module to search and download books from SpringerLink.

---

> 🧪 **This project is still in an early stage of development. Expect breaking
> changes**.

---

## Features

- Search and download books from Springer Link

## Prerequisites

- An active SpringerLink account with premium access.

## Getting started

Sign in to your SpringerLink account and copy the `idp_session` cookie and paste it like below:

```python
from pupalink import Session

session = Session("YOUR_IDP_SESSION")
```

### Example 

```python
from pupalink import Session
from asyncio import get_event_loop

async def main():
    session = Session("YOUR_KEY")
    books = await session.search_book("Rust")

    for book in books:
        await session.download_book(book)

    await session.close()


loop = get_event_loop()
loop.run_until_complete(main())

```
