diff --git a/Go/port-scanner-go/Readme.md b/Go/Port_Scanner/Readme.md similarity index 91% rename from Go/port-scanner-go/Readme.md rename to Go/Port_Scanner/Readme.md index 5e3fe4e72..52827f721 100644 --- a/Go/port-scanner-go/Readme.md +++ b/Go/Port_Scanner/Readme.md @@ -10,7 +10,7 @@ Go-lang script for scanning specific or all open ports of the device. # How to run Navigate to the project directory. ```bash -cd Rotten-Scripts/Go/port-scanner-go +cd Rotten-Scripts/Go/Port_Scanner ``` ```bash go run port_scanner.go diff --git a/Go/port-scanner-go/port_scanner.go b/Go/Port_Scanner/port_scanner.go similarity index 100% rename from Go/port-scanner-go/port_scanner.go rename to Go/Port_Scanner/port_scanner.go diff --git a/JavaScript/Bulk_LinkedIn_requests/README.md b/JavaScript/Bulk_LinkedIn_Requests/README.md similarity index 100% rename from JavaScript/Bulk_LinkedIn_requests/README.md rename to JavaScript/Bulk_LinkedIn_Requests/README.md diff --git a/JavaScript/Bulk_LinkedIn_requests/script-2.js b/JavaScript/Bulk_LinkedIn_Requests/script-2.js similarity index 100% rename from JavaScript/Bulk_LinkedIn_requests/script-2.js rename to JavaScript/Bulk_LinkedIn_Requests/script-2.js diff --git a/JavaScript/README.md b/JavaScript/README.md index f93501438..5a2f1c2f9 100644 --- a/JavaScript/README.md +++ b/JavaScript/README.md @@ -16,7 +16,7 @@ It enables interactive web pages and thus is an essential part of web applicatio | 3 | Base64 Encoder Decoder | [Click Here](Base64_Encoder_Decoder) | [Piyush Gupta](https://github.com/gupta-piyush19) | | 4 | Blog Image Finder | [Click Here](Blog_Image_Finder) | [Piyush Gupta](https://github.com/gupta-piyush19) | | 5 | Brute Force Admin | [Click Here](Brute_Force_Admin) | [Mohit Bhat](https://github.com/mbcse) | -| 6 | Bulk LinkedIn Requests | [Click Here](Bulk_LinkedIn_requests) | [SANKET MHATRE](https://github.com/SANKET7738) | +| 6 | Bulk LinkedIn Requests | [Click Here](Bulk_LinkedIn_Requests) | [SANKET MHATRE](https://github.com/SANKET7738) | | 7 | Citation_Text_Converter | [Click Here](Citation_Text_Converter) | [Soham Shah](https://github.com/sohamsshah) | | 8 | Cryptoprice | [Click Here](Cryptoprice) | [Mohit Bhat](https://github.com/mbcse) | | 9 | Download_All_Repos | [Click Here](Download_All_Repos) | [Mohit Bhat](https://github.com/mbcse) | @@ -26,7 +26,7 @@ It enables interactive web pages and thus is an essential part of web applicatio | 13 | Github Graph Populator | [Click Here](GitHub_Graph_Populator) | [Hitesh Kumar](https://github.com/HeroicHitesh) | | 14 | Html to markdown | [Click Here](Html_to_Markdown) | [Kaustubh Gupta](https://github.com/kaustubhgupta) | | 15 | Instagram Like | [Click Here](Instagram_Like) | [Harsh Barshan Mishra](https://github.com/HarshCasper) | -| 16 | ROT13 | [Click Here](ROT13) | [tej5169](https://github.com/tej5169) | +| 16 | ROT13 | [Click Here](ROT13_Decryption) | [tej5169](https://github.com/tej5169) | | 17 | RSA Key Pair Generator | [Click Here](RSA_Key_Pair_Generator) | [Mohit Bhat](https://github.com/mbcse) | | 18 | Send emails | [Click Here](Send_Emails) | [Namya LG](https://github.com/Namyalg) | | 19 | Who don't follow you | [Click Here](Who_Don't_Follow_You) | [Harsh Barshan Mishra](https://github.com/HarshCasper) | diff --git a/JavaScript/ROT13/README.md b/JavaScript/ROT13_Decryption/README.md similarity index 100% rename from JavaScript/ROT13/README.md rename to JavaScript/ROT13_Decryption/README.md diff --git a/JavaScript/ROT13/rot13.js b/JavaScript/ROT13_Decryption/rot13.js similarity index 100% rename from JavaScript/ROT13/rot13.js rename to JavaScript/ROT13_Decryption/rot13.js diff --git a/Python/Automate_Commiting_Using_Git/README.md b/Python/Automate_Commiting_using_Git/README.md similarity index 100% rename from Python/Automate_Commiting_Using_Git/README.md rename to Python/Automate_Commiting_using_Git/README.md diff --git a/Python/Automate_Commiting_using_Git/automate_commiting_using_git.png b/Python/Automate_Commiting_using_Git/automate_commiting_using_git.png new file mode 100644 index 000000000..56e41097e Binary files /dev/null and b/Python/Automate_Commiting_using_Git/automate_commiting_using_git.png differ diff --git a/Python/Automate_Commiting_Using_Git/automate_commiting_using_git.py b/Python/Automate_Commiting_using_Git/automate_commiting_using_git.py similarity index 100% rename from Python/Automate_Commiting_Using_Git/automate_commiting_using_git.py rename to Python/Automate_Commiting_using_Git/automate_commiting_using_git.py diff --git a/Python/Automate-LinkedIN/README.md b/Python/Automate_LinkedIN/README.md similarity index 100% rename from Python/Automate-LinkedIN/README.md rename to Python/Automate_LinkedIN/README.md diff --git a/Python/Automate-LinkedIN/automate_linkedin.py b/Python/Automate_LinkedIN/automate_linkedin.py similarity index 100% rename from Python/Automate-LinkedIN/automate_linkedin.py rename to Python/Automate_LinkedIN/automate_linkedin.py diff --git a/Python/Automate_LinkedIN/login.JPG b/Python/Automate_LinkedIN/login.JPG new file mode 100644 index 000000000..a74caf28a Binary files /dev/null and b/Python/Automate_LinkedIN/login.JPG differ diff --git a/Python/Automate_LinkedIN/work.png b/Python/Automate_LinkedIN/work.png new file mode 100644 index 000000000..93007e0b9 Binary files /dev/null and b/Python/Automate_LinkedIN/work.png differ diff --git a/Python/Automate-Telegram/README.md b/Python/Automate_Telegram/README.md similarity index 100% rename from Python/Automate-Telegram/README.md rename to Python/Automate_Telegram/README.md diff --git a/Python/Automate-Telegram/automate_telegram.py b/Python/Automate_Telegram/automate_telegram.py similarity index 100% rename from Python/Automate-Telegram/automate_telegram.py rename to Python/Automate_Telegram/automate_telegram.py diff --git a/Python/Automate_Telegram/code.png b/Python/Automate_Telegram/code.png new file mode 100644 index 000000000..a21b0199e Binary files /dev/null and b/Python/Automate_Telegram/code.png differ diff --git a/Python/Automate_Telegram/login.png b/Python/Automate_Telegram/login.png new file mode 100644 index 000000000..d58e5a480 Binary files /dev/null and b/Python/Automate_Telegram/login.png differ diff --git a/Python/Automate_Telegram/send.png b/Python/Automate_Telegram/send.png new file mode 100644 index 000000000..756566400 Binary files /dev/null and b/Python/Automate_Telegram/send.png differ diff --git a/Python/chromedino_script/README.md b/Python/Chrome_Dino_Script/README.md similarity index 97% rename from Python/chromedino_script/README.md rename to Python/Chrome_Dino_Script/README.md index 30138410b..a802a7239 100644 --- a/Python/chromedino_script/README.md +++ b/Python/Chrome_Dino_Script/README.md @@ -1,40 +1,40 @@ -# Chrome Dino Game Automation Using Python - -## Description -This python scripts enables chrome dinosaur to play chrome dino game automatically. - - -## Execution -* Run `pip install -r requirements.txt` . -* Run `python coordinates.py` for knowing the cooridnates of your screen. -* Go to the `chrome://dino` in your Google Chrome Browser. -* Run `python enemy_location_checker.py` to know the location of cactus and bird (obstacles for dino). -* Now , Run `python main.py` -* Then go to the `chrome://dino` in your Google Chrome Browser and press any key from keyboard to start the game. -* See how it plays and press a key to interrupt/stop the game. - - -## Features of files -### Coordinates.py: -To know the coordinates of screen first we need to find the X and Y locations of screen . - -### enemy_location_checker.py: -To make dino identify the cactus and bird , captured the image of two make a frame of it and trained dino to escape it. -As , there are only three colors present in this game : black(for night) , white(for day) and gray(for obstacles and dino) -So , To match the gray pixels of obstacle to make identify dino for obstacle and if obstacle is close to dino then make a jump. -For this take a image with obstacles coming in between using **ImageGrab from pillow library** and then find out the pixels in which the obstacles are coming. - -### main.py -As game continues, search width has to be increased for bot.For this **time module from python** helps to simulate the dino acceleration. -Also reverse the loop for dino to get searched from back of screenshot to identify obstacle and it will speed up the program. - - - -#### All the requirements for this script is mentioned in **requirements.txt** file. - - - - - - -![Demo of the Game](demo_dinogame.gif) +# Chrome Dino Game Automation Using Python + +## Description +This python scripts enables chrome dinosaur to play chrome dino game automatically. + + +## Execution +* Run `pip install -r requirements.txt` . +* Run `python coordinates.py` for knowing the cooridnates of your screen. +* Go to the `chrome://dino` in your Google Chrome Browser. +* Run `python enemy_location_checker.py` to know the location of cactus and bird (obstacles for dino). +* Now , Run `python main.py` +* Then go to the `chrome://dino` in your Google Chrome Browser and press any key from keyboard to start the game. +* See how it plays and press a key to interrupt/stop the game. + + +## Features of files +### Coordinates.py: +To know the coordinates of screen first we need to find the X and Y locations of screen . + +### enemy_location_checker.py: +To make dino identify the cactus and bird , captured the image of two make a frame of it and trained dino to escape it. +As , there are only three colors present in this game : black(for night) , white(for day) and gray(for obstacles and dino) +So , To match the gray pixels of obstacle to make identify dino for obstacle and if obstacle is close to dino then make a jump. +For this take a image with obstacles coming in between using **ImageGrab from pillow library** and then find out the pixels in which the obstacles are coming. + +### main.py +As game continues, search width has to be increased for bot.For this **time module from python** helps to simulate the dino acceleration. +Also reverse the loop for dino to get searched from back of screenshot to identify obstacle and it will speed up the program. + + + +#### All the requirements for this script is mentioned in **requirements.txt** file. + + + + + + +![Demo of the Game](demo_dinogame.gif) diff --git a/Python/chromedino_script/coordinates.py b/Python/Chrome_Dino_Script/coordinates.py similarity index 96% rename from Python/chromedino_script/coordinates.py rename to Python/Chrome_Dino_Script/coordinates.py index 769fe110b..b78f46851 100644 --- a/Python/chromedino_script/coordinates.py +++ b/Python/Chrome_Dino_Script/coordinates.py @@ -1,12 +1,12 @@ -import pyautogui, sys - -# To know the location of X and Y coordinates. -print('Press Ctrl-C to quit.') -try: - while True: - x, y = pyautogui.position() - positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4) - print(positionStr, end='') - print('\b' * len(positionStr), end='', flush=True) -except KeyboardInterrupt: - print('\n') +import pyautogui, sys + +# To know the location of X and Y coordinates. +print('Press Ctrl-C to quit.') +try: + while True: + x, y = pyautogui.position() + positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4) + print(positionStr, end='') + print('\b' * len(positionStr), end='', flush=True) +except KeyboardInterrupt: + print('\n') diff --git a/Python/chromedino_script/demo_dinogame.gif b/Python/Chrome_Dino_Script/demo_dinogame.gif similarity index 100% rename from Python/chromedino_script/demo_dinogame.gif rename to Python/Chrome_Dino_Script/demo_dinogame.gif diff --git a/Python/chromedino_script/enemy_location_checker.py b/Python/Chrome_Dino_Script/enemy_location_checker.py similarity index 95% rename from Python/chromedino_script/enemy_location_checker.py rename to Python/Chrome_Dino_Script/enemy_location_checker.py index a3170af31..96f84be8b 100644 --- a/Python/chromedino_script/enemy_location_checker.py +++ b/Python/Chrome_Dino_Script/enemy_location_checker.py @@ -1,21 +1,21 @@ -import pyautogui -from PIL import Image, ImageGrab -import time - -# To check the obstacles -while True: - image = ImageGrab.grab().convert('L') # translating to greyscale (faster) - data = image.load() - - # cactus - for i in range (275, 325): - for j in range(563, 650): - data[i, j] = 0 - - # bird - for i in range (250, 300): - for j in range(410, 563): - data[i, j] = 200 - - image.show() - break +import pyautogui +from PIL import Image, ImageGrab +import time + +# To check the obstacles +while True: + image = ImageGrab.grab().convert('L') # translating to greyscale (faster) + data = image.load() + + # cactus + for i in range (275, 325): + for j in range(563, 650): + data[i, j] = 0 + + # bird + for i in range (250, 300): + for j in range(410, 563): + data[i, j] = 200 + + image.show() + break diff --git a/Python/chromedino_script/main.py b/Python/Chrome_Dino_Script/main.py similarity index 97% rename from Python/chromedino_script/main.py rename to Python/Chrome_Dino_Script/main.py index 5547f2835..201cc7f8c 100644 --- a/Python/chromedino_script/main.py +++ b/Python/Chrome_Dino_Script/main.py @@ -1,44 +1,44 @@ -import pyautogui as gui -import keyboard -import time -import math - -# Screen Dimensions for screen of size 1920X1080 -top, left, width, height = 293, 0, 700, 465 - -# helper variables to calculate time -last = 0 -total_time = 0 - -# the intervals where the bot will search for obstacles -y_search_cactus, x_start, x_end = 350, 350, 380 -y_search_bird = 275 # for the birds - - -time.sleep(4) -while True: - t1 = time.time() - if keyboard.is_pressed('q'): # Emergency Button - break - - # increase the search width every second to simulate the dino acceleration - if math.floor(total_time) != last: - x_end += 4 - if x_end >= width: - x_end = width - last = math.floor(total_time) - - # Get a screen shot - screenshot = gui.screenshot(region=(left,top, width, height)) - pixels = screenshot.load() - - background_color = pixels[440, 30] - - for i in reversed(range(x_start, x_end)): - if pixels[i, y_search_cactus] != background_color\ - or pixels[i, y_search_bird] != background_color: - keyboard.press(' ') # jump - break - - t2 = time.time()-t1 - total_time += t2 +import pyautogui as gui +import keyboard +import time +import math + +# Screen Dimensions for screen of size 1920X1080 +top, left, width, height = 293, 0, 700, 465 + +# helper variables to calculate time +last = 0 +total_time = 0 + +# the intervals where the bot will search for obstacles +y_search_cactus, x_start, x_end = 350, 350, 380 +y_search_bird = 275 # for the birds + + +time.sleep(4) +while True: + t1 = time.time() + if keyboard.is_pressed('q'): # Emergency Button + break + + # increase the search width every second to simulate the dino acceleration + if math.floor(total_time) != last: + x_end += 4 + if x_end >= width: + x_end = width + last = math.floor(total_time) + + # Get a screen shot + screenshot = gui.screenshot(region=(left,top, width, height)) + pixels = screenshot.load() + + background_color = pixels[440, 30] + + for i in reversed(range(x_start, x_end)): + if pixels[i, y_search_cactus] != background_color\ + or pixels[i, y_search_bird] != background_color: + keyboard.press(' ') # jump + break + + t2 = time.time()-t1 + total_time += t2 diff --git a/Python/chromedino_script/requirements.txt b/Python/Chrome_Dino_Script/requirements.txt similarity index 100% rename from Python/chromedino_script/requirements.txt rename to Python/Chrome_Dino_Script/requirements.txt diff --git a/Python/Countdown_clock_and_Timer/Readme.md b/Python/Countdown_Clock_and_Timer/Readme.md similarity index 100% rename from Python/Countdown_clock_and_Timer/Readme.md rename to Python/Countdown_Clock_and_Timer/Readme.md diff --git a/Python/Countdown_clock_and_Timer/countdown_clock_and_timer.py b/Python/Countdown_Clock_and_Timer/countdown_clock_and_timer.py similarity index 100% rename from Python/Countdown_clock_and_Timer/countdown_clock_and_timer.py rename to Python/Countdown_Clock_and_Timer/countdown_clock_and_timer.py diff --git a/Python/CRICBUZZ scraper/README.md b/Python/Cricbuzz_Scraper/README.md similarity index 100% rename from Python/CRICBUZZ scraper/README.md rename to Python/Cricbuzz_Scraper/README.md diff --git a/Python/CRICBUZZ scraper/crik_buzz.py b/Python/Cricbuzz_Scraper/crik_buzz.py similarity index 100% rename from Python/CRICBUZZ scraper/crik_buzz.py rename to Python/Cricbuzz_Scraper/crik_buzz.py diff --git a/Python/cryptocurrency_converter/README.md b/Python/Cryptocurrency_Converter/README.md similarity index 100% rename from Python/cryptocurrency_converter/README.md rename to Python/Cryptocurrency_Converter/README.md diff --git a/Python/cryptocurrency_converter/crypto_converter.py b/Python/Cryptocurrency_Converter/crypto_converter.py similarity index 100% rename from Python/cryptocurrency_converter/crypto_converter.py rename to Python/Cryptocurrency_Converter/crypto_converter.py diff --git a/Python/Customized_blog_headers/README.md b/Python/Customized_Blog_Headers/README.md similarity index 100% rename from Python/Customized_blog_headers/README.md rename to Python/Customized_Blog_Headers/README.md diff --git a/Python/Customized_blog_headers/app.py b/Python/Customized_Blog_Headers/app.py similarity index 100% rename from Python/Customized_blog_headers/app.py rename to Python/Customized_Blog_Headers/app.py diff --git a/Python/Customized_blog_headers/preview.PNG b/Python/Customized_Blog_Headers/preview.PNG similarity index 100% rename from Python/Customized_blog_headers/preview.PNG rename to Python/Customized_Blog_Headers/preview.PNG diff --git a/Python/Customized_blog_headers/raw_img/img1.jpg b/Python/Customized_Blog_Headers/raw_img/img1.jpg similarity index 100% rename from Python/Customized_blog_headers/raw_img/img1.jpg rename to Python/Customized_Blog_Headers/raw_img/img1.jpg diff --git a/Python/Customized_blog_headers/raw_img/img2.jpg b/Python/Customized_Blog_Headers/raw_img/img2.jpg similarity index 100% rename from Python/Customized_blog_headers/raw_img/img2.jpg rename to Python/Customized_Blog_Headers/raw_img/img2.jpg diff --git a/Python/Customized_blog_headers/raw_img/img3.jpg b/Python/Customized_Blog_Headers/raw_img/img3.jpg similarity index 100% rename from Python/Customized_blog_headers/raw_img/img3.jpg rename to Python/Customized_Blog_Headers/raw_img/img3.jpg diff --git a/Python/Desktop_notifier/Readme.md b/Python/Desktop_Notifier/Readme.md similarity index 100% rename from Python/Desktop_notifier/Readme.md rename to Python/Desktop_Notifier/Readme.md diff --git a/Python/Desktop_notifier/desktop_notifier.py b/Python/Desktop_Notifier/desktop_notifier.py similarity index 100% rename from Python/Desktop_notifier/desktop_notifier.py rename to Python/Desktop_Notifier/desktop_notifier.py diff --git a/Python/Discord_bot/README.md b/Python/Discord_Bot/README.md similarity index 100% rename from Python/Discord_bot/README.md rename to Python/Discord_Bot/README.md diff --git a/Python/Discord_Bot/image.jpg b/Python/Discord_Bot/image.jpg new file mode 100644 index 000000000..11130809a Binary files /dev/null and b/Python/Discord_Bot/image.jpg differ diff --git a/Python/Discord_bot/main.py b/Python/Discord_Bot/main.py similarity index 100% rename from Python/Discord_bot/main.py rename to Python/Discord_Bot/main.py diff --git a/Python/Discord_bot/package.json b/Python/Discord_Bot/package.json similarity index 100% rename from Python/Discord_bot/package.json rename to Python/Discord_Bot/package.json diff --git a/Python/Discord_bot/requirements.txt b/Python/Discord_Bot/requirements.txt similarity index 100% rename from Python/Discord_bot/requirements.txt rename to Python/Discord_Bot/requirements.txt diff --git a/Python/Execution time/Readme.md b/Python/Execution_Time/Readme.md similarity index 100% rename from Python/Execution time/Readme.md rename to Python/Execution_Time/Readme.md diff --git a/Python/Execution_Time/image.png b/Python/Execution_Time/image.png new file mode 100644 index 000000000..2ee8f3447 Binary files /dev/null and b/Python/Execution_Time/image.png differ diff --git a/Python/Execution time/stopwatch.py b/Python/Execution_Time/stopwatch.py similarity index 100% rename from Python/Execution time/stopwatch.py rename to Python/Execution_Time/stopwatch.py diff --git a/Python/Find_All_Links/README.md b/Python/Find_all_Links/README.md similarity index 100% rename from Python/Find_All_Links/README.md rename to Python/Find_all_Links/README.md diff --git a/Python/Find_All_Links/find_all_links.py b/Python/Find_all_Links/find_all_links.py similarity index 100% rename from Python/Find_All_Links/find_all_links.py rename to Python/Find_all_Links/find_all_links.py diff --git a/Python/IMDB_scrapper/README.md b/Python/IMDB_Scrapper/README.md similarity index 100% rename from Python/IMDB_scrapper/README.md rename to Python/IMDB_Scrapper/README.md diff --git a/Python/IMDB_scrapper/imdb_scrapper.py b/Python/IMDB_Scrapper/imdb_scrapper.py similarity index 100% rename from Python/IMDB_scrapper/imdb_scrapper.py rename to Python/IMDB_Scrapper/imdb_scrapper.py diff --git a/Python/IMDB_scrapper/requirements.txt b/Python/IMDB_Scrapper/requirements.txt similarity index 100% rename from Python/IMDB_scrapper/requirements.txt rename to Python/IMDB_Scrapper/requirements.txt diff --git a/Python/IMDB_Scrapper/sample.PNG b/Python/IMDB_Scrapper/sample.PNG new file mode 100644 index 000000000..77fc15f62 Binary files /dev/null and b/Python/IMDB_Scrapper/sample.PNG differ diff --git a/Python/Image_flip_meme_templates/README.md b/Python/Image_Flip_Meme_Templates/README.md similarity index 100% rename from Python/Image_flip_meme_templates/README.md rename to Python/Image_Flip_Meme_Templates/README.md diff --git a/Python/Image_flip_meme_templates/image_flip_meme_templates.py b/Python/Image_Flip_Meme_Templates/image_flip_meme_templates.py similarity index 100% rename from Python/Image_flip_meme_templates/image_flip_meme_templates.py rename to Python/Image_Flip_Meme_Templates/image_flip_meme_templates.py diff --git a/Python/Image_flip_meme_templates/urls.txt b/Python/Image_Flip_Meme_Templates/urls.txt similarity index 100% rename from Python/Image_flip_meme_templates/urls.txt rename to Python/Image_Flip_Meme_Templates/urls.txt diff --git a/Python/launching_programs_from_python/launchProgram.py b/Python/Launching_Programs_from_Python/launchProgram.py similarity index 100% rename from Python/launching_programs_from_python/launchProgram.py rename to Python/Launching_Programs_from_Python/launchProgram.py diff --git a/Python/launching_programs_from_python/readme.md b/Python/Launching_Programs_from_Python/readme.md similarity index 100% rename from Python/launching_programs_from_python/readme.md rename to Python/Launching_Programs_from_Python/readme.md diff --git a/Python/Linkedin_post_emails_scrapper/README.md b/Python/Linkedin_Post_Emails_Scrapper/README.md similarity index 100% rename from Python/Linkedin_post_emails_scrapper/README.md rename to Python/Linkedin_Post_Emails_Scrapper/README.md diff --git a/Python/Linkedin_post_emails_scrapper/app.py b/Python/Linkedin_Post_Emails_Scrapper/app.py similarity index 100% rename from Python/Linkedin_post_emails_scrapper/app.py rename to Python/Linkedin_Post_Emails_Scrapper/app.py diff --git a/Python/Linkedin_Post_Emails_Scrapper/preview.gif b/Python/Linkedin_Post_Emails_Scrapper/preview.gif new file mode 100644 index 000000000..25eb9b072 Binary files /dev/null and b/Python/Linkedin_Post_Emails_Scrapper/preview.gif differ diff --git a/Python/Linkedin_post_emails_scrapper/requirements.txt b/Python/Linkedin_Post_Emails_Scrapper/requirements.txt similarity index 100% rename from Python/Linkedin_post_emails_scrapper/requirements.txt rename to Python/Linkedin_Post_Emails_Scrapper/requirements.txt diff --git a/Python/markovmemes/README.md b/Python/Markov_Memes/README.md similarity index 100% rename from Python/markovmemes/README.md rename to Python/Markov_Memes/README.md diff --git a/Python/Markov_Memes/markovmeme.png b/Python/Markov_Memes/markovmeme.png new file mode 100644 index 000000000..9d1eb11a0 Binary files /dev/null and b/Python/Markov_Memes/markovmeme.png differ diff --git a/Python/markovmemes/markovmemes.py b/Python/Markov_Memes/markovmemes.py similarity index 100% rename from Python/markovmemes/markovmemes.py rename to Python/Markov_Memes/markovmemes.py diff --git a/Python/markovmemes/themes.txt b/Python/Markov_Memes/themes.txt similarity index 100% rename from Python/markovmemes/themes.txt rename to Python/Markov_Memes/themes.txt diff --git a/Python/Merge_2_PFDs/MergedFiles.pdf b/Python/Merge_2_PFDs/MergedFiles.pdf new file mode 100644 index 000000000..8df3e9fda Binary files /dev/null and b/Python/Merge_2_PFDs/MergedFiles.pdf differ diff --git a/Python/mergetwopdf/Readme.MD b/Python/Merge_2_PFDs/Readme.MD similarity index 96% rename from Python/mergetwopdf/Readme.MD rename to Python/Merge_2_PFDs/Readme.MD index 64869e51d..32f57478e 100644 --- a/Python/mergetwopdf/Readme.MD +++ b/Python/Merge_2_PFDs/Readme.MD @@ -1,37 +1,37 @@ -# Merge two pdf Files - -### Third Party Libraries Required : -1.PyPDF2 - -### How to install above Library -``` -import PyPDF2 -``` - -### How to use it : -1. Download or clone the repository -2. Install Required Libraries -3. Run merge.py by giving pdf file through command line -sample statement for running the file -python merge.py pdf1 pdf2 -4. you will get the merged pdf in the same directory - -### Output -I have added the merged pdf file named as MergedFiles.pdf which is formed from pdf1.pdf pdf2.pdf . -You can check the final output in MergedFiles.pdf File - -### PDF File 1 - -![pdf1](https://media.giphy.com/media/oUoIpReh0bV67tvVbF/giphy.gif) - -### PDF File 2 - -![pdf1](https://media.giphy.com/media/5AiytDDSxCOQrhFylS/giphy.gif) - -### Merged File - -![MERGED](https://media.giphy.com/media/q03Je7x4uy85VeNvcT/giphy.gif) - -![built with love](https://forthebadge.com/images/badges/built-with-love.svg) - -Check out my Github profile [Tejas1510!](https://github.com/Tejas1510) +# Merge two pdf Files + +### Third Party Libraries Required : +1.PyPDF2 + +### How to install above Library +``` +import PyPDF2 +``` + +### How to use it : +1. Download or clone the repository +2. Install Required Libraries +3. Run merge.py by giving pdf file through command line +sample statement for running the file +python merge.py pdf1 pdf2 +4. you will get the merged pdf in the same directory + +### Output +I have added the merged pdf file named as MergedFiles.pdf which is formed from pdf1.pdf pdf2.pdf . +You can check the final output in MergedFiles.pdf File + +### PDF File 1 + +![pdf1](https://media.giphy.com/media/oUoIpReh0bV67tvVbF/giphy.gif) + +### PDF File 2 + +![pdf1](https://media.giphy.com/media/5AiytDDSxCOQrhFylS/giphy.gif) + +### Merged File + +![MERGED](https://media.giphy.com/media/q03Je7x4uy85VeNvcT/giphy.gif) + +![built with love](https://forthebadge.com/images/badges/built-with-love.svg) + +Check out my Github profile [Tejas1510!](https://github.com/Tejas1510) diff --git a/Python/mergetwopdf/merge.py b/Python/Merge_2_PFDs/merge.py similarity index 96% rename from Python/mergetwopdf/merge.py rename to Python/Merge_2_PFDs/merge.py index 4ea041932..56a20c3f6 100644 --- a/Python/mergetwopdf/merge.py +++ b/Python/Merge_2_PFDs/merge.py @@ -1,34 +1,34 @@ -import PyPDF2 -import sys - -# Open the pdf file -file1 = sys.argv[1] -file2 = sys.argv[2] -pdf1 = open(file1, 'rb') -pdf2 = open(file2, 'rb') - -# Read the files -reader1 = PyPDF2.PdfFileReader(pdf1) -reader2 = PyPDF2.PdfFileReader(pdf2) - -# Create a new PdfFileWriter object which represents a blank PDF document -writer = PyPDF2.PdfFileWriter() - -# Loop through all the pagenumbers for the first document -for i in range(reader1.numPages): - pages = reader1.getPage(i) - writer.addPage(pages) - -# Loop through all the pagenumbers for the second document -for i in range(reader2.numPages): - pages = reader2.getPage(i) - writer.addPage(pages) - -# Now that you have copied all the pages in both the documents, write them into the a new document -mergedfile = open('MergedFiles.pdf', 'wb') -writer.write(mergedfile) - -# Close all the files - Created as well as opened -mergedfile.close() -pdf1.close() -pdf2.close() +import PyPDF2 +import sys + +# Open the pdf file +file1 = sys.argv[1] +file2 = sys.argv[2] +pdf1 = open(file1, 'rb') +pdf2 = open(file2, 'rb') + +# Read the files +reader1 = PyPDF2.PdfFileReader(pdf1) +reader2 = PyPDF2.PdfFileReader(pdf2) + +# Create a new PdfFileWriter object which represents a blank PDF document +writer = PyPDF2.PdfFileWriter() + +# Loop through all the pagenumbers for the first document +for i in range(reader1.numPages): + pages = reader1.getPage(i) + writer.addPage(pages) + +# Loop through all the pagenumbers for the second document +for i in range(reader2.numPages): + pages = reader2.getPage(i) + writer.addPage(pages) + +# Now that you have copied all the pages in both the documents, write them into the a new document +mergedfile = open('MergedFiles.pdf', 'wb') +writer.write(mergedfile) + +# Close all the files - Created as well as opened +mergedfile.close() +pdf1.close() +pdf2.close() diff --git a/Python/Network_scanner/network_scanner.py b/Python/Network_Scanner/network_scanner.py similarity index 100% rename from Python/Network_scanner/network_scanner.py rename to Python/Network_Scanner/network_scanner.py diff --git a/Python/Network_scanner/readme.md b/Python/Network_Scanner/readme.md similarity index 100% rename from Python/Network_scanner/readme.md rename to Python/Network_Scanner/readme.md diff --git a/Python/OCR_To_Google_Question_Papers/README.md b/Python/OCR_to_Google_Question_Papers/README.md similarity index 100% rename from Python/OCR_To_Google_Question_Papers/README.md rename to Python/OCR_to_Google_Question_Papers/README.md diff --git a/Python/OCR_To_Google_Question_Papers/requirements.txt b/Python/OCR_to_Google_Question_Papers/requirements.txt similarity index 100% rename from Python/OCR_To_Google_Question_Papers/requirements.txt rename to Python/OCR_to_Google_Question_Papers/requirements.txt diff --git a/Python/OCR_To_Google_Question_Papers/script.py b/Python/OCR_to_Google_Question_Papers/script.py similarity index 100% rename from Python/OCR_To_Google_Question_Papers/script.py rename to Python/OCR_to_Google_Question_Papers/script.py diff --git a/Python/OCR_to_Google_Question_Papers/test-imgs/demo.png b/Python/OCR_to_Google_Question_Papers/test-imgs/demo.png new file mode 100644 index 000000000..f8275c919 Binary files /dev/null and b/Python/OCR_to_Google_Question_Papers/test-imgs/demo.png differ diff --git a/Python/OCR_To_Google_Question_Papers/test-imgs/test-1.png b/Python/OCR_to_Google_Question_Papers/test-imgs/test-1.png similarity index 100% rename from Python/OCR_To_Google_Question_Papers/test-imgs/test-1.png rename to Python/OCR_to_Google_Question_Papers/test-imgs/test-1.png diff --git a/Python/OCR_to_Google_Question_Papers/test-imgs/test-2.png b/Python/OCR_to_Google_Question_Papers/test-imgs/test-2.png new file mode 100644 index 000000000..2b5c88900 Binary files /dev/null and b/Python/OCR_to_Google_Question_Papers/test-imgs/test-2.png differ diff --git a/Python/OCR_to_Google_Question_Papers/test-imgs/test-3.jpg b/Python/OCR_to_Google_Question_Papers/test-imgs/test-3.jpg new file mode 100644 index 000000000..088426d3c Binary files /dev/null and b/Python/OCR_to_Google_Question_Papers/test-imgs/test-3.jpg differ diff --git a/Python/Python_news_reader/.env.example b/Python/Python_NEWS_Reader/.env.example similarity index 100% rename from Python/Python_news_reader/.env.example rename to Python/Python_NEWS_Reader/.env.example diff --git a/Python/Python_news_reader/Python news reader.py b/Python/Python_NEWS_Reader/Python news reader.py similarity index 100% rename from Python/Python_news_reader/Python news reader.py rename to Python/Python_NEWS_Reader/Python news reader.py diff --git a/Python/Python_news_reader/Readme.md b/Python/Python_NEWS_Reader/Readme.md similarity index 100% rename from Python/Python_news_reader/Readme.md rename to Python/Python_NEWS_Reader/Readme.md diff --git a/Python/Python_NEWS_Reader/Screenshot.png b/Python/Python_NEWS_Reader/Screenshot.png new file mode 100644 index 000000000..33ed0bd32 Binary files /dev/null and b/Python/Python_NEWS_Reader/Screenshot.png differ diff --git a/Python/Python_NEWS_Reader/pylint_result.png b/Python/Python_NEWS_Reader/pylint_result.png new file mode 100644 index 000000000..33c6feb99 Binary files /dev/null and b/Python/Python_NEWS_Reader/pylint_result.png differ diff --git a/Python/Python_news_reader/requirements.txt b/Python/Python_NEWS_Reader/requirements.txt similarity index 100% rename from Python/Python_news_reader/requirements.txt rename to Python/Python_NEWS_Reader/requirements.txt diff --git a/Python/QR_Code_Generator/Capture.PNG b/Python/QR_Code_Generator/Capture.PNG new file mode 100644 index 000000000..fd6fa9850 Binary files /dev/null and b/Python/QR_Code_Generator/Capture.PNG differ diff --git a/Python/QR_code_generator/Readme.md b/Python/QR_Code_Generator/Readme.md similarity index 100% rename from Python/QR_code_generator/Readme.md rename to Python/QR_Code_Generator/Readme.md diff --git a/Python/QR_code_generator/qrcode_generator.py b/Python/QR_Code_Generator/qrcode_generator.py similarity index 100% rename from Python/QR_code_generator/qrcode_generator.py rename to Python/QR_Code_Generator/qrcode_generator.py diff --git a/Python/README.md b/Python/README.md index d56f961da..aac8cdfba 100644 --- a/Python/README.md +++ b/Python/README.md @@ -1,6 +1,6 @@ ## What is Python? -Python is a high-level general purpose programming language created by Guido van Rossum. It is an easy to use interpreted language which can be used for a wide varity of tasks including and not limited to automation, data science, machine learning, image processing and web development. +Python is a high-level general purpose programming language created by Guido van Rossum. It is an easy to use interpreted language which can be used for a wide variety of tasks including and not limited to automation, data science, machine learning, image processing and web development. The main reason behind its success is the presence of vast variety of libraries and its super helpful developer community. @@ -14,27 +14,27 @@ S. No | Name of Script | Directory Link | Author | Tools Used | 4 | Audio Backup | [Click Here](/Python/Auto_Backup) | [Vybhav Chaturvedi](https://github.com/vybhav72954) | gzip, argparse 5 | Audio Converter | [Click Here](/Python/Audio_Converter) | [Sri Manikanta Palakollu](https://github.com/srimani-programmer) | moviepy 6 | Audio Format Converter | [Click Here](/Python/Audio_Format_Converter) | [Vybhav Chaturvedi](https://github.com/vybhav72954) | pudub, mutagen -7 | Automate Committing Using Git | [Click Here](/Python/Automate_Commiting_Using_Git) | [Seema Saharan](https://github.com/seema1711) | subprocess -8 | Automate LinkedIN | [Click Here](/Python/Automate-LinkedIN) | [Kaustubh Gupta](https://github.com/kaustubhgupta) | Selenium -9 | Automate Telegram | [Click Here](/Python/Automate-Telegram) | [Kaustubh Gupta](https://github.com/kaustubhgupta) | Selenium +7 | Automate Committing Using Git | [Click Here](/Python/Automate_Commiting_using_Git) | [Seema Saharan](https://github.com/seema1711) | subprocess +8 | Automate LinkedIN | [Click Here](/Python/Automate_LinkedIN) | [Kaustubh Gupta](https://github.com/kaustubhgupta) | Selenium +9 | Automate Telegram | [Click Here](/Python/Automate_Telegram) | [Kaustubh Gupta](https://github.com/kaustubhgupta) | Selenium 10 | AWS Scripts | [Click Here](/Python/AWS_Scripts) | [Sameer Srivastava](https://github.com/sameersrivastava13) | boto3 11 | Base64 Encoder Decoder | [Click Here](/Python/Base64_Encoder_Decoder) | [Lakshmi Narayan Dwivedi](https://github.com/narayan2111) | base64, argparse -12 | Battery Full Charged Notifier | [Click Here](/Python/Battery_Full_Charged_Notifier) | [MOHIT BHAT](https://github.com/mbcse) | psutil, time, win10toast +12 | Battery Full Charged Notifier | [Click Here](/Python/Battery_Full_Charged_Notifier) | [Mohit_Bhat](https://github.com/mbcse) | psutil, time, win10toast 13 | Book Downloader | [Click Here](/Python/Book_Downloader) | [Harsh Bardhan Mishra](https://github.com/HarshCasper) | requests, os 14 | Bulk Certificate Generator | [Click Here](/Python/Bulk_Certificate_Generator) | [Sri Manikanta Palakollu](https://github.com/srimani-programmer) | panads, random 15 | Caesar Cipher | [Click Here](/Python/Caesar_Cipher) | [Vybhav Chaturvedi](https://github.com/vybhav72954) | - 16 | Cartoonified_Image | [Click Here](/Python/Cartoonified_Image) | [Sharvari Raut](https://github.com/sharur7) | skimage, numpy, cv2 17 | Codechef Contests | [Click Here](/Python/Codechef_Contests) | [Harsh Bardhan Mishra](https://github.com/HarshCasper) | prettytable, bs4, requests 18 | Codechef Problem Scrapper | [Click Here](/Python/Codechef_Problem_Scrapper) | [Aditya Jetely](https://github.com/AdityaJ7) | selenium, bs4, time -19 | Countdown Clock and Timer | [Click Here](/Python/Countdown_clock_and_Timer) | [Anushka-S10](https://github.com/Anushka-S10) | os, time +19 | Countdown Clock and Timer | [Click Here](/Python/Countdown_Clock_and_Timer) | [Anushka-S10](https://github.com/Anushka-S10) | os, time 20 | Counting Days | [Click Here](/Python/Counting_Days) | [Dylan Corriveau](https://github.com/dcorriveau) | os, datetime 21 | Create Word Cloud | [Click Here](/Python/Create_Word_Cloud) | [Prahitha](https://github.com/Prahitha) | argparse, wordcloud, numpy 22 | Cricbuzz scrapper | [Click Here](/Python/CRICBUZZ%20scraper) | [Rutuja Dhanawade](https://github.com/rutujadhanawade) | bs4, urllib.request -23 | Crypto Currency Converter | [Click Here](/Python/cryptocurrency_converter) | [Mohta Rahul Suresh](https://github.com/Rahul555-droid) | requests +23 | Crypto Currency Converter | [Click Here](/Python/Cryptocurrency_Converter) | [Mohta Rahul Suresh](https://github.com/Rahul555-droid) | requests 24 | CSV Splitter | [Click Here](/Python/CSV_Splitter) | [Vybhav Chaturvedi](https://github.com/vybhav72954) | os, csv 25 | Currency Converter | [Click Here](/Python/Currency_Converter) | [Prahitha](https://github.com/Prahitha) | requests, argparse 26 | Customized Blog Headers | [Click Here](/Python/Customized_blog_headers) | [Kaustubh Gupta](https://github.com/kaustubhgupta) | cv2, PIL, sys, os -27 | Chrome Dinosaur Game | [Click Here](/Python/chromedino_script) | [Oshi Gupta](https://github.com/oshi36) | pyautogui , PIL , time +27 | Chrome Dinosaur Game | [Click Here](/Python/Chrome_Dino_Script) | [Oshi Gupta](https://github.com/oshi36) | pyautogui , PIL , time 28 | Desktop Notifier | [Click Here](/Python/Desktop_notifier) | [Anushka-S10](https://github.com/Anushka-S10) | feedparser, notify2, pygame 29 | Desktop Time Tracker | [Click Here](/Python/Desktop_Time_Tracker) | [Abdallah Ahmed](https://github.com/abdallah1097) | os, subprocess, argparse 30 | Discord Bot | [Click Here](/Python/Discord_bot) | [KILR](https://github.com/KILR007) | discord, json, datetime diff --git a/Python/ROT13/README.md b/Python/ROT13_Decryption/README.md similarity index 100% rename from Python/ROT13/README.md rename to Python/ROT13_Decryption/README.md diff --git a/Python/ROT13/ROT13.py b/Python/ROT13_Decryption/ROT13.py similarity index 100% rename from Python/ROT13/ROT13.py rename to Python/ROT13_Decryption/ROT13.py diff --git a/Python/Slideshare_slides_downloader/README.md b/Python/Slideshare_Slides_Downloader/README.md similarity index 100% rename from Python/Slideshare_slides_downloader/README.md rename to Python/Slideshare_Slides_Downloader/README.md diff --git a/Python/Slideshare_slides_downloader/chromedriver_win32/chromedriver.exe b/Python/Slideshare_Slides_Downloader/chromedriver_win32/chromedriver.exe similarity index 100% rename from Python/Slideshare_slides_downloader/chromedriver_win32/chromedriver.exe rename to Python/Slideshare_Slides_Downloader/chromedriver_win32/chromedriver.exe diff --git a/Python/Slideshare_slides_downloader/requirements.txt b/Python/Slideshare_Slides_Downloader/requirements.txt similarity index 100% rename from Python/Slideshare_slides_downloader/requirements.txt rename to Python/Slideshare_Slides_Downloader/requirements.txt diff --git a/Python/Slideshare_slides_downloader/slide_downloader.py b/Python/Slideshare_Slides_Downloader/slide_downloader.py similarity index 100% rename from Python/Slideshare_slides_downloader/slide_downloader.py rename to Python/Slideshare_Slides_Downloader/slide_downloader.py diff --git a/Python/Subtitle_Downloader/LICENSE b/Python/Subtitle_Downloader/LICENSE deleted file mode 100644 index e27bd0061..000000000 --- a/Python/Subtitle_Downloader/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Seema Saharan - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/Python/Table_To_CSV/README.md b/Python/Table_to_CSV/README.md similarity index 100% rename from Python/Table_To_CSV/README.md rename to Python/Table_to_CSV/README.md diff --git a/Python/Table_to_CSV/img/csv_img.PNG b/Python/Table_to_CSV/img/csv_img.PNG new file mode 100644 index 000000000..9c3752fed Binary files /dev/null and b/Python/Table_to_CSV/img/csv_img.PNG differ diff --git a/Python/Table_to_CSV/img/excel_img.PNG b/Python/Table_to_CSV/img/excel_img.PNG new file mode 100644 index 000000000..eda7e3642 Binary files /dev/null and b/Python/Table_to_CSV/img/excel_img.PNG differ diff --git a/Python/Table_to_CSV/img/grid.PNG b/Python/Table_to_CSV/img/grid.PNG new file mode 100644 index 000000000..7f844f793 Binary files /dev/null and b/Python/Table_to_CSV/img/grid.PNG differ diff --git a/Python/Table_to_CSV/img/option.PNG b/Python/Table_to_CSV/img/option.PNG new file mode 100644 index 000000000..313f630cd Binary files /dev/null and b/Python/Table_to_CSV/img/option.PNG differ diff --git a/Python/Table_to_CSV/img/test.PNG b/Python/Table_to_CSV/img/test.PNG new file mode 100644 index 000000000..ac40b1b87 Binary files /dev/null and b/Python/Table_to_CSV/img/test.PNG differ diff --git a/Python/Table_To_CSV/requirements.txt b/Python/Table_to_CSV/requirements.txt similarity index 100% rename from Python/Table_To_CSV/requirements.txt rename to Python/Table_to_CSV/requirements.txt diff --git a/Python/Table_To_CSV/table_convert.ipynb b/Python/Table_to_CSV/table_convert.ipynb similarity index 100% rename from Python/Table_To_CSV/table_convert.ipynb rename to Python/Table_to_CSV/table_convert.ipynb diff --git a/Python/Table_To_CSV/table_convert.py b/Python/Table_to_CSV/table_convert.py similarity index 100% rename from Python/Table_To_CSV/table_convert.py rename to Python/Table_to_CSV/table_convert.py diff --git a/Python/Text_To_Speech/README.md b/Python/Text_to_Speech/README.md similarity index 100% rename from Python/Text_To_Speech/README.md rename to Python/Text_to_Speech/README.md diff --git a/Python/Text_To_Speech/text_content.mp3 b/Python/Text_to_Speech/text_content.mp3 similarity index 100% rename from Python/Text_To_Speech/text_content.mp3 rename to Python/Text_to_Speech/text_content.mp3 diff --git a/Python/Text_To_Speech/text_to_speech.py b/Python/Text_to_Speech/text_to_speech.py similarity index 100% rename from Python/Text_To_Speech/text_to_speech.py rename to Python/Text_to_Speech/text_to_speech.py diff --git a/Python/ToonifyImage/.env.example b/Python/Toonify_Image/.env.example similarity index 100% rename from Python/ToonifyImage/.env.example rename to Python/Toonify_Image/.env.example diff --git a/Python/ToonifyImage/Readme.MD b/Python/Toonify_Image/Readme.MD similarity index 97% rename from Python/ToonifyImage/Readme.MD rename to Python/Toonify_Image/Readme.MD index 4bba47897..77f97bf76 100644 --- a/Python/ToonifyImage/Readme.MD +++ b/Python/Toonify_Image/Readme.MD @@ -1,37 +1,37 @@ -# Toonify a Given Image - -## Introduction -``` -This is a python application which takes a image as input and toonify it (make a cartoonist image of it) using https://deepai.org/machine-learning-model/toonify api. -You can read more about the Api here : https://deepai.org/machine-learning-model/toonify -``` -## Third Party Libraries Required : -1. Request Module # to fetch given image -2. shutil Module # to save image locally - -## How to install above Library -``` -pip install requests -pip install shutil -``` -## How to use it : -1. Download or clone the repository -2. Install Required Libraries -4. Run toonify.py -3. In command line add you api key which you will get by signing up on https://deepai.org/machine-learning-model/toonify -5. you will be asked to give the path of image you want to toonify -6. you will get the toonified image in the same directory - -## Output - -### Original image - -![endpoint](https://github.com/Tejas1510/Rotten-Scripts/blob/toonify/Python/ToonifyImage/images/rohit.png) - -### Toonified image - -![endpoint](https://github.com/Tejas1510/Rotten-Scripts/blob/toonify/Python/ToonifyImage/images/output.jpg) - -![built with love](https://forthebadge.com/images/badges/built-with-love.svg) - -Check out my Github profile [Tejas1510!](https://github.com/Tejas1510) +# Toonify a Given Image + +## Introduction +``` +This is a python application which takes a image as input and toonify it (make a cartoonist image of it) using https://deepai.org/machine-learning-model/toonify api. +You can read more about the Api here : https://deepai.org/machine-learning-model/toonify +``` +## Third Party Libraries Required : +1. Request Module # to fetch given image +2. shutil Module # to save image locally + +## How to install above Library +``` +pip install requests +pip install shutil +``` +## How to use it : +1. Download or clone the repository +2. Install Required Libraries +4. Run toonify.py +3. In command line add you api key which you will get by signing up on https://deepai.org/machine-learning-model/toonify +5. you will be asked to give the path of image you want to toonify +6. you will get the toonified image in the same directory + +## Output + +### Original image + +![endpoint](https://github.com/Tejas1510/Rotten-Scripts/blob/toonify/Python/ToonifyImage/images/rohit.png) + +### Toonified image + +![endpoint](https://github.com/Tejas1510/Rotten-Scripts/blob/toonify/Python/ToonifyImage/images/output.jpg) + +![built with love](https://forthebadge.com/images/badges/built-with-love.svg) + +Check out my Github profile [Tejas1510!](https://github.com/Tejas1510) diff --git a/Python/Toonify_Image/images/output.jpg b/Python/Toonify_Image/images/output.jpg new file mode 100644 index 000000000..4b17d3c5f Binary files /dev/null and b/Python/Toonify_Image/images/output.jpg differ diff --git a/Python/Toonify_Image/images/rohit.png b/Python/Toonify_Image/images/rohit.png new file mode 100644 index 000000000..077d4004b Binary files /dev/null and b/Python/Toonify_Image/images/rohit.png differ diff --git a/Python/ToonifyImage/toonify.py b/Python/Toonify_Image/toonify.py similarity index 96% rename from Python/ToonifyImage/toonify.py rename to Python/Toonify_Image/toonify.py index dd120f350..183e847f2 100644 --- a/Python/ToonifyImage/toonify.py +++ b/Python/Toonify_Image/toonify.py @@ -1,30 +1,30 @@ -# shutil is used to save image locally -import requests -import sys -import shutil -from decouple import config - -imagePath=sys.argv[1] -api_key=config("API_KEY") -r = requests.post( - "https://api.deepai.org/api/toonify", - files={ - 'image': open(imagePath, 'rb'), - }, - headers={'api-key': api_key} -) -y=r.json() -image_url=y['output_url'] -filename = image_url.split("/")[-1] -# Open the url image -r1 = requests.get(image_url, stream = True) -# Check if the image was retrieved successfully -if r1.status_code == 200: - # Set decode_content value to True, otherwise the downloaded image file's size will be zero. - r1.raw.decode_content = True - # Open a local file with wb ( write binary ) permission. - with open(filename,'wb') as f: - shutil.copyfileobj(r1.raw, f) - print('Image sucessfully Downloaded: ',filename) -else: - print('Image Couldn\'t be retreived') +# shutil is used to save image locally +import requests +import sys +import shutil +from decouple import config + +imagePath=sys.argv[1] +api_key=config("API_KEY") +r = requests.post( + "https://api.deepai.org/api/toonify", + files={ + 'image': open(imagePath, 'rb'), + }, + headers={'api-key': api_key} +) +y=r.json() +image_url=y['output_url'] +filename = image_url.split("/")[-1] +# Open the url image +r1 = requests.get(image_url, stream = True) +# Check if the image was retrieved successfully +if r1.status_code == 200: + # Set decode_content value to True, otherwise the downloaded image file's size will be zero. + r1.raw.decode_content = True + # Open a local file with wb ( write binary ) permission. + with open(filename,'wb') as f: + shutil.copyfileobj(r1.raw, f) + print('Image sucessfully Downloaded: ',filename) +else: + print('Image Couldn\'t be retreived') diff --git a/Python/Torrent_To_GoogleDrive/DownloadSuccess.svg b/Python/Torrent_to_GoogleDrive/DownloadSuccess.svg similarity index 100% rename from Python/Torrent_To_GoogleDrive/DownloadSuccess.svg rename to Python/Torrent_to_GoogleDrive/DownloadSuccess.svg diff --git a/Python/Torrent_To_GoogleDrive/Google_Drive.svg b/Python/Torrent_to_GoogleDrive/Google_Drive.svg similarity index 100% rename from Python/Torrent_To_GoogleDrive/Google_Drive.svg rename to Python/Torrent_to_GoogleDrive/Google_Drive.svg diff --git a/Python/Torrent_To_GoogleDrive/MagnetLink.svg b/Python/Torrent_to_GoogleDrive/MagnetLink.svg similarity index 100% rename from Python/Torrent_To_GoogleDrive/MagnetLink.svg rename to Python/Torrent_to_GoogleDrive/MagnetLink.svg diff --git a/Python/Torrent_To_GoogleDrive/README.md b/Python/Torrent_to_GoogleDrive/README.md similarity index 100% rename from Python/Torrent_To_GoogleDrive/README.md rename to Python/Torrent_to_GoogleDrive/README.md diff --git a/Python/Torrent_To_GoogleDrive/TorrentToDrive.ipynb b/Python/Torrent_to_GoogleDrive/TorrentToDrive.ipynb similarity index 100% rename from Python/Torrent_To_GoogleDrive/TorrentToDrive.ipynb rename to Python/Torrent_to_GoogleDrive/TorrentToDrive.ipynb diff --git a/Python/Upload_Files_as_Github_Gist/GistDemoDone.png b/Python/Upload_Files_as_Github_Gist/GistDemoDone.png new file mode 100644 index 000000000..fc69e066c Binary files /dev/null and b/Python/Upload_Files_as_Github_Gist/GistDemoDone.png differ diff --git a/Python/Upload_File_As_Github_Gist/README.md b/Python/Upload_Files_as_Github_Gist/README.md similarity index 100% rename from Python/Upload_File_As_Github_Gist/README.md rename to Python/Upload_Files_as_Github_Gist/README.md diff --git a/Python/Upload_Files_as_Github_Gist/upload_file_as_github_gist.png b/Python/Upload_Files_as_Github_Gist/upload_file_as_github_gist.png new file mode 100644 index 000000000..b4f6b6707 Binary files /dev/null and b/Python/Upload_Files_as_Github_Gist/upload_file_as_github_gist.png differ diff --git a/Python/Upload_File_As_Github_Gist/upload_file_as_github_gist.py b/Python/Upload_Files_as_Github_Gist/upload_file_as_github_gist.py similarity index 100% rename from Python/Upload_File_As_Github_Gist/upload_file_as_github_gist.py rename to Python/Upload_Files_as_Github_Gist/upload_file_as_github_gist.py diff --git a/Python/Video_To_Frames/README.md b/Python/Video_to_Frames/README.md similarity index 100% rename from Python/Video_To_Frames/README.md rename to Python/Video_to_Frames/README.md diff --git a/Python/Video_to_Frames/video_to_frames.gif b/Python/Video_to_Frames/video_to_frames.gif new file mode 100644 index 000000000..64685750c Binary files /dev/null and b/Python/Video_to_Frames/video_to_frames.gif differ diff --git a/Python/Video_To_Frames/video_to_frames.py b/Python/Video_to_Frames/video_to_frames.py similarity index 100% rename from Python/Video_To_Frames/video_to_frames.py rename to Python/Video_to_Frames/video_to_frames.py diff --git a/Python/vid_2_img_fps/README.md b/Python/Video_to_Image(FPS)/README.md similarity index 100% rename from Python/vid_2_img_fps/README.md rename to Python/Video_to_Image(FPS)/README.md diff --git a/Python/vid_2_img_fps/multi_convert.py b/Python/Video_to_Image(FPS)/multi_convert.py similarity index 100% rename from Python/vid_2_img_fps/multi_convert.py rename to Python/Video_to_Image(FPS)/multi_convert.py diff --git a/Python/vid_2_img_fps/single_convert.py b/Python/Video_to_Image(FPS)/single_convert.py similarity index 100% rename from Python/vid_2_img_fps/single_convert.py rename to Python/Video_to_Image(FPS)/single_convert.py diff --git a/Python/Watermark_it/README.md b/Python/Watermark_It/README.md similarity index 100% rename from Python/Watermark_it/README.md rename to Python/Watermark_It/README.md diff --git a/Python/Watermark_it/requirements.txt b/Python/Watermark_It/requirements.txt similarity index 100% rename from Python/Watermark_it/requirements.txt rename to Python/Watermark_It/requirements.txt diff --git a/Python/Watermark_It/sample.PNG b/Python/Watermark_It/sample.PNG new file mode 100644 index 000000000..e9f8e3809 Binary files /dev/null and b/Python/Watermark_It/sample.PNG differ diff --git a/Python/Watermark_it/watermark_it.py b/Python/Watermark_It/watermark_it.py similarity index 100% rename from Python/Watermark_it/watermark_it.py rename to Python/Watermark_It/watermark_it.py diff --git a/Python/Whatsapp_Sms_Bomber/README.md b/Python/Whatsapp_SMS_Bomber/README.md similarity index 100% rename from Python/Whatsapp_Sms_Bomber/README.md rename to Python/Whatsapp_SMS_Bomber/README.md diff --git a/Python/Whatsapp_Sms_Bomber/mycontacts.py b/Python/Whatsapp_SMS_Bomber/mycontacts.py similarity index 100% rename from Python/Whatsapp_Sms_Bomber/mycontacts.py rename to Python/Whatsapp_SMS_Bomber/mycontacts.py diff --git a/Python/Whatsapp_SMS_Bomber/resources/whatsapp_sms_bomber.png b/Python/Whatsapp_SMS_Bomber/resources/whatsapp_sms_bomber.png new file mode 100644 index 000000000..5b9720278 Binary files /dev/null and b/Python/Whatsapp_SMS_Bomber/resources/whatsapp_sms_bomber.png differ diff --git a/Python/Whatsapp_Sms_Bomber/whatsapp_sms_bomber.py b/Python/Whatsapp_SMS_Bomber/whatsapp_sms_bomber.py similarity index 100% rename from Python/Whatsapp_Sms_Bomber/whatsapp_sms_bomber.py rename to Python/Whatsapp_SMS_Bomber/whatsapp_sms_bomber.py diff --git a/Python/Whatsapp_Sms_Bomber/xpath.py b/Python/Whatsapp_SMS_Bomber/xpath.py similarity index 100% rename from Python/Whatsapp_Sms_Bomber/xpath.py rename to Python/Whatsapp_SMS_Bomber/xpath.py diff --git a/Python/Who_Is_Online_On_WhatsApp/README.md b/Python/Who's_Online_WhatsApp/README.md similarity index 100% rename from Python/Who_Is_Online_On_WhatsApp/README.md rename to Python/Who's_Online_WhatsApp/README.md diff --git a/Python/Who_Is_Online_On_WhatsApp/users.py b/Python/Who's_Online_WhatsApp/users.py similarity index 100% rename from Python/Who_Is_Online_On_WhatsApp/users.py rename to Python/Who's_Online_WhatsApp/users.py diff --git a/Python/Who's_Online_WhatsApp/who_is_online_on_whatsapp.png b/Python/Who's_Online_WhatsApp/who_is_online_on_whatsapp.png new file mode 100644 index 000000000..26b5b5cf9 Binary files /dev/null and b/Python/Who's_Online_WhatsApp/who_is_online_on_whatsapp.png differ diff --git a/Python/Who_Is_Online_On_WhatsApp/who_is_online_on_whatsapp.py b/Python/Who's_Online_WhatsApp/who_is_online_on_whatsapp.py similarity index 100% rename from Python/Who_Is_Online_On_WhatsApp/who_is_online_on_whatsapp.py rename to Python/Who's_Online_WhatsApp/who_is_online_on_whatsapp.py diff --git a/Python/Wifi_Speed_Tester/Capture.PNG b/Python/Wifi_Speed_Tester/Capture.PNG new file mode 100644 index 000000000..b6d789fb3 Binary files /dev/null and b/Python/Wifi_Speed_Tester/Capture.PNG differ diff --git a/Python/Wifi Speed Tester/README.md b/Python/Wifi_Speed_Tester/README.md similarity index 100% rename from Python/Wifi Speed Tester/README.md rename to Python/Wifi_Speed_Tester/README.md diff --git a/Python/Wifi Speed Tester/wifi_speed_tester.py b/Python/Wifi_Speed_Tester/wifi_speed_tester.py similarity index 100% rename from Python/Wifi Speed Tester/wifi_speed_tester.py rename to Python/Wifi_Speed_Tester/wifi_speed_tester.py