Telegram 隨機色圖,支援每日自動爬取

Overview

Telegram 隨機色圖機器人

使用此原始碼的Bot

開放的隨機色圖機器人: @katonei_bot

已實現的功能

  • 爬取每日R18排行榜
  • 不夠色!再來一張
  • Tag 索引,指定Tag色圖
  • 將爬取到的色圖轉為 WebP 格式儲存,節省空間

需要注意的事件

  • 好久之前的怪東西,代碼質量不保證
  • 請在使用API前修改 cookie.conf,將自己的pixiv登錄cookie填入(R-18內容必須登錄才能請求)
  • 請啟動 app.py, bot.py 兩個 python 檔,app.py 為 WebAPI,運行於 8080
  • 定時任務需要外部實現(定時請求指定API)
  • 可能不支援 Python 3.6 以前的版本

使用教程

1. 安裝依賴庫

pip3 install python-telegram-bot
pip3 install requests
pip3 install web.py
pip3 install pillow

2. 申請 Bot Token (如果你有token可以跳過這一步)

  • 私訊 @BotFather,申請 Bot Token
  • 將申請到的 BotToken 填入 bot.py 的第 7 行,如 123456789:IAWUGHIGEBIEGHEJguegvhsig

3. 啟動 Bot 和 WebAPI

nohup python3 app.py &
nohup python3 bot.py &

4. 手動設定定時任務

  • xxx.xxx.xxx.xxx:8080/api/updateNow 爬取每日 R-18 排行榜 (一天一次)
    • 返回值:ok
  • xxx.xxx.xxx.xxx:8080/api/tagsdb_update 更新tag索引列表 (每次爬取/更新圖庫完成後)
    • 返回值:ok
  • xxx.xxx.xxx.xxx:8080/api/list_update 更新全局索引列表 (每次爬取/更新圖庫完成後)
    • 返回值:ok

5. 結束!導入色圖庫或開始爬取

  • 關於命令:請發送 /help 給Bot查看如何操作
  • 導入色圖庫:我將會在整理完成已有的色圖庫後將其上載

完整API列表

  • xxx.xxx.xxx.xxx:8080/api/num 獲取隨機 imgid ( /webp/ 目錄內的索引)
    • 返回值:隨機imgid,如 19852
  • xxx.xxx.xxx.xxx:8080/api/num_tag?tag=tag名 指定 Tag 的隨機 imgid (需要先更新tag索引列表)
    • 返回值:隨機imgid
  • xxx.xxx.xxx.xxx:8080/api/updateNow 爬取每日 R-18 排行榜
    • 返回值:ok
  • xxx.xxx.xxx.xxx:8080/api/tagsdb_update 更新tag索引列表
    • 返回值:ok
  • xxx.xxx.xxx.xxx:8080/api/list_update 更新全局索引列表
    • 返回值:ok
Owner
cluckbird
cluckbird
Filters to block and remove copycat-websites from DuckDuckGo and Google. Specific to dev websites like StackOverflow or GitHub.

uBlock-Origin-dev-filter Filters to block and remove copycat-websites from DuckDuckGo and Google. Specific to dev websites like StackOverflow or GitHu

1.7k Dec 30, 2022
Coinbase Pro API interface framework and tooling

neutrino This project has just begun. Rudimentary API documentation Installation Prerequisites: Python 3.8+ and Git 2.33+ Navigate into a directory of

Joshua Chen 1 Dec 26, 2021
Crypto Signal Provider - A web application that allows users to select a cryptocurrency

Crypto_Signal_Provider This is a web application that allows users to select a c

Raul 2 Dec 11, 2022
3X Fast Telethon Based Bot

📺 YouTube Song Downloader Bot For Telegram 🔮 3X Fast Telethon Based Bot ⚜ Easy To Deploy 🤗

@Dk_king_offcial 1 Dec 09, 2021
A Twitter Bot that retweets and likes tweets with the hashtag #girlscriptwoc and #girlscript, and also follows the user.

GirlScript Winter of Contributing Twitter Bot A Twitter Bot that retweets and likes tweets with the hashtag #girlscriptwoc and #girlscript, and also f

