Giter Club home page Giter Club logo

yt-search-bot's Introduction

YouTube search bot (yt-search-bot)

What is this repository about?

This project is a Node.js Telegraf (Telegram) bot to share YouTube channel videos.

This is the code powering @ytsearchbot.

How it works?

People says "images are worth thousands of words". Let's make that sentence true:

@ytsearchbot Faze Clan

Results:

image

Press on any video, for example the third.

Result:

image

This Telegram Bot basically reacts to inline queries: input a YouTube channel nickname and just wait. Last results will appear with thumbnail, title and description... Press on them and you can share its link to every people you're talking it, fast and easy, without even open your YouTube app!

About this repo

This repository is based on my repository about Telegram bots based on Telegraf. For more details about how to quickstart a Telegraf bot for Telegram app and how to configure additional features, check: https://github.com/Finalgalaxy/telegram-telegraf-bot

tl;dr?

Once you cloned the repository: git clone https://github.com/Finalgalaxy/yt-search-bot, you need to enter into project dir: cd yt-search-bot and type npm install to install all dependencies.

Create a config.js file in the root of this project with the following info:

module.exports = {
    // API key for YouTube
    youtube_api_key:'YOUR_YOUTUBE_API_KEY',

    // API key for Telegram
    telegraf_token:'YOUR_TELEGRAM_API_KEY'
};

For YouTube API key, check: https://developers.google.com/youtube/registering_an_application#Create_API_Keys

For Telegram API key, check https://github.com/Finalgalaxy/telegram-telegraf-bot and follow README instructions about how to create a Telegram Bot.

Once you've set up your API key, just type: npm start ...done!

yt-search-bot's People

Contributors

fabnicolas avatar

Watchers

James Cloos avatar

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.