Giter VIP home page Giter VIP logo

iwara-telegram-bot's Introduction

Iwara Telegram Bot

Iwara Telegram Bot: your ultimate Python-Telegram-Bot that connects iwara.tv and Telegram.

Demo

https://t.me/Iwara1

Features

  1. dlsub - Download Subscribed
    • Send all videos in the first page of From people you follow to a Telegram chat.
    • Maintain a IwaraTgDB.db to track all videos that have already been sent to the chat.
  2. dlnew - Download New
    • Send all videos in the first page of Recent videos to a Telegram channel.
    • Maintain a IwaraTgDB.db to track all videos that have already been sent to the channel.
    • Add the video description to the comment section of the post.
  3. rank - Get Ranking
    • Send the daily/weekly/monthly/annually ranking of all the videos in IwaraTgDB.db.

Deployment

Prerequisite

To use dlsub for your bot

  • The chat ID of the conversation between you and your bot

To use dlnew for your Telegram channel

  • The chat ID of your Telegram channel
  • The chat ID of the linked discussion group of your Telegram channel

macOS, Ubuntu

  1. Clone the repository
git clone https://github.com/watanabexia/Iwara-Telegram-Bot
  1. Install the dependencies
pip install -r requirements.txt
  1. run the local Telegram Bot API server

⚠️ The following command is for reference only. The actual path for your Telegram Bot Api server depends on how you build it.

cd telegram-bot-api/build/telegram-bot-api/bin
./telegram-bot-api -api-id=<App_api_id> -api-hash=<App_api_hash>

By default, the Telegram Bot API server is running on port 8081. In this case, the Telegram Bot API server url is http://0.0.0.0:8081/bot.

  1. Create a file named config.json inside the repository folder Iwara-Telegram-Bot, with the following content:
{
    "user_info" : {
        "user_name" : <Your Iwara user name>,
        "password" : <Your Iwara Password>
    },
    "telegram_info" : {
        "token" : <Your Bot API Token>,
        "chat_id" : <The chat ID of your bot or channel>,
        "chat_id_discuss": <The chat ID of the linked discussion group>,
        "ranking_id" : <The chat ID of your bot or channel>,
        "APIServer" : <Your Telegram Bot API server url>
    }
}
  1. Bon Appétit
Usage: python {} <mode> <option>
mode can be:
-n/normal: normal mode
-e/ecchi: ecchi mode (NSFW)
option can be:
dlsub: download the latest page of your subscription list
dlnew: download the latest page of the new videos
rank -d/-w/-m/-y: send daily/weekly/monthly/annually ranking of your database

iwara-telegram-bot's People

Contributors

xiatg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

crypset

iwara-telegram-bot's Issues

Problems with the launch. How to start?

Hi.
There are problems with launching the bot.
After installing everything. I can't figure out which command to use.

tried
python main.py e dlsub
and other variations like a "python main.py"

P.s. I have python installed and all other things.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.