│███████╗██╗ ██╗███████╗ █████╗ ██████╗ ███╗ ███╗██╗███╗ ██╗██╗ ██╗
│██╔════╝╚██╗ ██╔╝██╔════╝██╔══██╗██╔══██╗████╗ ████║██║████╗ ██║╚██╗██╔╝
│███████╗ ╚████╔╝ ███████╗███████║██║ ██║██╔████╔██║██║██╔██╗ ██║ ╚███╔╝
│╚════██║ ╚██╔╝ ╚════██║██╔══██║██║ ██║██║╚██╔╝██║██║██║╚██╗██║ ██╔██╗
│███████║ ██║ ███████║██║ ██║██████╔╝██║ ╚═╝ ██║██║██║ ╚████║██╔╝ ██╗
│╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
A comprehensive Python toolkit for downloading and converting various media types including YouTube audio, Instagram media, and video-to-audio conversion, docx to pdf converter.
- Download audio from YouTube videos in MP3 or WAV format
- Convert between media formats (photos, videos, audio)
- Download Instagram posts, reels, stories, and IGTV videos
- Extract audio from video files
- Convert the Docx to pdf formats
- Clone the repository:
git clone https://github.com/MrTG-CodeBot/SysAdminx.git
cd SysAdminx
pip3 install -U -r requirements.txt
python3 main.py
- Install the required dependencies:
pip install pytubefix instaloader moviepy
or
pip3 install -U -r requirements.txt
Downloads audio from YouTube videos and converts them to MP3 or WAV format.
fromsysadminx.YtAudioDownloaderimportYtAudioDownloaderdownloader=YtAudioDownloader()
video_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"output_directory="./downloads"audio_format="mp3"# or "wav"downloader.download_youtube_audio(video_url, output_directory, audio_format)Converts between media formats of the same type (photo-to-photo, video-to-video, audio-to-audio).
fromsysadminx.FormatChangerimportFormatChangerconverter=FormatChanger()
input_file="./downloads/audio.m4a"output_file="./downloads/audio.mp3"success=converter.convert_format(input_file, output_file)
ifsuccess:
print(f"Successfully converted {input_file} to {output_file}")
else:
print("Conversion failed")Downloads media from Instagram posts, reels, stories, and IGTV.
fromsysadminx.InstaMediaDownloaderimportInstaMediaDownloaderinsta_downloader=InstaMediaDownloader()
post_url="https://www.instagram.com/p/EXAMPLE_POST_ID/"output_directory="./instagram_downloads"insta_downloader.download_instagram_media(
post_url, output_directory,
download_thumbnail=True, download_caption=False, delete_txt_files=True )
reel_url="https://www.instagram.com/reel/EXAMPLE_REEL_ID/"insta_downloader.download_instagram_media(reel_url, output_directory)
story_url="https://www.instagram.com/stories/username/EXAMPLE_STORY_ID/"insta_downloader.download_instagram_media(story_url, output_directory)Extracts audio from video files.
fromsysadminx.VideoToAudioConverterimportVideoToAudioConverterconverter=VideoToAudioConverter()
video_path="./videos/example.mp4"audio_path="./audio/example.mp3"output_path, success, error_message=converter.convert_to_audio(video_path, audio_path)
ifsuccess:
print(f"Audio extracted successfully to: {output_path}")
else:
print(f"Error: {error_message}")Convert the DOcx file to Pdf
fromsysadminx.Docs2pdfimportDocs2pdfconverter=Docs2pdf()
success=converter.convert2pdf(input_path, output_path)
ifsuccess:
print("Done")
else:
print("Error occured")This project is licensed under the MIT License - see the LICENSE file for details.