Unleash the power of Python with a curated collection of magical scripts to simplify your computer usage and coding workflows. I personally use these for data processing and Machine Learning workflows in my Data Science projects.
- Effortless Automation: These scripts were made for seamless automation of routines.
- Tailoring: Customize them to make new Python programs that suit your specific needs.
-
The
searchify.py
script transforms your search terms which could be corrupted with spaces and special characters etc into Google search URLs for easy checking, making it faster to search from a long list of terms in a database instead of having to do it individually through copy pasting etc.Replace
terms_list
variable, executing the script will then generate Google search URLs for the given list of terms interm_list
, handling special characters, leading or trailing spaces, and converting spaces to+
in the URL turning it into valid Google search URLs that are clickable.python searchify.py
https://www.google.com/search?q=Ma+ch+n3+Learn+ng https://www.google.com/search?q=Cry+pt0graphy+2020 https://www.google.com/search?q=Quantum+Computing https://www.google.com/search?q=Deep+Learn+ng https://www.google.com/search?q=Pyth+on+Coding https://www.google.com/search?q=Space+Exploration https://www.google.com/search?q=V1rtu+l+R3al1ty https://www.google.com/search?q=Blockchain+Technology
-
The
folder_magic.py
script adds a specified text to the names of all folders in a given directory and then invokes an external program with the modified folder names with flags, useful when you want to extract and perform some random operation on folder names.Replace
'\path\to\folder'
with the actual path of the folder you want to process andprogram_path
with the program you want the names to run on. Adjust thetext_to_add
variable with the text you want to append to each folder name. Also add any suitable flags that the program accepts by changing-some-flag
incommand
variable.python folder_magic.py
-
The
low_resolution_videos.py
script swiftly scans through all video files in a specified folder and its subfolders, identifying those with resolutions lower than certain threshold (240p). The script is useful when you want to exclude low resolution videos from your training or test set when working with computer vision models.Replace
'\path\to\folder'
with the actual path of the folder you want to process.python low_resolution_videos.py
Feel free to add your own spells to PythonMagic.
- AHKMagic - Automate Windows tasks with AutoHotKey scripts.
- BatchMagic - Your go-to source for efficient Windows batch scripts.