From b7230f056661cc94dcfd343e19c84b0f49ce3210 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Tue, 6 Jun 2023 10:41:34 +0530 Subject: [PATCH 1/5] This is a Movie Recommendation Bot This is the movie recommendation bot using python which recommends movies as per the genre input by the user using python imdb library. Please previously install IMDB library from cmd or shell or terminal which I mentioned in Readme file. --- .../# Movie Recommendation Bot.py | 46 +++++++++++++++++++ Movie Recommendation Bot1/Readme.md | 9 ++++ 2 files changed, 55 insertions(+) create mode 100644 Movie Recommendation Bot1/# Movie Recommendation Bot.py create mode 100644 Movie Recommendation Bot1/Readme.md diff --git a/Movie Recommendation Bot1/# Movie Recommendation Bot.py b/Movie Recommendation Bot1/# Movie Recommendation Bot.py new file mode 100644 index 0000000..7340e29 --- /dev/null +++ b/Movie Recommendation Bot1/# Movie Recommendation Bot.py @@ -0,0 +1,46 @@ +# Movie Recommendation Bot + +import random +import imdb + +def get_movie_recommendation(genre): + ia = imdb.IMDb() + + # Search for movies based on the genre + movies = ia.search_movie(genre) + + if not movies: + return "Sorry, I couldn't find any movies in that genre." + + # Select a random movie from the search results + movie = random.choice(movies) + + # Retrieve the movie details + ia.update(movie) + title = movie["title"] + year = movie["year"] + rating = movie["rating"] + plot = movie["plot"][0] + + recommendation = f"Title: {title}\nYear: {year}\nRating: {rating}\nPlot: {plot}" + + return recommendation + +def main(): + print("Welcome to the Movie Recommendation Bot!") + print("Enter a genre and I'll recommend a movie for you.") + + while True: + genre = input("Enter a movie genre (e.g., action, comedy, romance): ") + + if genre.lower() == "exit": + break + + recommendation = get_movie_recommendation(genre) + + print("\nRecommendation:") + print(recommendation) + print() + +if __name__ == "__main__": + main() diff --git a/Movie Recommendation Bot1/Readme.md b/Movie Recommendation Bot1/Readme.md new file mode 100644 index 0000000..11a7515 --- /dev/null +++ b/Movie Recommendation Bot1/Readme.md @@ -0,0 +1,9 @@ +# Movie Recommendation Bot + +A Movie Recommendation Bot written in Python by [Aman Kumar](https://github.com/amankumar100) + +## Basic Installation Requirement +## You have to install IMDB python library +In CMD Run this Command : pip install IMDbPY + +## Now run the code to get the output. You can directly run it or use the terminal on VSCode \ No newline at end of file From 7f35e0f07323f2377b27daf73dcbf16ea75c7052 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Tue, 6 Jun 2023 11:09:37 +0530 Subject: [PATCH 2/5] Morse - text converter The code converts Morse to Text and Text to Morse using Python. --- .../# Morse code converter.py | 55 +++++++++++++++++++ Morse - Text Convertor/Readme.md | 5 ++ .../# Movie Recommendation Bot.py | 0 .../Readme.md | 0 4 files changed, 60 insertions(+) create mode 100644 Morse - Text Convertor/# Morse code converter.py create mode 100644 Morse - Text Convertor/Readme.md rename {Movie Recommendation Bot1 => Movie Recommendation Bot}/# Movie Recommendation Bot.py (100%) rename {Movie Recommendation Bot1 => Movie Recommendation Bot}/Readme.md (100%) diff --git a/Morse - Text Convertor/# Morse code converter.py b/Morse - Text Convertor/# Morse code converter.py new file mode 100644 index 0000000..7ec5622 --- /dev/null +++ b/Morse - Text Convertor/# Morse code converter.py @@ -0,0 +1,55 @@ +# Morse code converter + +morse_code = { + 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', + 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '...', 'T': '-', + 'U': '..-', 'V': '...-', 'W': '.--', 'X': '-..-', 'Y': '-.--', 'Z': '--..', '0': '-----', '1': '.----', '2': '..---', + '3': '...--', '4': '....-', '5': '.....', '6': '-....', '7': '--...', '8': '---..', '9': '----.' +} + +def text_to_morse(text): + morse = "" + for char in text: + if char.upper() in morse_code: + morse += morse_code[char.upper()] + " " + elif char == " ": + morse += " " + return morse.strip() + +def morse_to_text(morse): + text = "" + morse_words = morse.split(" ") + for morse_word in morse_words: + morse_chars = morse_word.split(" ") + for morse_char in morse_chars: + for key, value in morse_code.items(): + if value == morse_char: + text += key + text += " " + return text.strip() + +def main(): + print("Morse Code and Text Converter") + + while True: + print("\n1. Text to Morse Code") + print("2. Morse Code to Text") + print("3. Quit") + + choice = input("\nEnter your choice (1-3): ") + + if choice == "1": + text = input("\nEnter the text: ") + morse = text_to_morse(text) + print("Morse Code:", morse) + elif choice == "2": + morse = input("\nEnter the Morse code: ") + text = morse_to_text(morse) + print("Text:", text) + elif choice == "3": + break + else: + print("Invalid choice. Please try again.") + +if __name__ == "__main__": + main() diff --git a/Morse - Text Convertor/Readme.md b/Morse - Text Convertor/Readme.md new file mode 100644 index 0000000..cc1d6f8 --- /dev/null +++ b/Morse - Text Convertor/Readme.md @@ -0,0 +1,5 @@ +# Morse Code Converter + +# A Morse Code Converter written in Python by [Aman Kumar](https://github.com/amankumar100) + +## Run the code to get the output. You can directly run it or use the terminal on VSCode. \ No newline at end of file diff --git a/Movie Recommendation Bot1/# Movie Recommendation Bot.py b/Movie Recommendation Bot/# Movie Recommendation Bot.py similarity index 100% rename from Movie Recommendation Bot1/# Movie Recommendation Bot.py rename to Movie Recommendation Bot/# Movie Recommendation Bot.py diff --git a/Movie Recommendation Bot1/Readme.md b/Movie Recommendation Bot/Readme.md similarity index 100% rename from Movie Recommendation Bot1/Readme.md rename to Movie Recommendation Bot/Readme.md From afa93ab81392a0810ad5bc6068bcbb8150788b7c Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Thu, 8 Jun 2023 11:50:43 +0530 Subject: [PATCH 3/5] Youtube Subscriber count bot It is a bot counts the subscribers of Youtube using python as a programming language. --- Youtube Subscriber count bot/Readme | 9 ++++ Youtube Subscriber count bot/Youtubecount.py | 52 ++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 Youtube Subscriber count bot/Readme create mode 100644 Youtube Subscriber count bot/Youtubecount.py diff --git a/Youtube Subscriber count bot/Readme b/Youtube Subscriber count bot/Readme new file mode 100644 index 0000000..b9eef75 --- /dev/null +++ b/Youtube Subscriber count bot/Readme @@ -0,0 +1,9 @@ +# Youtube subscriber counter Bot + +A Youtube subscriber counter Bot written in Python by [Aman Kumar](https://github.com/amankumar100) + +## Basic Installation Requirement +## You have to install google-api-python-client library +In CMD Run this Command : pip install google-api-python-client + +## Now run the code to get the output. You can directly run it or use the terminal on VSCode \ No newline at end of file diff --git a/Youtube Subscriber count bot/Youtubecount.py b/Youtube Subscriber count bot/Youtubecount.py new file mode 100644 index 0000000..879f038 --- /dev/null +++ b/Youtube Subscriber count bot/Youtubecount.py @@ -0,0 +1,52 @@ +# code for Youtube Subscriber count bot + +import os +import time +import googleapiclient.discovery +from google.oauth2 import service_account + +# Set up credentials +credentials_file = 'credentials.json' # Replace with your credentials file path +credentials = service_account.Credentials.from_service_account_file(credentials_file) +api_service_name = 'youtube' +api_version = 'v3' +client = googleapiclient.discovery.build(api_service_name, api_version, credentials=credentials) + +# YouTube channel ID of the channel you want to monitor +channel_id = 'CHANNEL_ID' # Replace with the desired YouTube channel ID + +# Trigger value for notification +trigger_value = 500 # Replace with your desired trigger value + +# Function to get the subscriber count of the specified channel +def get_subscriber_count(channel_id): + request = client.channels().list(part='statistics', id=channel_id) + response = request.execute() + subscriber_count = int(response['items'][0]['statistics']['subscriberCount']) + return subscriber_count + +# Continuous display +def continuous_display(): + while True: + subscriber_count = get_subscriber_count(channel_id) + print(f"Subscriber count: {subscriber_count}") + time.sleep(60) # Delay between each check (in seconds) + +# Notification function +def check_trigger_value(): + while True: + subscriber_count = get_subscriber_count(channel_id) + print(f"Subscriber count: {subscriber_count}") + if subscriber_count > trigger_value: + print("Subscriber count has crossed the trigger value!") + # Add your notification logic here + break + time.sleep(60) # Delay between each check (in seconds) + +# Uncomment one of the following lines to choose the desired mode + +# Continuous display mode +# continuous_display() + +# Notification mode +# check_trigger_value() From 55466ad4a653e56719f6b6e005025f5d1e00e992 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Thu, 8 Jun 2023 12:21:33 +0530 Subject: [PATCH 4/5] Instragram Follower count bot A bot that counts the number of followers of Instagram. --- .../# Python Instragram Follower count bot.py | 40 +++++++++++++++++++ Instragram Follower count bot/Readme | 9 +++++ 2 files changed, 49 insertions(+) create mode 100644 Instragram Follower count bot/# Python Instragram Follower count bot.py create mode 100644 Instragram Follower count bot/Readme diff --git a/Instragram Follower count bot/# Python Instragram Follower count bot.py b/Instragram Follower count bot/# Python Instragram Follower count bot.py new file mode 100644 index 0000000..910f44b --- /dev/null +++ b/Instragram Follower count bot/# Python Instragram Follower count bot.py @@ -0,0 +1,40 @@ +# Python Instragram Follower count bot + +from instagram_private_api import Client, ClientCompatPatch + +# Instagram username and password +username = 'YOUR_USERNAME' +password = 'YOUR_PASSWORD' + +# Function to get the follower count of the specified Instagram account +def get_follower_count(username): + api = Client(username, password) + user_info = api.username_info(username) + follower_count = user_info['user']['follower_count'] + return follower_count + +# Continuous display +def continuous_display(): + while True: + follower_count = get_follower_count(username) + print(f"Follower count: {follower_count}") + time.sleep(60) # Delay between each check (in seconds) + +# Notification function +def check_trigger_value(): + while True: + follower_count = get_follower_count(username) + print(f"Follower count: {follower_count}") + if follower_count > trigger_value: + print("Follower count has crossed the trigger value!") + # Add your notification logic here + break + time.sleep(60) # Delay between each check (in seconds) + +# Uncomment one of the following lines to choose the desired mode + +# Continuous display mode +# continuous_display() + +# Notification mode +# check_trigger_value() diff --git a/Instragram Follower count bot/Readme b/Instragram Follower count bot/Readme new file mode 100644 index 0000000..4122184 --- /dev/null +++ b/Instragram Follower count bot/Readme @@ -0,0 +1,9 @@ +# Instagram Follower Count Bot + +A Instagram Follower Count Bot written in Python by [Aman Kumar](https://github.com/amankumar100) + +## Basic Installation Requirement +## You have to install instagram-private-api library +In CMD Run this Command : pip install instagram-private-api + +## Now run the code to get the output. You can directly run it or use the terminal on VSCode \ No newline at end of file From e8ebafaa23ed4678b17a15486ff495c6cfac2785 Mon Sep 17 00:00:00 2001 From: Aman Kumar <121876356+amankumar100@users.noreply.github.com> Date: Sat, 28 Jun 2025 22:28:40 +0530 Subject: [PATCH 5/5] Update main.py --- Discord_Bot/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Discord_Bot/main.py b/Discord_Bot/main.py index a661576..eedfc66 100644 --- a/Discord_Bot/main.py +++ b/Discord_Bot/main.py @@ -14,7 +14,6 @@ client = commands.Bot(command_prefix="-") songlist = Queue(maxsize=10) - @client.event async def on_ready(): print("We have logged in as {0.user}".format(client))