Skip to content

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.

License

Notifications You must be signed in to change notification settings

MrTG-CodeBot/SysAdminx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 │███████╗██╗   ██╗███████╗ █████╗ ██████╗ ███╗   ███╗██╗███╗   ██╗██╗  ██╗
 │██╔════╝╚██╗ ██╔╝██╔════╝██╔══██╗██╔══██╗████╗ ████║██║████╗  ██║╚██╗██╔╝
 │███████╗ ╚████╔╝ ███████╗███████║██║  ██║██╔████╔██║██║██╔██╗ ██║ ╚███╔╝
 │╚════██║  ╚██╔╝  ╚════██║██╔══██║██║  ██║██║╚██╔╝██║██║██║╚██╗██║ ██╔██╗
 │███████║   ██║   ███████║██║  ██║██████╔╝██║ ╚═╝ ██║██║██║ ╚████║██╔╝ ██╗
 │╚══════╝   ╚═╝   ╚══════╝╚═╝  ╚═╝╚═════╝ ╚═╝     ╚═╝╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝

Media Downloader & Converter Toolkit

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.

Table of Contents

Features

  • 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

Installation

  1. Clone the repository:
git clone https://github.com/MrTG-CodeBot/SysAdminx.git
cd SysAdminx
pip3 install -U -r requirements.txt
python3 main.py
  1. Install the required dependencies:
pip install pytubefix instaloader moviepy

or

pip3 install -U -r requirements.txt

Components

YouTube Audio Downloader

Downloads audio from YouTube videos and converts them to MP3 or WAV format.

from sysadminx.YtAudioDownloader import YtAudioDownloader

downloader = 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)

Format Changer

Converts between media formats of the same type (photo-to-photo, video-to-video, audio-to-audio).

from sysadminx.FormatChanger import FormatChanger

converter = FormatChanger()

input_file = "./downloads/audio.m4a"
output_file = "./downloads/audio.mp3"

success = converter.convert_format(input_file, output_file)

if success:
    print(f"Successfully converted {input_file} to {output_file}")
else:
    print("Conversion failed")

Instagram Media Downloader

Downloads media from Instagram posts, reels, stories, and IGTV.

from sysadminx.InstaMediaDownloader import InstaMediaDownloader

insta_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)

Video to Audio Converter

Extracts audio from video files.

from sysadminx.VideoToAudioConverter import VideoToAudioConverter

converter = VideoToAudioConverter()

video_path = "./videos/example.mp4"
audio_path = "./audio/example.mp3"

output_path, success, error_message = converter.convert_to_audio(video_path, audio_path)

if success:
    print(f"Audio extracted successfully to: {output_path}")
else:
    print(f"Error: {error_message}")

Docx to Pdf Converter

Convert the DOcx file to Pdf

from sysadminx.Docs2pdf import Docs2pdf

converter = Docs2pdf()

success = converter.convert2pdf(input_path, output_path)
if success:
   print("Done")
else:
   print("Error occured")

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy