From a5a44ad245e02e5618cc66eb156094f51848501f Mon Sep 17 00:00:00 2001 From: Maria Lee Date: Mon, 1 Jul 2024 13:17:34 -0400 Subject: [PATCH 1/3] Updated README links to point to the correct folders --- Get Hexcodes From Websites/README.md | 6 +- .../README.md | 30 ++--- Password Manager/README.MD | 114 +++++++++--------- update_readmes.py | 29 +++++ 4 files changed, 104 insertions(+), 75 deletions(-) create mode 100644 update_readmes.py diff --git a/Get Hexcodes From Websites/README.md b/Get Hexcodes From Websites/README.md index d680f19d..cff9ae3a 100644 --- a/Get Hexcodes From Websites/README.md +++ b/Get Hexcodes From Websites/README.md @@ -1,4 +1,4 @@ -This tools allows you to get a python list formated colors.txt file containing most of the colors(*Hexcodes*) that the website had. - -To use the tool you will need to import bs4 library by doing +This tools allows you to get a python list formated colors.txt file containing most of the colors(*Hexcodes*) that the website had. + +To use the tool you will need to import bs4 library by doing *pip install bs4* \ No newline at end of file diff --git a/Image Manipulation without libraries/README.md b/Image Manipulation without libraries/README.md index d25d0514..c691cccd 100644 --- a/Image Manipulation without libraries/README.md +++ b/Image Manipulation without libraries/README.md @@ -1,15 +1,15 @@ -Image-Manipulation-using-Python-without-external-libraries ---- -Image manipulation techniques in Python without using external libraries like OpenCV, Pillow, etc - -Includes the following manipulations: - -- Channel-wise Addition -- Invert Colors -- Mirror Vertical -- Mirror Horizontal -- Blur(2 methods) -- Resize -- Lightness -- Brightness -- Contrast +Image-Manipulation-using-Python-without-external-libraries +--- +Image manipulation techniques in Python without using external libraries like OpenCV, Pillow, etc + +Includes the following manipulations: + +- Channel-wise Addition +- Invert Colors +- Mirror Vertical +- Mirror Horizontal +- Blur(2 methods) +- Resize +- Lightness +- Brightness +- Contrast diff --git a/Password Manager/README.MD b/Password Manager/README.MD index 3370be0d..169a1554 100644 --- a/Password Manager/README.MD +++ b/Password Manager/README.MD @@ -1,57 +1,57 @@ -# Password Manager - -## Usage -Run the pwd_mgmr.py file and you will be prompted for the rest of the required inputs - -### Getting Started: -1. Select Option (1) Create a new key that will be used to encrypt your password file. -2. Select Option (3) Create a new password file that will be used to hold your encrypted passwords. -3. Select Option (5) Add a new password to the password file. \n - -### Retrieving or Adding Passords: -1. Select Option (2) Load the existing key so it can be used to encrypt new passwords or retrieve passwords from the password file. -2. Select Option (4) Load the existing password file so it can be used to add or retrieve passwords. -3. Select Option (5) Add a new password to the password file. -4. Select Option (6) Retrieve a password for a site. - -## Example - -What would you like to do? - (1) Create a new key - (2) Load an existing key - (3) Create new password file - (4) Load existing password file - (5) Add a new password - (6) Get a password for a site - (7) Get the list of sites - (m) Menu - (h) Help - (q) Quit -Enter your choice: h -Getting Started: - 1. Select Option (1) Create a new key that will be used to encrypt your password file. - 2. Select Option (3) Create a new password file that will be used to hold your encrypted passwords. - 3. Select Option (5) Add a new password to the password file. - -Retrieving or Adding Passords: - 1. Select Option (2) Load the existing key so it can be used to encrypt new passwords or retrieve passwords from the password file. - 2. Select Option (4) Load the existing password file so it can be used to add or retrieve passwords. - 3a. Select Option (5) Add a new password to the password file. - 3b. Select Option (6) Retrieve a password for a site. -Enter your choice: 1 -Invalid Choice! -Enter your choice: 1 -Enter the path: C:\pwds\mykey.key -Enter your choice: 3 -Enter the path: C:\pwds\pwds.pass -Enter your choice: 5 -Enter the site: facebook -Enter the password: password123 -Enter your choice: 6 -What site do you want: facebook -password123 -Enter your choice: 7 -List of Sites: -facebook -Enter your choice: q -Bye! +# Password Manager + +## Usage +Run the pwd_mgmr.py file and you will be prompted for the rest of the required inputs + +### Getting Started: +1. Select Option (1) Create a new key that will be used to encrypt your password file. +2. Select Option (3) Create a new password file that will be used to hold your encrypted passwords. +3. Select Option (5) Add a new password to the password file. \n + +### Retrieving or Adding Passords: +1. Select Option (2) Load the existing key so it can be used to encrypt new passwords or retrieve passwords from the password file. +2. Select Option (4) Load the existing password file so it can be used to add or retrieve passwords. +3. Select Option (5) Add a new password to the password file. +4. Select Option (6) Retrieve a password for a site. + +## Example + +What would you like to do? + (1) Create a new key + (2) Load an existing key + (3) Create new password file + (4) Load existing password file + (5) Add a new password + (6) Get a password for a site + (7) Get the list of sites + (m) Menu + (h) Help + (q) Quit +Enter your choice: h +Getting Started: + 1. Select Option (1) Create a new key that will be used to encrypt your password file. + 2. Select Option (3) Create a new password file that will be used to hold your encrypted passwords. + 3. Select Option (5) Add a new password to the password file. + +Retrieving or Adding Passords: + 1. Select Option (2) Load the existing key so it can be used to encrypt new passwords or retrieve passwords from the password file. + 2. Select Option (4) Load the existing password file so it can be used to add or retrieve passwords. + 3a. Select Option (5) Add a new password to the password file. + 3b. Select Option (6) Retrieve a password for a site. +Enter your choice: 1 +Invalid Choice! +Enter your choice: 1 +Enter the path: C:\pwds\mykey.key +Enter your choice: 3 +Enter the path: C:\pwds\pwds.pass +Enter your choice: 5 +Enter the site: facebook +Enter the password: password123 +Enter your choice: 6 +What site do you want: facebook +password123 +Enter your choice: 7 +List of Sites: +facebook +Enter your choice: q +Bye! diff --git a/update_readmes.py b/update_readmes.py new file mode 100644 index 00000000..0bc3a856 --- /dev/null +++ b/update_readmes.py @@ -0,0 +1,29 @@ +import os + +def update_links(readme_path): + try: + with open(readme_path, 'r') as file: + content = file.read() + + # Example update: replace 'old-link' with 'new-link' + updated_content = content.replace('old-link', 'new-link') + + with open(readme_path, 'w') as file: + file.write(updated_content) + + print(f"Updated {readme_path}") + except Exception as e: + print(f"Failed to update {readme_path}: {e}") + +def find_and_update_readmes(root_dir): + for root, dirs, files in os.walk(root_dir): + for file in files: + if file.lower() == 'readme.md': + file_path = os.path.join(root, file) + update_links(file_path) + +if __name__ == "__main__": + root_directory = '.' # Update this to your repo's root directory if necessary + find_and_update_readmes(root_directory) + + From bc793b9188e4b679055eface892a85854ac4df60 Mon Sep 17 00:00:00 2001 From: Maria Lee Date: Tue, 2 Jul 2024 00:20:33 -0400 Subject: [PATCH 2/3] Updated README links and corrected typos --- Arrange It/README.md | 5 ++++- Auto WiFi Check/README.md | 4 +++- AutoCert/README.md | 3 +++ Automating Emails/README.md | 4 +++- Black Hat Python/README.md | 3 +++ Black Hat Python/chapter_02/README.md | 4 +++- Black Hat Python/chapter_03/README.md | 3 +++ Black Hat Python/chapter_04/README.md | 4 +++- Blackjack/README.md | 4 +++- Cafe Management System/README.md | 4 +++- Chess Board/README.md | 3 +++ Countdown Timer/README.md | 3 +++ Crop Images/README.md | 4 +++- Digital Clock/README.md | 3 +++ Display Popup Window/README.md | 3 +++ Expense Tracker/README.md | 3 +++ Fake Profile/README.md | 3 +++ File Encryption Decryption/README.md | 3 +++ Font Art/README.md | 3 +++ Fractal tree/README.md | 3 +++ Get Hexcodes From Websites/README.md | 4 +++- HTML to Images/README.md | 4 +++- Harvest Predictor/README.md | 4 +++- Image Capture/README.md | 3 +++ Image Manipulation without libraries/README.md | 3 +++ Image to GIF/README.md | 3 +++ JSON to CSV 1/README.md | 4 +++- JSON to CSV 2/README.md | 3 +++ Keylogger/README.md | 3 +++ Keyword Retweet Twitter Bot/README.md | 3 +++ LinkedIn Bot/README.md | 3 +++ Merge Two Images/README.md | 4 +++- Mouse Mover/README.md | 4 +++- PDF to HTML/README.md | 3 +++ PNG To JPG/README.md | 3 +++ Playlist Exchange/README.md | 3 +++ QR Ticket Generator/README.md | 3 +++ README.md | 3 +++ Random Color Generator/README.md | 3 +++ Remove Background/README.md | 4 +++- Rock Paper Scissor 1/README.md | 3 +++ Rock Paper Scissor 2/README.md | 3 +++ Run Then Notify/README.md | 4 +++- Star Pattern/README.md | 3 +++ Take A Break/README.md | 3 +++ Text Recognition/README.md | 4 +++- Text to Image/README.md | 4 +++- Turtle Art/README.md | 4 +++- Turtle Graphics/README.md | 3 +++ Twitter Selenium Bot/README.md | 3 +++ Video Downloader/README.md | 3 +++ Website Cloner/README.md | 3 +++ Wikipedia Data Extractor/README.md | 3 +++ Youtube Downloader/README.md | 4 +++- Youtube Playlist Info Scraper/README.md | 3 +++ freelance-help-program/README.md | 3 +++ 56 files changed, 169 insertions(+), 20 deletions(-) diff --git a/Arrange It/README.md b/Arrange It/README.md index c798ccd7..fb4553fb 100644 --- a/Arrange It/README.md +++ b/Arrange It/README.md @@ -1,4 +1,3 @@ - # Arrange It With the help of this script, files can be moved automatically to the folder that corresponds to their extension (for example, ".jpg" or ".png" ==> "/Pictures," and ".mp4" ==> "/Videos"). @@ -11,5 +10,9 @@ For CLI ```bash python arrangeit.py + + ``` + + \ No newline at end of file diff --git a/Auto WiFi Check/README.md b/Auto WiFi Check/README.md index 768b51bc..d9663cb4 100644 --- a/Auto WiFi Check/README.md +++ b/Auto WiFi Check/README.md @@ -41,4 +41,6 @@ pip install netifaces - \ No newline at end of file + + + \ No newline at end of file diff --git a/AutoCert/README.md b/AutoCert/README.md index e1924307..c2600978 100644 --- a/AutoCert/README.md +++ b/AutoCert/README.md @@ -25,3 +25,6 @@ A Python script to auto generate e-certificates in bulk. + + + \ No newline at end of file diff --git a/Automating Emails/README.md b/Automating Emails/README.md index 54878a3e..26f0523a 100644 --- a/Automating Emails/README.md +++ b/Automating Emails/README.md @@ -1,4 +1,6 @@ # Automating-Emails-on-a-.csv-file
Python program to automate an email personalized birthday message by reading details from a .csv file
-Also includes options to add and remove details from said .csv file \ No newline at end of file +Also includes options to add and remove details from said .csv file + + \ No newline at end of file diff --git a/Black Hat Python/README.md b/Black Hat Python/README.md index bd112248..037a1d45 100644 --- a/Black Hat Python/README.md +++ b/Black Hat Python/README.md @@ -7,3 +7,6 @@ Simply choose a directory (DIR) in which to clone the project using `git clone`, create a new virtual environment or `venv` for it (recommended ) and install the requirements using `pip install`. + + + \ No newline at end of file diff --git a/Black Hat Python/chapter_02/README.md b/Black Hat Python/chapter_02/README.md index 4a90ea8b..9a9a1234 100644 --- a/Black Hat Python/chapter_02/README.md +++ b/Black Hat Python/chapter_02/README.md @@ -40,4 +40,6 @@ python3 ssh_rcmd.py ``` python3 ssh_server.py -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/Black Hat Python/chapter_03/README.md b/Black Hat Python/chapter_03/README.md index 23bc05c2..cc2ed315 100644 --- a/Black Hat Python/chapter_03/README.md +++ b/Black Hat Python/chapter_03/README.md @@ -42,3 +42,6 @@ sudo python3 scanner.py 192.168.1.0 # subnet to target: 192.168.1.0/24 ``` + + + \ No newline at end of file diff --git a/Black Hat Python/chapter_04/README.md b/Black Hat Python/chapter_04/README.md index b302f848..b62920df 100644 --- a/Black Hat Python/chapter_04/README.md +++ b/Black Hat Python/chapter_04/README.md @@ -19,4 +19,6 @@ sudo python3 mail_sniffer_using_BPF_syntax.py ``` python3 arper_1.py python3 arper_2.py -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/Blackjack/README.md b/Blackjack/README.md index 3b14d5bb..845c3433 100644 --- a/Blackjack/README.md +++ b/Blackjack/README.md @@ -1 +1,3 @@ -If a player's first two cards are an ace and a "ten-card" (a picture card or 10), giving a count of 21 in two cards, this is a natural or "blackjack." If any player has a natural and the dealer does not, the dealer immediately pays that player one and a half times the amount of their bet. \ No newline at end of file +If a player's first two cards are an ace and a "ten-card" (a picture card or 10), giving a count of 21 in two cards, this is a natural or "blackjack." If any player has a natural and the dealer does not, the dealer immediately pays that player one and a half times the amount of their bet. + + \ No newline at end of file diff --git a/Cafe Management System/README.md b/Cafe Management System/README.md index 96281c89..b5cf86ab 100644 --- a/Cafe Management System/README.md +++ b/Cafe Management System/README.md @@ -1,4 +1,6 @@ # Cafe Management System - This is a cafe Management System Coded by Python using `tkinter` library. -- You need to install `Pillow`by entering `pip install Pillow`. \ No newline at end of file +- You need to install `Pillow`by entering `pip install Pillow`. + + \ No newline at end of file diff --git a/Chess Board/README.md b/Chess Board/README.md index ac2821d1..5b085375 100644 --- a/Chess Board/README.md +++ b/Chess Board/README.md @@ -13,3 +13,6 @@ Create a chesboard using matplotlib ChessBoard.py + + + \ No newline at end of file diff --git a/Countdown Timer/README.md b/Countdown Timer/README.md index 2b7ce870..416541e7 100644 --- a/Countdown Timer/README.md +++ b/Countdown Timer/README.md @@ -15,3 +15,6 @@ Running the script is pretty easy, open a terminal in the folder where your scri # Author's name [KOTHA V V S AAKASH](https://github.com/AakashKotha) + + + \ No newline at end of file diff --git a/Crop Images/README.md b/Crop Images/README.md index c79b1205..b9c6a35f 100644 --- a/Crop Images/README.md +++ b/Crop Images/README.md @@ -11,4 +11,6 @@ Screenshot/GIF showing the sample use of the script: Added in the same folder Author Name: -Git Username: G0V1NDK \ No newline at end of file +Git Username: G0V1NDK + + \ No newline at end of file diff --git a/Digital Clock/README.md b/Digital Clock/README.md index ac6ed492..3f883211 100644 --- a/Digital Clock/README.md +++ b/Digital Clock/README.md @@ -9,3 +9,6 @@ Incase you have anything to be followed while executing the python script mentio ## Script - Digital Clock DigitalClock.py + + + \ No newline at end of file diff --git a/Display Popup Window/README.md b/Display Popup Window/README.md index 5b14ae03..70a0658a 100644 --- a/Display Popup Window/README.md +++ b/Display Popup Window/README.md @@ -12,3 +12,6 @@ Incase you have anything to be followed while executing the python script mentio Displaying a popup window DisplayPopupWindow.py + + + \ No newline at end of file diff --git a/Expense Tracker/README.md b/Expense Tracker/README.md index 90397b85..29d399b5 100644 --- a/Expense Tracker/README.md +++ b/Expense Tracker/README.md @@ -13,3 +13,6 @@ Run the expense.py file to start the bot: ``` python expense.py ``` + + + \ No newline at end of file diff --git a/Fake Profile/README.md b/Fake Profile/README.md index 3e13d392..5b017be5 100644 --- a/Fake Profile/README.md +++ b/Fake Profile/README.md @@ -12,3 +12,6 @@ Incase you have anything to be followed while executing the python script mentio Get many fake profiles using python FakeProfile.py + + + \ No newline at end of file diff --git a/File Encryption Decryption/README.md b/File Encryption Decryption/README.md index 2e30ccdb..6354c2ee 100644 --- a/File Encryption Decryption/README.md +++ b/File Encryption Decryption/README.md @@ -14,3 +14,6 @@ Files can be encrypted using desired password. fileEncryptDecrypt.py + + + \ No newline at end of file diff --git a/Font Art/README.md b/Font Art/README.md index 79b911fd..c4d2e975 100644 --- a/Font Art/README.md +++ b/Font Art/README.md @@ -10,3 +10,6 @@ Incase you have anything to be followed while executing the python script mentio Display a font art using python FontArt.py + + + \ No newline at end of file diff --git a/Fractal tree/README.md b/Fractal tree/README.md index 0ca9bca5..927fed63 100644 --- a/Fractal tree/README.md +++ b/Fractal tree/README.md @@ -1 +1,4 @@ # Fractal trees in python + + + \ No newline at end of file diff --git a/Get Hexcodes From Websites/README.md b/Get Hexcodes From Websites/README.md index cff9ae3a..725bad24 100644 --- a/Get Hexcodes From Websites/README.md +++ b/Get Hexcodes From Websites/README.md @@ -1,4 +1,6 @@ This tools allows you to get a python list formated colors.txt file containing most of the colors(*Hexcodes*) that the website had. To use the tool you will need to import bs4 library by doing -*pip install bs4* \ No newline at end of file +*pip install bs4* + + \ No newline at end of file diff --git a/HTML to Images/README.md b/HTML to Images/README.md index c13303d1..19dd3b97 100644 --- a/HTML to Images/README.md +++ b/HTML to Images/README.md @@ -7,4 +7,6 @@ Images will be stored in the same folder the script is in. Example use: >Enter the directory of your html file: ./test.html >Enter the name of your image including file format: out.jpg ->(OPTIONAL) Enter the background color you would like: grey \ No newline at end of file +>(OPTIONAL) Enter the background color you would like: grey + + \ No newline at end of file diff --git a/Harvest Predictor/README.md b/Harvest Predictor/README.md index be0e5425..965cc832 100644 --- a/Harvest Predictor/README.md +++ b/Harvest Predictor/README.md @@ -2,4 +2,6 @@ Paddy Harvest Prediction using linear regression machine learning algorithm with html and css frontend with flask backend -to run open the terminal from the directory and run `flask run app.py` \ No newline at end of file +to run open the terminal from the directory and run `flask run app.py` + + \ No newline at end of file diff --git a/Image Capture/README.md b/Image Capture/README.md index 15035303..f2c17204 100644 --- a/Image Capture/README.md +++ b/Image Capture/README.md @@ -6,3 +6,6 @@ The default path would be your current directory. You can also give name to your image using following command: > python3 take_pictures_from_webcam.py --name ImageName + + + \ No newline at end of file diff --git a/Image Manipulation without libraries/README.md b/Image Manipulation without libraries/README.md index c691cccd..6f832f44 100644 --- a/Image Manipulation without libraries/README.md +++ b/Image Manipulation without libraries/README.md @@ -13,3 +13,6 @@ Includes the following manipulations: - Lightness - Brightness - Contrast + + + \ No newline at end of file diff --git a/Image to GIF/README.md b/Image to GIF/README.md index 2cad87f3..8114b3f1 100644 --- a/Image to GIF/README.md +++ b/Image to GIF/README.md @@ -10,3 +10,6 @@ Incase you have anything to be followed while executing the python script mentio Generate gif from Images imageTogif.py + + + \ No newline at end of file diff --git a/JSON to CSV 1/README.md b/JSON to CSV 1/README.md index 1080757f..f464a700 100644 --- a/JSON to CSV 1/README.md +++ b/JSON to CSV 1/README.md @@ -5,4 +5,6 @@ This script converts a JSON file to CSV file. It means that a script (executable) file which is made of text in a programming language, is used to store and transfer the data. Python supports JSON through a built-in package called JSON #### CSV : - It is a simple file format used to store tabular data, such as a spreadsheet or database. \ No newline at end of file + It is a simple file format used to store tabular data, such as a spreadsheet or database. + + \ No newline at end of file diff --git a/JSON to CSV 2/README.md b/JSON to CSV 2/README.md index 66506cf7..df0bbc4b 100644 --- a/JSON to CSV 2/README.md +++ b/JSON to CSV 2/README.md @@ -20,3 +20,6 @@ python main.py + + + \ No newline at end of file diff --git a/Keylogger/README.md b/Keylogger/README.md index a6b7ac4b..c9da3120 100644 --- a/Keylogger/README.md +++ b/Keylogger/README.md @@ -58,3 +58,6 @@ It will generate the encryption key. Paste this key into `DecryptFile.py` & `Key >>> python Keylogger.py ``` You will see that new files are generating on their own. Watch Demonstration of the project [Here](https://www.youtube.com/watch?v=upWCYSoyOt8). + + + \ No newline at end of file diff --git a/Keyword Retweet Twitter Bot/README.md b/Keyword Retweet Twitter Bot/README.md index aad54748..e7bbbfcf 100644 --- a/Keyword Retweet Twitter Bot/README.md +++ b/Keyword Retweet Twitter Bot/README.md @@ -11,3 +11,6 @@ a working example of this is : https://twitter.com/COVID_retweet - Run the file and input the keyword you want to search Done :) + + + \ No newline at end of file diff --git a/LinkedIn Bot/README.md b/LinkedIn Bot/README.md index b7c8c3cd..77c6b462 100644 --- a/LinkedIn Bot/README.md +++ b/LinkedIn Bot/README.md @@ -16,3 +16,6 @@ python scraper.py If suggested you need to download web driver on your system. You can download it from here: https://chromedriver.chromium.org/downloads + + + \ No newline at end of file diff --git a/Merge Two Images/README.md b/Merge Two Images/README.md index 2b57f50c..7c3359cb 100644 --- a/Merge Two Images/README.md +++ b/Merge Two Images/README.md @@ -10,4 +10,6 @@ pip3 install opencv-python * Run the script with: ```bash python3 mergeImages.py -``` \ No newline at end of file +``` + + \ No newline at end of file diff --git a/Mouse Mover/README.md b/Mouse Mover/README.md index bd92b3e1..1c30142f 100644 --- a/Mouse Mover/README.md +++ b/Mouse Mover/README.md @@ -10,4 +10,6 @@ Incase you have anything to be followed while executing the python script mentio ## Script - Chessboard Moves your mouse every 15 seconds -MouseMover.py \ No newline at end of file +MouseMover.py + + \ No newline at end of file diff --git a/PDF to HTML/README.md b/PDF to HTML/README.md index f876e9e2..8e0e6bb5 100644 --- a/PDF to HTML/README.md +++ b/PDF to HTML/README.md @@ -22,3 +22,6 @@ You can install the `pdfkit` library using pip: ```bash pip install pdfkit + + + \ No newline at end of file diff --git a/PNG To JPG/README.md b/PNG To JPG/README.md index 252e45a0..ecd8fd9c 100644 --- a/PNG To JPG/README.md +++ b/PNG To JPG/README.md @@ -27,3 +27,6 @@ python main.py + + + \ No newline at end of file diff --git a/Playlist Exchange/README.md b/Playlist Exchange/README.md index 5cb2e259..29cd6182 100644 --- a/Playlist Exchange/README.md +++ b/Playlist Exchange/README.md @@ -70,3 +70,6 @@ cd Spotify-Youtube-Music-Exchange + + + \ No newline at end of file diff --git a/QR Ticket Generator/README.md b/QR Ticket Generator/README.md index df30f33e..912bf766 100644 --- a/QR Ticket Generator/README.md +++ b/QR Ticket Generator/README.md @@ -18,3 +18,6 @@ This project is a QR ticket generator that converts data from an Excel file into Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request. + + + \ No newline at end of file diff --git a/README.md b/README.md index 27bfc558..e4a55617 100644 --- a/README.md +++ b/README.md @@ -143,3 +143,6 @@ If you liked this repository, support it by starring ⭐ Thank You for being here :) ### Connect 👉 [**Twitter**](https://twitter.com/Dhanush_Nehru) **/** [**Instagram**](https://www.instagram.com/dhanush_nehru/) **/** [**Github**](https://github.com/DhanushNehru/) **/** [**Youtube**](https://www.youtube.com/@dhanushnehru?sub_confirmation=1) **/** [**Newsletter**](https://dhanushn.substack.com/) **/** [**Discord**](https://discord.com/invite/Yn9g6KuWyA) + + + \ No newline at end of file diff --git a/Random Color Generator/README.md b/Random Color Generator/README.md index 0a632e26..f049e3f8 100644 --- a/Random Color Generator/README.md +++ b/Random Color Generator/README.md @@ -23,3 +23,6 @@ - math library - pygame library + + + \ No newline at end of file diff --git a/Remove Background/README.md b/Remove Background/README.md index 8df6e50c..2793b60e 100644 --- a/Remove Background/README.md +++ b/Remove Background/README.md @@ -8,4 +8,6 @@ This script removes bacckground of images. Optionally apply morphology to clean up any extraneous spots Anti-alias the edges Convert a copy of the input to BGRA and insert the mask as the alpha channel - Save the results \ No newline at end of file + Save the results + + \ No newline at end of file diff --git a/Rock Paper Scissor 1/README.md b/Rock Paper Scissor 1/README.md index 04868fbd..ae2c0b6a 100644 --- a/Rock Paper Scissor 1/README.md +++ b/Rock Paper Scissor 1/README.md @@ -3,3 +3,6 @@ ## ✊ ROCK ✊ ## 🖐 PAPER 🖐 ## ✌️ SCISSOR ✌️ + + + \ No newline at end of file diff --git a/Rock Paper Scissor 2/README.md b/Rock Paper Scissor 2/README.md index 7dce0873..2bd743ba 100644 --- a/Rock Paper Scissor 2/README.md +++ b/Rock Paper Scissor 2/README.md @@ -28,3 +28,6 @@ This is a Python implementation of the classic Rock, Paper, Scissors game extend - After completing all rounds, final scores are displayed. - You have the option to play again or exit. + + + \ No newline at end of file diff --git a/Run Then Notify/README.md b/Run Then Notify/README.md index f7d99fa1..ca68a190 100644 --- a/Run Then Notify/README.md +++ b/Run Then Notify/README.md @@ -8,4 +8,6 @@ Please enter your email and password when prompted. These values are _not_ store > This system has a hardcoded gmail smtp server specified. In case of any other smtp server, please update the value in code. > -> **Note**: You may have to enable `less secure app access` in your gmail account. \ No newline at end of file +> **Note**: You may have to enable `less secure app access` in your gmail account. + + \ No newline at end of file diff --git a/Star Pattern/README.md b/Star Pattern/README.md index 9025053c..97a603d1 100644 --- a/Star Pattern/README.md +++ b/Star Pattern/README.md @@ -11,3 +11,6 @@ Incase you have anything to be followed while executing the python script mentio Code to create star pattern starPattern.py + + + \ No newline at end of file diff --git a/Take A Break/README.md b/Take A Break/README.md index d7bf209f..435444f2 100644 --- a/Take A Break/README.md +++ b/Take A Break/README.md @@ -11,3 +11,6 @@ Incase you have anything to be followed while executing the python script mentio Python code to take a break while working long hours TakeABreak.py + + + \ No newline at end of file diff --git a/Text Recognition/README.md b/Text Recognition/README.md index 61220973..f22e56c4 100644 --- a/Text Recognition/README.md +++ b/Text Recognition/README.md @@ -1,4 +1,6 @@ # Image Text Recognition ML Model - To run, you need to install transformers to install type `!pip install transformers` in terminal. -- load image link into `url`. \ No newline at end of file +- load image link into `url`. + + \ No newline at end of file diff --git a/Text to Image/README.md b/Text to Image/README.md index 81fc9869..ee194f48 100644 --- a/Text to Image/README.md +++ b/Text to Image/README.md @@ -10,4 +10,6 @@ python3 code/Python-Scripts/Text-To-Image/text2image.py ``` ## Output -The saved JPEG file will be located in the directory \ No newline at end of file +The saved JPEG file will be located in the directory + + \ No newline at end of file diff --git a/Turtle Art/README.md b/Turtle Art/README.md index c1fa8b33..f6212054 100644 --- a/Turtle Art/README.md +++ b/Turtle Art/README.md @@ -9,4 +9,6 @@ Here we have some cool looking turtle art. ## Prompt Based This include some scripts where based upon user's choice -output would be displayed. Feel free to select your choice. \ No newline at end of file +output would be displayed. Feel free to select your choice. + + \ No newline at end of file diff --git a/Turtle Graphics/README.md b/Turtle Graphics/README.md index 0ab3789d..f46971bd 100644 --- a/Turtle Graphics/README.md +++ b/Turtle Graphics/README.md @@ -11,3 +11,6 @@ Incase you have anything to be followed while executing the python script mentio Code using turtle graphics TurtleGraphics.py + + + \ No newline at end of file diff --git a/Twitter Selenium Bot/README.md b/Twitter Selenium Bot/README.md index e5476732..b079dd5e 100644 --- a/Twitter Selenium Bot/README.md +++ b/Twitter Selenium Bot/README.md @@ -28,3 +28,6 @@ All the following tasks are completely automated without any manual user input. #### Adding likes to tweets on search results of some query ![tweet3gif](https://user-images.githubusercontent.com/44807945/87979877-5aa5d280-caf0-11ea-8738-f2c29a37edca.gif) + + + \ No newline at end of file diff --git a/Video Downloader/README.md b/Video Downloader/README.md index 77fc4078..39e981ea 100644 --- a/Video Downloader/README.md +++ b/Video Downloader/README.md @@ -10,3 +10,6 @@ Incase you have anything to be followed while executing the python script mentio VideoDownloader.py + + + \ No newline at end of file diff --git a/Website Cloner/README.md b/Website Cloner/README.md index 91e2c1da..a7a616da 100644 --- a/Website Cloner/README.md +++ b/Website Cloner/README.md @@ -10,3 +10,6 @@ http://127.0.0.1:7000/ Enter a website link and click Clone Now It downloads the website and loads the home page of the website in your local IP + + + \ No newline at end of file diff --git a/Wikipedia Data Extractor/README.md b/Wikipedia Data Extractor/README.md index 0d4d2b29..034f5422 100644 --- a/Wikipedia Data Extractor/README.md +++ b/Wikipedia Data Extractor/README.md @@ -47,3 +47,6 @@ pip install wikipedia + + + \ No newline at end of file diff --git a/Youtube Downloader/README.md b/Youtube Downloader/README.md index 6dd2acd7..ae30ad51 100644 --- a/Youtube Downloader/README.md +++ b/Youtube Downloader/README.md @@ -10,4 +10,6 @@ You may need to replace these files with ones that are compatible with your OS. ### FFPMEG: https://ffmpeg.org/download.html -Simply pip install yt-dlp and run the script! \ No newline at end of file +Simply pip install yt-dlp and run the script! + + \ No newline at end of file diff --git a/Youtube Playlist Info Scraper/README.md b/Youtube Playlist Info Scraper/README.md index 63ae6a73..1b2888d2 100644 --- a/Youtube Playlist Info Scraper/README.md +++ b/Youtube Playlist Info Scraper/README.md @@ -43,3 +43,6 @@ Retrieve Playlist Info: ], } ``` + + + \ No newline at end of file diff --git a/freelance-help-program/README.md b/freelance-help-program/README.md index ba111e6f..a77efe66 100644 --- a/freelance-help-program/README.md +++ b/freelance-help-program/README.md @@ -20,3 +20,6 @@ The program will display a message box with the total payment amount. The modified Excel file with the calculated results will be saved as "modified_[original_file_name].xlsx". Note: Make sure the Excel file has the correct format, with the start time in the first column and the end time in the second column. + + + \ No newline at end of file From b05acb2cc8f3b579d6e02ec04849418ee6562f97 Mon Sep 17 00:00:00 2001 From: Maria Lee Date: Tue, 2 Jul 2024 00:42:40 -0400 Subject: [PATCH 3/3] Updated README links and corrected typos --- Convert Temperature/Readme.md | 3 + Duplicate Finder/Readme.md | 3 + .../update_and_correct_readmes.py | 55 +++++++++++++++++++ Get Hexcodes From Websites/update_readmes.py | 27 +++++++++ Image Text to PDF/readme.md | 3 + InstaDownloader/Readme.md | 4 +- Jokes Generator/readme.md | 3 + Json to CSV Convertor/README.MD | 4 +- Mail Sender/readme.md | 3 + No Screensaver/Readme.md | 4 +- Password Manager/README.MD | 3 + Recently Accessed Files/README.MD | 4 +- Weight Converter/readme.md | 3 + import of music and video/Readme.md | 3 + update_and_correct_readmes.py | 55 +++++++++++++++++++ 15 files changed, 173 insertions(+), 4 deletions(-) create mode 100644 Get Hexcodes From Websites/update_and_correct_readmes.py create mode 100644 Get Hexcodes From Websites/update_readmes.py create mode 100644 update_and_correct_readmes.py diff --git a/Convert Temperature/Readme.md b/Convert Temperature/Readme.md index 0d6a2584..643e8231 100644 --- a/Convert Temperature/Readme.md +++ b/Convert Temperature/Readme.md @@ -5,3 +5,6 @@ Use this to convert between celsius(°C), fahrenheit(°F) and Kelvin(K). # Author's Name Vinayak Joshi(https://github.com/Vinayak-Joshi15) + + + \ No newline at end of file diff --git a/Duplicate Finder/Readme.md b/Duplicate Finder/Readme.md index 122f50f6..14055ffb 100644 --- a/Duplicate Finder/Readme.md +++ b/Duplicate Finder/Readme.md @@ -31,3 +31,6 @@ This script scans a given directory for duplicate files based on their MD5 hash. Always backup your data before using scripts that modify files. The author is not responsible for any data loss. + + + \ No newline at end of file diff --git a/Get Hexcodes From Websites/update_and_correct_readmes.py b/Get Hexcodes From Websites/update_and_correct_readmes.py new file mode 100644 index 00000000..98e9304c --- /dev/null +++ b/Get Hexcodes From Websites/update_and_correct_readmes.py @@ -0,0 +1,55 @@ +import os +import re + +# Define a dictionary of common typos and their corrections +typos = { + 'teh': 'the', + 'recieve': 'receive', + 'adn': 'and', + 'occured': 'occurred', + 'seperate': 'separate', + 'definately': 'definitely', + 'goverment': 'government', + # Add more typos and corrections as needed +} + +def correct_typos_in_file(file_path): + with open(file_path, 'r') as file: + content = file.read() + + for typo, correction in typos.items(): + content = re.sub(r'\b' + typo + r'\b', correction, content) + + # Append a comment to indicate the file has been processed + content += "\n" + + with open(file_path, 'w') as file: + file.write(content) + print(f"Corrected typos in {file_path}") + +def update_links(file_path): + try: + with open(file_path, 'r') as file: + content = file.read() + + # Example update: replace 'old-link' with 'new-link' + updated_content = content.replace('old-link', 'new-link') + + with open(file_path, 'w') as file: + file.write(updated_content) + + print(f"Updated {file_path}") + except Exception as e: + print(f"Failed to update {file_path}: {e}") + +def find_and_process_readmes(root_dir): + for root, dirs, files in os.walk(root_dir): + for file in files: + if file.lower() == 'readme.md': + file_path = os.path.join(root, file) + update_links(file_path) + correct_typos_in_file(file_path) + +if __name__ == "__main__": + root_directory = '.' # Set this to your repo's root directory if necessary + find_and_process_readmes(root_directory) diff --git a/Get Hexcodes From Websites/update_readmes.py b/Get Hexcodes From Websites/update_readmes.py new file mode 100644 index 00000000..508b7cc2 --- /dev/null +++ b/Get Hexcodes From Websites/update_readmes.py @@ -0,0 +1,27 @@ +import os + +def update_links(file_path): + try: + with open(file_path, 'r') as file: + content = file.read() + + # Example update: replace 'old-link' with 'new-link' + updated_content = content.replace('old-link', 'new-link') + + with open(file_path, 'w') as file: + file.write(updated_content) + + print(f"Updated {file_path}") + except Exception as e: + print(f"Failed to update {file_path}: {e}") + +def find_and_update_readmes(root_dir): + for root, dirs, files in os.walk(root_dir): + for file in files: + if file.lower() == 'readme.md': + file_path = os.path.join(root, file) + update_links(file_path) + +if __name__ == "__main__": + root_directory = '.' # Update this to your repo's root directory if necessary + find_and_update_readmes(root_directory) diff --git a/Image Text to PDF/readme.md b/Image Text to PDF/readme.md index 936292d7..a4337031 100644 --- a/Image Text to PDF/readme.md +++ b/Image Text to PDF/readme.md @@ -19,3 +19,6 @@ This script adds image and text to a pdf file. python3 script.py ``` * Hurray!! Your PDF is generated. + + + \ No newline at end of file diff --git a/InstaDownloader/Readme.md b/InstaDownloader/Readme.md index 4f33d824..9c947959 100644 --- a/InstaDownloader/Readme.md +++ b/InstaDownloader/Readme.md @@ -17,4 +17,6 @@ This python code takes user input for private and public profiles to download re ### Important * Please enter the post code only for the desired post -* You might face errors if you are downloading from a private profile without logging in \ No newline at end of file +* You might face errors if you are downloading from a private profile without logging in + + \ No newline at end of file diff --git a/Jokes Generator/readme.md b/Jokes Generator/readme.md index 0c3fc23b..ce468d16 100644 --- a/Jokes Generator/readme.md +++ b/Jokes Generator/readme.md @@ -14,3 +14,6 @@ This python code takes user input of different category of jokes and gives out j * run `python jokes.py` ##### for linux * run `python3 jokes.py` + + + \ No newline at end of file diff --git a/Json to CSV Convertor/README.MD b/Json to CSV Convertor/README.MD index 3fa8ddf2..3cffac1d 100644 --- a/Json to CSV Convertor/README.MD +++ b/Json to CSV Convertor/README.MD @@ -50,4 +50,6 @@ python json_to_csv_with_nested_dict.py The script will create a directory named **csv_data.csv** in the same location as the script. Within this directory. -![Alt text](image.png) \ No newline at end of file +![Alt text](image.png) + + \ No newline at end of file diff --git a/Mail Sender/readme.md b/Mail Sender/readme.md index 28f379ed..ef6880bd 100644 --- a/Mail Sender/readme.md +++ b/Mail Sender/readme.md @@ -21,3 +21,6 @@ Code Explanation: Please note that this script is set up for Gmail's SMTP server by default. If you are using a different email service, you may need to adjust the SMTP server details accordingly. Ensure that you have allowed less secure apps to access your Gmail account or use an application-specific password for sending emails via Gmail + + + \ No newline at end of file diff --git a/No Screensaver/Readme.md b/No Screensaver/Readme.md index 9a6d3d94..237d2cbe 100644 --- a/No Screensaver/Readme.md +++ b/No Screensaver/Readme.md @@ -15,4 +15,6 @@ If not then you can install by ` pip install pyautogui ` -To close the program if run from terminal press `Ctrl+C` or if from IDLE then just simply close the interface. \ No newline at end of file +To close the program if run from terminal press `Ctrl+C` or if from IDLE then just simply close the interface. + + \ No newline at end of file diff --git a/Password Manager/README.MD b/Password Manager/README.MD index 169a1554..21937e88 100644 --- a/Password Manager/README.MD +++ b/Password Manager/README.MD @@ -55,3 +55,6 @@ List of Sites: facebook Enter your choice: q Bye! + + + \ No newline at end of file diff --git a/Recently Accessed Files/README.MD b/Recently Accessed Files/README.MD index 5af4abf0..0e0afa58 100644 --- a/Recently Accessed Files/README.MD +++ b/Recently Accessed Files/README.MD @@ -61,4 +61,6 @@ The script will create a list of recently accessed files. - file3.txt - file4.txt - file5.txt - - file6.txt \ No newline at end of file + - file6.txt + + \ No newline at end of file diff --git a/Weight Converter/readme.md b/Weight Converter/readme.md index f4a7eecd..c82ae56d 100644 --- a/Weight Converter/readme.md +++ b/Weight Converter/readme.md @@ -27,3 +27,6 @@ Simply run the script via terminal and use the GUI. ![Demo](https://i.imgur.com/cgoSfWP.png) + + + \ No newline at end of file diff --git a/import of music and video/Readme.md b/import of music and video/Readme.md index 65cf5fa2..e528183b 100644 --- a/import of music and video/Readme.md +++ b/import of music and video/Readme.md @@ -70,3 +70,6 @@ If you encounter any issues while using the video player, please consider the fo 2. Verify that opencv-python is installed by running pip show opencv-python. 3. Check your system's video codec support and audio settings. + + + \ No newline at end of file diff --git a/update_and_correct_readmes.py b/update_and_correct_readmes.py new file mode 100644 index 00000000..424545b0 --- /dev/null +++ b/update_and_correct_readmes.py @@ -0,0 +1,55 @@ +import os +import re + +# Define a dictionary of common typos and their corrections +typos = { + 'teh': 'the', + 'recieve': 'receive', + 'adn': 'and', + 'occured': 'occurred', + 'seperate': 'separate', + 'definately': 'definitely', + 'goverment': 'government', + # Add more typos and corrections as needed +} + +def correct_typos_in_file(file_path): + with open(file_path, 'r') as file: + content = file.read() + + for typo, correction in typos.items(): + content = re.sub(r'\b' + typo + r'\b', correction, content) + + if '' not in content: + content += "\n" + + with open(file_path, 'w') as file: + file.write(content) + print(f"Corrected typos in {file_path}") + +def update_links(file_path): + try: + with open(file_path, 'r') as file: + content = file.read() + + # Example update: replace 'old-link' with 'new-link' + updated_content = content.replace('old-link', 'new-link') + + with open(file_path, 'w') as file: + file.write(updated_content) + + print(f"Updated {file_path}") + except Exception as e: + print(f"Failed to update {file_path}: {e}") + +def find_and_process_readmes(root_dir): + for root, dirs, files in os.walk(root_dir): + for file in files: + if file.lower() == 'readme.md': + file_path = os.path.join(root, file) + update_links(file_path) + correct_typos_in_file(file_path) + +if __name__ == "__main__": + root_directory = '.' # Set this to your repo's root directory if necessary + find_and_process_readmes(root_directory)