No description
- Python 95.2%
- Dockerfile 4.8%
| scibot | ||
| tests | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .python-version | ||
| docker-compose.yml | ||
| Dockerfile | ||
| mise.toml | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Scibot
A bot for downloading paper from open-access or scihub automatically, with a python companion library.
This work is highly WIP. The pdf are not stored in any way.
Library usage
from scibot import PaperHelper
helper = PaperHelper.from_doi("https://doi.org/10.1145/3375633")
helper.download()
Bot usage
/get_paper ref:doi prefer:oa
The permission needed are : use slash command, send message, attach files.
Hosting
You can either install the library with pip and run the bot with the command
scibot (I highly recommand using a systemd unit or any other way to deal with
such long-running service)
pip install git+https://gitlab.com/celliern/scibot
scibot
With two mandatory env variable :
BOT_TOKEN=... # You have to create a discord bot
UNPAYWALL_EMAIL=your@email.com
or use the docker file / docker-compose image.
The image is also available at registry.gitlab.com/celliern/scibot : a simple
docker container will look like
version: "3"
services:
scibot:
image: registry.gitlab.com/celliern/scibot:latest
environment:
- BOT_TOKEN=...
- UNPAYWALL_EMAIL=...
restart: "unless-stopped"