Skip to content
/ nazurin Public
forked from y-young/nazurin

๐ŸŽ‰ Images collection done right. Telegram ๅ›พ็‰‡ๆ”ถ่—ๆœบๅ™จไบบ / A Telegram bot which helps you collect ACG illustrations.

License

Notifications You must be signed in to change notification settings

MSKNET/nazurin

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Nazurin

Codacy Badge

Documentation | ไธญๆ–‡ๆ–‡ๆกฃ

ๅฐใ•ใชๅฐใ•ใช่ณขๅฐ†, a Telegram bot that helps you collect ACG illustrations from various sites.

Architecture

architecture.png

Features

  • View/Download artwork from various sites
  • Add images to your collection via Telegram
  • Store your collection in Telegram channels
  • Store images on multiple types of storage
  • Store image metadata in multiple types of database

Supported Sites

Name URL Commands Collection
Pixiv https://www.pixiv.net/ โœ” โœ”
Danbooru https://danbooru.donmai.us/ โœ” โœ”
Safebooru https://safebooru.donmai.us/ โœ”
yandere https://yande.re/ โœ” โœ”
Konachan https://konachan.com/ โœ” โœ”
Lolibooru https://lolibooru.moe/ โœ”
Zerochan https://www.zerochan.net/ โœ” โœ”
Gelbooru https://gelbooru.com/ โœ”
Twitter https://twitter.com/ โœ” โœ”
ArtStation https://www.artstation.com/ โœ”
Wallhaven https://wallhaven.cc/ โœ”
Bilibili Dynamics https://t.bilibili.com/ โœ”
Weibo https://weibo.com/ โœ”
DeviantArt https://www.deviantart.com/ โœ”
Lofter https://www.lofter.com/ โœ”
Kemono.party https://kemono.party/ โœ”
Bluesky https://bsky.app/ โœ”

Supported Databases

Driver Usage Config Value Note
TinyDB TinyDB Local Default
Firestore Firestore Firebase
MongoDB MongoDB Mongo MongoDB Atlas supported
Cloudant Cloudant Cloudant

You can also implement your own database driver by creating a file under database folder, and set this option to the name of driver class.

Supported Storage

Name Usage Config Value Note
Local Local Local Default
Telegram Telegram Telegram Added in v2
MEGA MEGA Mega
Google Drive Google Drive GoogleDrive
OneDrive OneDrive OneDrive
S3 S3 S3

Configuration

For more information, see Documentation.

Deploy

For more deploy options, checkout Documentation.

Manual

Tips: You may comment out unused dependencies in requirements.txt before installation.

  1. Install dependencies: pip install -r requirements.txt
  2. Set the required environment variables or place them in .env file, you may refer to .env.example as an example
  3. Start the bot: python -m nazurin

Docker

  1. Configure the options in .env
  2. Run docker-compose up -d to use the lastet pre-built Docker images. (Alternatively, you may build the image yourself: docker-compose up -d --build)

Usage

Use /help command to get a list of available commands or help for a specific command, use /set_commands to set bot commands in command menu.

Some system commands are listed below:

  • /clear_cache โ€” Clear cache
  • /help [COMMAND] โ€” Get help of all commands or a specific command
  • /ping โ€” Pong
  • /set_commands โ€” Set commands
  • /start โ€” Get help

How to update your collection

Send the bot a message with a link of supported sites, this message will be forwarded to GALLERY channel, the bot will then download the original images from the site, send the files to ALBUM channel, and finally store to your custom destinations.

Tips: On mobile you can use the share button in apps, as long as the final message contains a link.

About

๐ŸŽ‰ Images collection done right. Telegram ๅ›พ็‰‡ๆ”ถ่—ๆœบๅ™จไบบ / A Telegram bot which helps you collect ACG illustrations.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 99.2%
  • Other 0.8%