#This is a new repo
I do not consider myself as a programmer. I create these little programs as experiments to play with Python, or to solve problems for myself. I would gladly accept pointers from others to improve, simplify, or make the code more efficient. If you would like to make any comments then please feel free to email me: craig@geekcomputers.co.uk.
This repository contains a collection of Python scripts that are designed to reduce human workload and serve as educational examples for beginners to get started with Python. The code documentation is aligned correctly for viewing in Notepad++ 🗒️
Feel free to explore the scripts and use them for your learning and automation needs!
- batch_file_rename.py - Batch rename a group of files in a specified directory, changing their extensions.
- create_dir_if_not_there.py - Check if a directory exists in the user's home directory. Create it if it doesn't exist.
- Fast Youtube Downloader - Download YouTube videos quickly with parallel threads using aria2c.
- Google Image Downloader - Query a given term and retrieve images from the Google Image database.
- dir_test.py - Test if the directory
testdirexists. If not, create it. - env_check.py - Check if all the required environment variables are set.
- blackjack.py - Casino Blackjack-21 game in Python.
- fileinfo.py - Show file information for a given file.
- folder_size.py - Scan the current directory and all subdirectories and display their sizes.
- logs.py - Search for all
*.logfiles in a directory, zip them using the specified program, and date stamp them. - move_files_over_x_days.py - Move all files over a specified age (in days) from the source directory to the destination directory.
- nslookup_check.py - Open the file
server_list.txtand perform nslookup for each server to check the DNS entry. - osinfo.py - Display information about the operating system on which the script is running.
- ping_servers.py - Ping the servers associated with the specified application group.
- ping_subnet.py - Scan the final range of a given IP subnet for available addresses.
- powerdown_startup.py - Ping machines in the server list. Load the putty session if the machine is up, or notify if it is not.
- puttylogs.py - Zip all the logs in the given directory.
- script_count.py - Scan the scripts directory and count the different types of scripts.
- get_youtube_view.py - Get more views for YouTube videos and repeat songs on YouTube.
- script_listing.py - List all files in a given directory and its subdirectories.
- testlines.py - Open a file and print out 100 lines of the set line variable.
- tweeter.py - Tweet text or a picture from the terminal.
- serial_scanner.py - List available serial ports in use on Linux and Windows systems.
- get_youtube_view.py - Get more views for YouTube videos and repeat songs on YouTube.
- CountMillionCharacter.py and CountMillionCharacter2.0 - Get character count of a text file.
- xkcd_downloader.py - Download the latest XKCD comic and place them in a new folder called "comics".
- timymodule.py - An alternative to Python's 'timeit' module and easier to use.
- calculator.py - Implement a calculator using Python's eval() function.
- Google_News.py - Use BeautifulSoup to provide latest news headlines along with news links.
- cricket_live_score - Use BeautifulSoup to provide live cricket scores.
- youtube.py - Take a song name as input and fetch the YouTube URL of the best matching song and play it.
- site_health.py - Check the health of a remote server.
- SimpleStopWatch.py - Simple stop watch implementation using Python's time module.
- Changemac.py - Change your MAC address, generate a random MAC address, or enter input as a new MAC address on Linux (Successfully Tested in Ubuntu 18.04).
- whatsapp-monitor.py - Use Selenium to give online status updates about your contacts in WhatsApp on the terminal.
- whatsapp-chat-analyzer.py - WhatsApp group/individual chat analyzer that visualizes chat activity using matplotlib.
- JARVIS.py - Control Windows programs with your voice.
- Images Downloader - Download images from webpages on Unix-based systems.
- space_invader.py.py - Classical 2D space invader game to recall your childhood memories.
- Test Case Generator - Generate different types of test cases with a clean and friendly UI, used in competitive programming and software testing.
- Extract Thumbnail From Video - Extract Thumbnail from video files
- How to begin the journey of open source (first contribution) - First Contribution of open source
Note: The content in this repository belongs to the respective authors and creators. I'm just providing a formatted README.md for better presentation.
这是一个新的仓库
我不认为自己是一个程序员。我创建这些小程序作为实验来玩转 Python,或者为我自己解决问题。如果有人愿意指出改进、简化或使代码更高效的方法,我会很乐意接受。如果您想发表任何评论,请随时通过电子邮件与我联系:craig@geekcomputers.co.uk。
这个仓库包含了一系列 Python 脚本,这些脚本旨在减少人工工作量,并作为初学者学习 Python 的教育示例。代码文档已正确对齐,以便在 Notepad++ 中查看 🗒️
欢迎探索这些脚本并将其用于您的学习和自动化需求!
- batch_file_rename.py - 批量重命名指定目录中的一组文件,更改它们的扩展名。
- create_dir_if_not_there.py - 检查用户的主目录中是否存在某个目录。如果不存在则创建它。
- Fast Youtube Downloader - 使用 aria2c 通过并行线程快速下载 YouTube 视频。
- Google Image Downloader - 查询给定的术语并从 Google 图片数据库中检索图片。
- dir_test.py - 测试目录
testdir是否存在。如果不存在则创建它。 - env_check.py - 检查所有必需的环境变量是否已设置。
- blackjack.py - 用 Python 编写的赌场二十一点游戏。
- fileinfo.py - 显示给定文件的文件信息。
- folder_size.py - 扫描当前目录和所有子目录并显示它们的大小。
- logs.py - 在目录中搜索所有
*.log文件,使用指定程序压缩它们并加上日期戳。 - move_files_over_x_days.py - 将超过指定天数的所有文件从源目录移动到目标目录。
- nslookup_check.py - 打开文件
server_list.txt并对每个服务器执行 nslookup 以检查 DNS 条目。 - osinfo.py - 显示脚本运行所在的操作系统信息。
- ping_servers.py - ping 与指定应用程序组关联的服务器。
- ping_subnet.py - 扫描给定 IP 子网的最后一个范围以查找可用地址。
- powerdown_startup.py - ping 服务器列表中的机器。如果机器在线则加载 putty 会话,否则通知。
- puttylogs.py - 压缩给定目录中的所有日志。
- script_count.py - 扫描脚本目录并计算不同类型脚本的数量。
- get_youtube_view.py - 获取更多 YouTube 视频观看次数并重复播放 YouTube 歌曲。
- script_listing.py - 列出给定目录及其子目录中的所有文件。
- testlines.py - 打开文件并打印出设置行变量的 100 行。
- tweeter.py - 从终端发送文本或图片推文。
- serial_scanner.py - 列出 Linux 和 Windows 系统上正在使用的可用串口。
- get_youtube_view.py - 获取更多 YouTube 视频观看次数并重复播放 YouTube 歌曲。
- CountMillionCharacter.py 和 CountMillionCharacter2.0 - 获取文本文件的字符计数。
- xkcd_downloader.py - 下载最新的 XKCD 漫画并将其放入名为"comics"的新文件夹中。
- timymodule.py - Python's 'timeit' 模块的替代品,更易于使用。
- calculator.py - 使用 Python 的 eval() 函数实现计算器。
- Google_News.py - 使用 BeautifulSoup 提供最新的新闻标题和新闻链接。
- cricket_live_score - 使用 BeautifulSoup 提供实时板球比分。
- youtube.py - 输入歌曲名称并获取最佳匹配歌曲的 YouTube URL 并播放。
- site_health.py - 检查远程服务器的健康状况。
- SimpleStopWatch.py - 使用 Python 的 time 模块实现的简单秒表。
- Changemac.py - 在 Linux 上更改您的 MAC 地址,生成随机 MAC 地址,或输入新的 MAC 地址(在 Ubuntu 18.04 中成功测试)。
- whatsapp-monitor.py - 使用 Selenium 在终端上提供 WhatsApp 联系人的在线状态更新。
- whatsapp-chat-analyzer.py - WhatsApp 群组/个人聊天分析器,使用 matplotlib 可视化聊天活动。
- JARVIS.py - 用声音控制 Windows 程序。
- Images Downloader - 在基于 Unix 的系统上从网页下载图片。
- space_invader.py.py - 经典的 2D 太空侵略者游戏,唤起您的童年回忆。
- Test Case Generator - 生成不同类型的测试用例,具有简洁友好的 UI,用于竞技编程和软件测试。
- Extract Thumbnail From Video - 从视频文件中提取缩略图
- 如何开始开源之旅(第一次贡献) - 开源的第一次贡献
注意: 本仓库中的内容属于各自的作者和创建者。我只是提供了一个格式化的 README.md 以便更好地展示。