Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Discord_Bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
@@ -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()
9 changes: 9 additions & 0 deletions Instragram Follower count bot/Readme
Original file line number Diff line number Diff line change
@@ -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
55 changes: 55 additions & 0 deletions Morse - Text Convertor/# Morse code converter.py
Original file line number Diff line number Diff line change
@@ -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()
5 changes: 5 additions & 0 deletions Morse - Text Convertor/Readme.md
Original file line number Diff line number Diff line change
@@ -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.
46 changes: 46 additions & 0 deletions Movie Recommendation Bot/# Movie Recommendation Bot.py
Original file line number Diff line number Diff line change
@@ -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()
9 changes: 9 additions & 0 deletions Movie Recommendation Bot/Readme.md
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions Youtube Subscriber count bot/Readme
Original file line number Diff line number Diff line change
@@ -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
52 changes: 52 additions & 0 deletions Youtube Subscriber count bot/Youtubecount.py
Original file line number Diff line number Diff line change
@@ -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()