### Setup Intruder Detector and Download Model Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/IOT/Jupyter/README.md Navigates to the intruder-detector-python directory and executes the setup script to install dependencies and download the specified Intel model. ```bash cd ./setup.sh ``` -------------------------------- ### Setup and Execution Instructions Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Fetch_Contributions/README.md Clone the repository, set up a virtual environment, install dependencies, and run the script with username and organization arguments. ```bash git clone cd Fetch_contributions/ python3 -m venv env source env/bin/activate pip install -r requirements.txt python3 fetch_contributions.py --username --organization ``` -------------------------------- ### Install Libraries Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Torrent to Drive Downloader/leech.ipynb Installs or upgrades pip, setuptools, wheel, and the lbry-libtorrent library. Ensure these are installed before proceeding. ```bash !python -m pip install --upgrade pip setuptools wheel !python -m pip install lbry-libtorrent ``` -------------------------------- ### Clone the Repository Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI_Image_Generator_Telegram_Bot/README.md Clone the repository to your local machine to get started with the project. ```bash git clone https://github.com//Amazing-Python-Scripts cd ai_image_generation_telegram_bot ``` -------------------------------- ### Install the Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/File-Change-Listen/README.md Run this command to install the necessary dependencies for the script. ```bash python install.py ``` -------------------------------- ### Install TV-Controller as Root Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/TV-Remote/README.md Installs the TV-Controller package system-wide using root privileges. ```bash sudo pip3 install cecmap ``` -------------------------------- ### Install Plotly Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Data-Visualization/README.md Install the Plotly library using pip. This is a prerequisite for all the visualization examples. ```bash pip install plotly ``` -------------------------------- ### Install Moto, Boto3, and Flask Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AWS Management Scripts/AWS testing Script/Readme.md Install the necessary Python packages for AWS testing and mocking. Ensure Python is installed first. ```bash pip install moto pip install boto3 pip install Flask ``` -------------------------------- ### Install TV-Controller as User Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/TV-Remote/README.md Installs the TV-Controller package for the current user. Ensure '~/.local/bin' is in your PATH. ```bash pip3 install --user cecmap ``` -------------------------------- ### Install pytube from Source Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Padra's YouTube Downloader/README.md Install the pytube library into your site-packages after cloning or downloading the source code. ```bash cd pytube python -m pip install . ``` -------------------------------- ### Start TV-Controller Service Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/TV-Remote/README.md Starts the TV-Controller application as a user service. ```bash systemctl --user start tv ``` -------------------------------- ### Install Onscreen Keyboard Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/TV-Remote/README.md Installs matchbox-keyboard, an recommended onscreen keyboard utility. ```bash sudo apt install matchbox-keyboard ``` -------------------------------- ### Install google-api-python-client Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Youtube API/README.md Install the necessary Python library for interacting with Google APIs. ```bash pip install google-api-python-client ``` -------------------------------- ### Install spotipy Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Songs-By-Artist/readme.md Install the spotipy library using pip. This is a prerequisite for running the application. ```bash $ pip install spotipy ``` -------------------------------- ### Install pyttsx3 Library Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/PDF-To-Audio/README.md Install the pyttsx3 library, which is a text-to-speech conversion library for Python. ```bash pip install pyttsx3 ``` -------------------------------- ### Install Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/DownTube-Youtube-Downloader/Readme.md Install the required Python libraries, Pytube and Regex, using pip. ```bash pip3 install regex pytube ``` -------------------------------- ### Install Requirements Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Distance-Calculator-GUI/README.md Install the necessary Python packages listed in requirements.txt. ```bash pip install requirements.txt ``` -------------------------------- ### Install Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Automated GoogleSearch using Python/README.md Install the necessary Python library for performing Google searches. ```bash pip install googlesearch ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Login And Signup GUI/README.md Installs the necessary Python packages listed in the requirements.txt file. Ensure you have pip installed. ```bash pip install requirements.txt ``` -------------------------------- ### Install pyppeteer Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Download-page-as-pdf/Readme.md Install the pyppeteer module using pip. ```bash pip3 install pyppeteer ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Movie recommendation system/README.md Installs the necessary Python packages for the movie recommender system. Ensure you have Python and pip installed. ```shell pip install xgboost numpy pandas scikit-learn streamlit ``` -------------------------------- ### Install pytube Library Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Padra's YouTube Downloader/README.md Install the pytube library using pip. This is a prerequisite for the YouTube Downloader. ```bash pip install pytube ``` -------------------------------- ### Install Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Duplicate-File-Finder/README.md Install the required dependencies for the script using pip. ```bash pip3 install -r requiremnts.txt ``` -------------------------------- ### Install Tkinter Library Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Spacex-Calender/README.md Install the python Tkinter library using the apt-get command for Debian-based systems. Alternatively, refer to the official Tkinter installation guide for other systems. ```bash sudo apt-get install python3-tk ``` -------------------------------- ### Example Configuration File Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Google-Search-Newsletter/README.md Provides an example structure for the `config.ini` file, specifying driver, search topic, and email settings. ```ini [your_settings] driver = geckodriver search_topic = Nintendo news email_subject = My newsletter for Nintendo email_smtp = smtp.live.com sender_email_address = sendingemail@live.com email_password = yourpassword receiver_email_address = receiveremail@live.com ``` -------------------------------- ### Install spaCy Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI-based Chatbot for Diverse Topics/README.md Install the spaCy library using pip. This is a prerequisite for running the chatbot. ```bash pip install spacy ``` -------------------------------- ### Install progressbar Package Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Random-Email-Generator/README.md Use this command to install the necessary 'progressbar' package for the script. ```bash $ pip install progressbar ``` -------------------------------- ### Install discord.py Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Discord-Bot/README.md Install the discord.py library using pip. This is a prerequisite for running the bot. ```bash pip install discord ``` -------------------------------- ### View Help Documentation Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Network-troubleshooter/README.md Use this command to display the help documentation for the ipreset.py script, showing available options and usage instructions. ```powershell py ipreset.py -h ``` -------------------------------- ### Run the script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Get_Content_From_Wikipedia/README.md Execute the Python script to get content from Wikipedia. Ensure Python 3 is installed. ```bash python3 Get_Content_From_Wikipedia.py ``` -------------------------------- ### Install Required Modules Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/YouTube-Video-Downloader/README.md Install the necessary Python libraries, tkinter and pytube, using pip. ```bash pip install tkinter pip install pytube ``` -------------------------------- ### Run the Number Guessing Game Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Number-Guess-Game/Readme.md Execute the Python script from your terminal to start the game. Ensure Python 3.x is installed. ```bash python number_guessing_game.py ``` -------------------------------- ### Install Project Requirements Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Agriculture Optimization ML Model/ReadMe.md Install all necessary Python packages for the project using pip. ```bash pip install numpy pandas scikit-learn streamlit matplotlib seaborn ``` -------------------------------- ### Install DateTime Module Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Auto Birthday Wisher/README.md Install the DateTime module for handling date and time values. ```bash pip install DateTime ``` -------------------------------- ### Get Torrent Magnet Link Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Torrent to Drive Downloader/leech.ipynb Prompts the user to paste a torrent or magnet link. This link will be used to start the download. ```python link = input("") # PASTE TORRENT/MAGNET LINK HERE ``` -------------------------------- ### Run the Time Travel Adventure Game Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Time Travel Adventure/README.md Execute the main Python script to start the game. Ensure Python 3.x is installed. ```bash python time_travel_adventure.py ``` -------------------------------- ### Install speedtest-cli Library Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Internet-Speed-Test/README.md Install the speedtest-cli library using pip. This is a prerequisite for the script. ```bash pip install speedtest-cli ``` -------------------------------- ### Run Guess the Word Game Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Guess the Word Game/README.md Execute the Python script from the terminal to start the game. Ensure Python is installed and the script is saved. ```bash python guess_the_word.py ``` -------------------------------- ### Install OpenCV and NumPy Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Cartooning Image/README.md Install the necessary libraries for image processing and numerical operations. ```shell pip install opencv-python pip install numpy ``` -------------------------------- ### Install Required Libraries Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Text-To-Speech/README.md Install the necessary Python libraries for the text-to-speech project using pip. ```bash pip install tkinter pip install gTTS pip install playsound ``` -------------------------------- ### TV-Controller Configuration Example Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/TV-Remote/README.md Example configuration file format for TV-Controller, defining keycodes and mode commands. ```cfg [keycode] KEY = ... [mode.NAME] KEY = [...] ... ``` ```cfg [keycode] left = 123 yellow = 321 ... [mode.Keyboard] left = key left yellow = launch kodi ... ``` -------------------------------- ### Display Help Information Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/File-Encrypter/README.md Run the script with the '--help' flag to display usage instructions and available options. ```bash python script.py --help ``` -------------------------------- ### Run the Game Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Reverse Tower Defense Game/README.md Execute the main Python script to start the Reverse Tower Defense Game. Ensure you have Python 3 installed. ```bash python reverse_tower_defense_game.py ``` -------------------------------- ### Install subprocess.run Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Simple Python IDE using Tkinter/README.md Install the subprocess.run module, used for running external commands within the IDE. ```bash pip install subprocess.run ``` -------------------------------- ### Run the Project GUI Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Traffic-Signal-Violation-Detection-System/README.md Execute this command to start the main graphical user interface for the system. ```bash python Project-GUI.py ``` -------------------------------- ### Run Cellular Automaton Wars Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Cellular Automaton Wars/README.md Execute the main script to start the simulation. Ensure you have Python installed and navigate to the script's directory. ```bash python cellular_automaton_wars.py ``` -------------------------------- ### Example CLI command execution Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Auto_Backup/Auto_Backup.ipynb Demonstrates how to execute the Python backup script from the command line with specified target, source, and compression threshold. ```bash !python Auto_backup.py -t ./MIREX_Backup -s ./MIREX_Dataset -c 100000 ``` -------------------------------- ### Run AI Chat Bot Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI Chat Bot/README.md Executes the main Python script to start the AI Chat Bot. This command should be run after all dependencies are installed. ```bash python main.py ``` -------------------------------- ### Initialize MazeSolver and Find Path Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI-based AI Maze Solver/README.md Demonstrates how to import the MazeSolver class, initialize it with a maze, and find the shortest path. ```python from AI_maze_solver import MazeSolver maze_solver = MazeSolver(maze) path = maze_solver.find_path() print("Shortest Path:", path) ``` -------------------------------- ### Run Zoombinis Game Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Zoombinis/README.md Execute the Python script to start the text-based Zoombinis game. Ensure Python is installed and the script is saved as zoombinis_game.py. ```bash python zoombinis_game.py ``` -------------------------------- ### Main Detection Loop Setup Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/IOT/Jupyter/intruder_detector_jupyter.ipynb Sets up parameters for the main detection loop, including FPS calculation, signal handling, and initialization of tracking variables. This prepares the system for continuous video processing. ```python min_fps = min([i.vc.get(cv2.CAP_PROP_FPS) for i in video_caps]) signal.signal(signal.SIGINT, signal_handler, ) no_more_data = [False] * len(video_caps) start_time = time.time() inf_time = 0 next_request_id = 1 cur_request_id = 0 ``` -------------------------------- ### Run Typing Speed Test Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Typing-Speed-Test/README.md Execute the main Python script to start the typing speed test. Ensure Python is installed on your system. ```bash python speed_test.py ``` -------------------------------- ### Install pdf2docx and Run Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/PDFToWord/README.md Instructions for installing the necessary library and running the main Python script to perform the PDF to Word conversion. ```bash cd PDFtoWord pip install pdf2docx python main.py ``` -------------------------------- ### Run Dot Connect Game Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Dot_Connect/README.md Execute the Python script to start the Dot Connect game. Ensure Python is installed and the script is in your current directory. ```bash python dot_connect.py ``` -------------------------------- ### Run the Cryptic Language Game Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Cryptic Language Puzzle Game/README.md Execute this command in your terminal to start the Python game. Ensure you have Python installed and have navigated to the game's directory. ```shell python cryptic_language_game.py ``` -------------------------------- ### Install Selenium Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Instagram Follow- NotFollow/README.md Install the Selenium library using pip. This is a required dependency for browser automation. ```bash pip3 install selenium ``` -------------------------------- ### Run Number Plate Detection Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Num-Plate-Detector/README.md Execute the main Python script to start the number plate detection process. Ensure Tesseract 4 and other dependencies are installed. ```bash python number_plate.py ``` -------------------------------- ### Run AI-driven AI Reversi Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI-driven AI Reversi/README.md Execute the main Python script to start the AI-driven AI Reversi game. Ensure Python 3.6 or higher is installed. ```bash python AI_reversi.py ``` -------------------------------- ### Initialize VideoWriter and Load Model Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/IOT/Jupyter/intruder_detector_jupyter.ipynb Initializes video writers for each video source and loads the inference network model. This setup is crucial before starting the main detection loop. ```python # Initializing VideoWriter for each source if UI and not LOOP_VIDEO: for video_cap in video_caps: ret, ret_value = video_cap.init_vw(int(video_cap.input_height), int(video_cap.input_width)) if ret != 0: return ret, ret_value # Initialise the class infer_network = Network() # Load the network to IE plugin to get shape of input layer n, c, h, w = infer_network.load_model(model_xml, TARGET_DEVICE, 1, 1, 2, CPU_EXTENSION)[1] # Arrange windows so that they are not overlapping arrange_windows() ``` -------------------------------- ### Maze Representation Example Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI-based AI Maze Solver/README.md Defines a sample maze using a 2D array. 0 represents empty cells, 1 represents walls, and 2 represents the starting position. ```python maze = [ [1, 1, 0, 0, 0], [0, 1, 1, 0, 1], [0, 0, 0, 0, 1], [1, 1, 0, 1, 0], [2, 0, 0, 1, 1], ] ``` -------------------------------- ### Run Domain Name Availability Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Domain_Name_Availability/README.md Execute the Python script to start checking for available domain names. Ensure all setup steps, including API key configuration, are completed beforehand. ```sh $ python Domain_name.py ``` -------------------------------- ### Sample Usage: Platform Not Found Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Search-Username/README.md Example demonstrating the output when a username is not found on a specified platform like GitHub. ```bash $ python search_user.py -u vybhav_72954 -t github Error 404, Not Found vybhav_72954 at https://www.github.com/vybhav_72954 ``` -------------------------------- ### Get Questions Data from Stack Overflow Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/StackOverflow-Scraper/README.md Use the .getQuestions() method to retrieve questions, views, votes, answer counts, and descriptions in JSON format. This example demonstrates how to parse the JSON and print the details for each question. ```python que = StackOverflow("github") scrape = que.getQuestions() json = json.loads(scrape) questions = json["questions"] for q in questions: print("\nQuestion: ", q["question"]) print("Views: ", q["views"]) print("Votes: ", q["vote_count"]) print("Answers: ", q["answer_count"]) print("Description: ", q["description"]) ``` -------------------------------- ### Tkinter GUI Setup Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Search Bot/Search_Bot.ipynb This code sets up the main Tkinter window for the search bot application. It includes widgets for search input, a submit button, a button to generate a word cloud, and a canvas to display the word cloud. The main event loop is started to run the application. ```python # Create window window = tk.Tk() window.title("Search bot") window.geometry('600x700') # Search box search_label = tk.Label(window, text="Enter search query:",font=('Calibri',14)) search_label.pack(pady=(10,0)) search_box = tk.Entry(window, font=('Calibri', 14)) search_box.pack(pady=(0,10)) # Submit button submit_button = tk.Button(window, text="Submit", command=search_and_display) submit_button.pack(pady=(0,10)) # Word cloud button and canvas word_button = tk.Button(window, text="Generate Word Cloud", command=generate_and_show_wordcloud) word_button.pack() canvas = tk.Canvas(window, width=400, height=400) canvas.pack( padx=20) output_label = tk.Label(window, text="Website content:",font=('Calibri',14)) output_label.pack() output_text = tk.Text(window, height=10) output_text.pack() window.mainloop() ``` -------------------------------- ### Client Terminal 1 Output Example Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI_Guess_a_number/README.md This demonstrates the interaction from the perspective of the first player's client terminal, showing guesses and feedback. ```vbnet Connected to the server. Guess the number: 50 Your guess is too low. Try again. Guess the number: 75 Your guess is too high. Try again. Guess the number: 62 Your guess is too high. Try again. Guess the number: 56 Congratulations! You guessed the number. ``` -------------------------------- ### Install Composer Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/IOT/UI/readme.md Installs project dependencies using Composer. Requires Composer to be installed on the system. ```bash sudo apt install composer composer install ``` -------------------------------- ### Install QR Code Library Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/QR Code generator GUI/readme.md Install the necessary Python library for QR code generation with PIL support. ```bash pip install qrcode[pil] ``` -------------------------------- ### Install Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/DNS verifier/readme.MD Run this command to install all required Python modules for the DNS verifier script. ```bash pip3 install -r requirements.txt ``` -------------------------------- ### Install pyrebase4 and firebase Libraries Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/FirebaseScripts/Readme.md Install the required Python libraries for Firebase interaction. Ensure you have Python installed. ```bash pip install pyrebase4 pip install firebase ``` -------------------------------- ### Example script output (copy and compress) Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Auto_Backup/Auto_Backup.ipynb Shows the expected output when the script runs, indicating which files were copied directly and which were compressed and copied. ```text Output: ------------------------- Start copy ------------------------- ______________________________________________________________ Copy ./MIREX_Dataset/categories.txt Copy ./MIREX_Dataset/split-by-categories-lyrics.bat Copy ./MIREX_Dataset/split-by-categories-midi.bat Copy ./MIREX_Dataset/clusters.txt Copy ./MIREX_Dataset\Audio/Place file in folder.bat Compress ./MIREX_Dataset/dataset info.csv Compress ./MIREX_Dataset\Audio\Cluster 1\Agressive/743.mp3 Compress ./MIREX_Dataset\Audio\Cluster 1\Agressive/742.mp3 Compress ./MIREX_Dataset\Audio\Cluster 1\Boisterous/001.mp3 Compress ./MIREX_Dataset\Audio\Cluster 1\Agressive/741.mp3 Compress ./MIREX_Dataset\Audio\Cluster 1\Agressive/750.mp3 Compress ./MIREX_Dataset\Audio\Cluster 1\Agressive/744.mp3 Compress ./MIREX_Dataset\Audio\Cluster 1\Boisterous/008.mp3 Compress ./MIREX_Dataset\Audio\Cluster 1\Agressive/748.mp3 ``` -------------------------------- ### Install Python Libraries Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Document-Summary-Creator/README.md Install the required Python libraries using pip. Ensure you have Python 3.* installed. ```bash pip install sumy spacy neologdn ``` -------------------------------- ### Example Usage of Auto_Backup.py Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Auto_Backup/README.md This command demonstrates how to run the backup script from the command line. Specify the target directory, source directory, and compression level. ```bash python Auto_backup.py -t ./MIREX_Backup -s ./MIREX_Dataset -c 100000 ``` -------------------------------- ### Enable TV-Controller Service Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/TV-Remote/README.md Enables the TV-Controller to run automatically at startup as a user service. ```bash systemctl --user enable tv ``` -------------------------------- ### Install Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Automatic Certificate Generator/Readme.md Installs the necessary Python packages for the certificate generator script. Ensure Python is installed first. ```bash pip install PI pip install Pandas pip install pillow ``` -------------------------------- ### Run Server Script Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI_Guess_a_number/README.md Execute this command in the terminal to start the game server. The server will listen for incoming client connections. ```bash python server.py ``` -------------------------------- ### Install Required Python Packages Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Automated Game Testing Framework/README.md Installs the unittest package using pip. Ensure you have Python and pip installed. ```bash pip install unittest ``` -------------------------------- ### Install Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/AI Chat Bot/README.md Installs the necessary Python packages listed in the requirements.txt file. Ensure you have Python and pip installed. ```bash pip install -r requirements.txt ``` -------------------------------- ### Install Git Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/IOT/Jupyter/README.md Installs the Git version control system on Ubuntu systems. This is a prerequisite for cloning the project repository. ```bash sudo apt-get update && sudo apt-get install git ``` -------------------------------- ### Start Audio Search Web Server Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/audio_detect/README.md Starts the Python web server for the audio search functionality. Navigate to the webserver directory before execution. ```bash cd webserver python main.py ``` -------------------------------- ### Install Python Modules Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Voice_Recorder/README.md Installs the necessary Python modules for the voice recorder application. Ensure you have Python and pip installed. ```bash pip install sounddevice pip install scipy ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/BMI-Calculator-GUI/README.md Change your current directory to the cloned project folder. ```bash cd bmi-calculator ``` -------------------------------- ### Install wittgenstein library Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Cryptocurrency Intermarket Analysis ML Model/CryptoIntermarketAnalysis.ipynb Installs the wittgenstein library, a Python library for rule-based machine learning. ```python !pip install wittgenstein ``` -------------------------------- ### Install Dependencies Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Fraud Detection/README.md Installs the necessary Python libraries for the fraud detection script. Ensure you have Python 3 and pip installed. ```bash pip install pandas scikit-learn imbalanced-learn numpy ``` -------------------------------- ### Install openpyxl Package Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/CSV-To-Excel/README.md Installs the necessary openpyxl library for Excel manipulation. Ensure you have Python 3.6+ and pip installed. ```bash pip install openpyxl ``` -------------------------------- ### Example Folder Structure Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Rename-Multiple-Files/README.md Illustrates the expected directory and file layout before the script is run. The script operates on files within the 'root' directory and its subfolders. ```text main.py root/ | |--- folder1 | | | |- file1.txt | |- file2.txt | |- file2.txt | |--- folder2 | | | |- file1.txt | |- file2.txt | |- file2.txt | |--- folder3 | | | |- file1.txt | |- file2.txt | |- file2.txt ``` -------------------------------- ### Install Fuzzywuzzy and python-Levenshtein Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/String-Matching-Scripts/stringmatching_readme.md Install the necessary libraries for fuzzy string matching. The `[speedup]` option installs python-Levenshtein for better performance. ```bash pip install fuzzywuzzy[speedup] ``` -------------------------------- ### Verify Python Installation Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Linked List/README.md This command verifies if Python is installed on your system and displays its version. Ensure Python is installed before running any scripts. ```bash python --version ``` -------------------------------- ### Clone the repository Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Youtube API/README.md Clone the example script repository from GitHub to your local machine. ```bash git clone https://github.com/your-username/youtube-api-search.git ``` -------------------------------- ### Install Required Libraries Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Dominant-Color-Extraction/readme.md Install necessary Python libraries for dominant color extraction. You can install them individually or use the requirements.txt file. ```bash pip install python-opencv pip install sklearn pip install pandas pip install matplotlib OR pip3 install -r requirements.txt ``` -------------------------------- ### Sample Usage: Multiple Platforms Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Search-Username/README.md Example of checking a username's availability across multiple platforms, showing success and failure cases. ```bash $ python search_user.py -u vybhav_72954 -t instagram github Got it vybhav_72954 in https://www.instagram.com/vybhav_72954 Error 404, Not Found vybhav_72954 at https://www.github.com/vybhav_72954 ``` -------------------------------- ### Example: Download Specific Article Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/GeeksForGeeks_Article_Downloader/README.md Demonstrates how to run the script to download a specific GeeksForGeeks article. The script will prompt for a filename to save the PDF. ```sh python geeksforgeeks_article_downloader.py https://www.geeksforgeeks.org/shortest-path-faster-algorithm/?ref=leftbar-rightbar ``` -------------------------------- ### Install Pandas Package Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Movie recommendation system/movie-recommender-system.ipynb Installs the pandas library using pip and displays its version. Ensure pandas is installed for data manipulation tasks. ```bash !pip install pandas --version ``` -------------------------------- ### Install psutil Library Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/CPU temperature/Readme.md Install the psutil library using pip. This is a prerequisite for the CPU temperature script. ```bash pip install psutil ``` -------------------------------- ### Install Kivy Module Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Galaxy Game/README.md Use this command to install the Kivy module, which is required to run the game. Ensure you have Python 3.9 or higher installed. ```bash # module to be installed: Kivy 2.0.0 [near or higher] pip install Kivy ``` -------------------------------- ### Install tkintertable Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Simple Python IDE using Tkinter/README.md Install the tkintertable library, which is a dependency for the IDE. ```bash pip install tkintertable ``` -------------------------------- ### Install Instaloader Source: https://github.com/avinashkranjan/amazing-python-scripts/blob/main/Instagram-Profile-Pic-Downloader/README.md Use this command to add the instaloader library, which is required for the script to function. ```bash pip3 install instaloader ```