Pranay Gupta 9 Dec 15, 2022
Picot - A discord bot made to fetch images from Pexels and unsplash API and provide raw images directly in channels

Picot A discord bot made to fetch images from Pexels and unsplash API and provid

Ayush Chandwani 5 Jan 12, 2022
Track to Detect and Segment: An Online Multi-Object Tracker (CVPR 2021)

Track to Detect and Segment: An Online Multi-Object Tracker (CVPR 2021) Track to Detect and Segment: An Online Multi-Object Tracker Jialian Wu, Jiale

Jialian Wu 520 Dec 31, 2022
Telegram Userbot to steram youtube live or Youtube vido in telegram vc by help of pytgcalls

TGVCVidioPlayerUB Telegram Userbot to steram youtube live or youtube vidio in telegram vc by help of pytgcalls Commands = Vidio Playing 🎧 stream :

Achu biju 3 Oct 28, 2022
Trading bot rienforcement with python

Trading_bot_rienforcement System: Ubuntu 16.04 GPU (GeForce GTX 1080 Ti) Instructions: In order to run the code: Make sure to clone the stable baselin

1 Oct 22, 2021
IMDb + Auto + Unlimited Filter BoT

Telegram Movie Bot Features Auto Filter Manuel Filter IMDB Admin Commands Broadcast Index IMDB search Inline Search Random pics ids and User info Stat

Team AlinaX 1 Dec 03, 2021
Previewer for VapourSynth scripts.

Standalone previewer for VapourSynth scripts Fork of Endilll's vapoursynth-preview (not maintained anymore) This program is meant to be paired with a

Irrational Encoding Wizardry 26 Dec 16, 2022
This is a very easy to use tool developed in python that will search for free courses from multiple sites including youtube and enroll in the ones in which it can.

Free-Course-Hunter-and-Enroller This is a very easy to use tool developed in python that will search for free courses from multiple sites including yo

Zain 12 Nov 12, 2022
Slack->DynamDB->Some applications

slack-event-subscriptions About The Project Do you want to get simple attendance checks? If you are using Slack, participants can just react on a spec

UpstageAI 26 May 28, 2022
Public release of Telepathy, an OSINT toolkit for investigating Telegram groups. Enhanced features and improvements will be added over time.

Telepathy Welcome to Telepathy, an OSINT toolkit for scraping Telegram data to help investigate shady goings on. Currently, the tool is limited to scr

Jordan Wildon 484 Jan 01, 2023
Automatically render tens of thousands of unique NFT images individually as png's.

Blend_My_NFTs Description This project is a work in progress (as of Oct 24th, 2021) and will eventually be an add on to Blender. Blend_My_NFTs is bing

Torrin Leonard 894 Dec 29, 2022
This Telegram bot allows you to create direct links with pre-filled text to WhatsApp Chats

WhatsApp API Bot Telegram bot to create direct links with pre-filled text for WhatsApp Chats You can check our bot here. The bot is based on the API p

RobotTrick • רובוטריק 17 Aug 20, 2022
Total servers you're in!

Discord-Servercount With this script you can check the amount of servers you are in, along with statistics of how many servers you are owner in and in

Nickyux 1 Feb 12, 2022
A collection of scripts to steal BTC from Lightning Network enabled custodial services. Only for educational purpose! Share your findings only when design flaws are fixed.

Lightning Network Fee Siphoning Attack LN-fee-siphoning is a collection of scripts to subtract BTC from Lightning Network enabled custodial services b

Reckless_Satoshi 14 Oct 15, 2022
Simple Discord bot for the Collectez community.

Harvey - Discord Bot Simple Discord bot for the Collectez community. Features Ping the current status of Collectez's Teztools node. Steal emojis from

delintkhaum 1 Dec 26, 2021
Zen-Userbot - Userbot gabut With Python

Zen-Userbot Disclaimer ⚠️ PERINGATAN UNTUK ANDA ⚠️ ️ Zen-Userbot

Wahyusaputra 6 Feb 12, 2022