Forwarded from DT_PYTHON_LEARNING (𝓓𝓪𝓻𝓲𝓾𝓼𝓱 𝓣𝓪𝓼𝓭𝓲𝓰𝓱𝓲)
Media is too big
VIEW IN TELEGRAM
Source Code
https://github.com/Dariush-Tasdighi/Python_Projects
#Movie #SourceCode #Python #General #EthicalHacking #Cryptography #CTF
🆔 @Dariush_Tasdighi
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤16👍4
Media is too big
VIEW IN TELEGRAM
〰️ آشنایی با Jupyter Notebook
〰️ ایجاد یک Project Template برای انجام پروژههای پایتون
#Course #AI #LLM #LLMOPS #RAG #Jupyter #Notebook #Python
🆔 @Dariush_Tasdighi
🆔 @LLM_Ops
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤33👍4
Media is too big
VIEW IN TELEGRAM
〰️ آموزش اتصال به سرویس Ollama و ایجاد یک Text Chatbot ساده، با استفاده از کتابخانه Ollama
#Course #AI #LM #LMOps #LLM #LLMOPS #RAG #Python #Ollama
🆔 @Dariush_Tasdighi
🆔 @LLM_Ops
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤25👍5
Media is too big
VIEW IN TELEGRAM
DT Protect PDF
#pdf #python
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤30👍8
the_war_of_the_worlds_protected.pdf
921.6 KB
The War of the Worlds
〰️ داریوش تصدیقی
〰️ حسین روزبهانی
#pdf #python #llm #llmops #lmops #ebook #e_book
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤25👍13
Media is too big
VIEW IN TELEGRAM
#python #free #application #source_code #movie
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤24👍5
This media is not supported in your browser
VIEW IN TELEGRAM
#python #free #application #source_code #password #password_manager #cyber_security
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤22👍8
the_willows_protected.pdf
8.9 MB
〰️ نام کتاب: The Willows
〰️ نویسنده: Algernon Blackwood
〰️ یه رمان در سبک گوتیک
#python #book #ebook #ai #translate #LM #LMOps #LLM #LLMOps
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤15👍4
#python #free #application #source_code #password #password_manager #cyber_security
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤19👍3
Audio
#python #free #source_code #lm #lmops #llm #llmops #tts #text_to_speech
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤15👍3
زمانی که ذهنهای خلاق، هوش مصنوعی خلق میکنند، متاسفانه، ذهنهای کودن و متوهم، ذهنهای مستعد را مایوس کرده، و ذهنهای خلاق را فراری میدهند!
〰️ داریوش تصدیقی - هفتم / بهمنماه / ۱۴۰۴
python -m pip install -U pip
python -m pip install -U yt-dlp
python ./app.py
import os
from pathlib import Path
from yt_dlp import YoutubeDL
BASE_DOWNLOAD_PATH: str = "./downloads"
def download_playlist(
base_dir: str,
playlist_id: str,
):
"""
Download a YouTube playlist in order, up to 1080p, with English subtitles
if available. Creator ID is automatically extracted from playlist metadata.
"""
playlist_url: str = f"https://www.youtube.com/playlist?list={playlist_id}"
# Step 1: Extract playlist metadata (without downloading)
with YoutubeDL(params={"quiet": True}) as ydl:
info = ydl.extract_info(url=playlist_url, download=False)
# Extract creator/uploader identifier safely
creator_id = (
info.get("uploader_id")
or info.get("uploader")
or "unknown_creator"
)
# Step 2: Build directory structure
# base_dir / creator_id / playlist_id
playlist_path = Path(base_dir) / creator_id / playlist_id
playlist_path.mkdir(parents=True, exist_ok=True)
# Archive file to track downloaded videos
archive_file = playlist_path / "downloaded.txt"
ydl_opts = {
# Best video up to 1080p + best audio, then merge
"format": "bestvideo[height<=1080]+bestaudio/best[height<=1080]",
# Preserve playlist order in filenames
"outtmpl": str(
playlist_path / "%(playlist_index)02d - %(title)s.%(ext)s"
),
# Playlist handling
"noplaylist": False,
"yesplaylist": True,
# Merge output format
"merge_output_format": "mp4",
# Error handling
"ignoreerrors": True,
"retries": 3,
# Archive to avoid re-downloading videos
"download_archive": str(archive_file),
# Subtitle settings
"writesubtitles": True,
"writeautomaticsub": True,
"subtitleslangs": ["en"],
"subtitlesformat": "vtt",
}
with YoutubeDL(ydl_opts) as ydl:
ydl.download([playlist_url])
def main() -> None:
"""
The main of program
"""
os.system(command="cls" if os.name == "nt" else "clear")
playlist_ids: list[str] = [
"PLNJUbRWljtkb0AzjG0s78goCg0xOaI9KK",
"PLgt_9NUA44-Xu6-IbAE9DDti53hhx2ltM",
]
for playlist_id in playlist_ids:
download_playlist(
playlist_id=playlist_id,
base_dir=BASE_DOWNLOAD_PATH,
)
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
pass
except Exception as error:
print(f"\n[-] {error}!")
print()
#python #download #source_code #youtube #playlist
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤87👍9
#python #free #application #source_code #check_internet #check_internet_status #cyber_security
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
GitHub - Dariush-Tasdighi/DT_APP_Python_Check_Internet_Status: DT APP Python Check Internet Status
DT APP Python Check Internet Status. Contribute to Dariush-Tasdighi/DT_APP_Python_Check_Internet_Status development by creating an account on GitHub.
❤28👍7
〰️ نسخه مقاله: ۱.۲
python app.py
import os
import shutil
from typing import Final
PATH: Final[str] = "./data"
NO_EXTENSION_NAME: Final[str] = "no_extension"
def main() -> None:
"""Program entry point."""
os.system(command="cls" if os.name == "nt" else "clear")
if not os.path.exists(path=PATH):
print(f"[-] The directory '{PATH}' does not exist!")
return
items: list[str] = os.listdir(path=PATH)
for item in items:
source_file_path: str = f"{PATH}/{item}"
if not os.path.isfile(path=source_file_path):
continue
_, extension = os.path.splitext(p=source_file_path)
extension = extension[1:].strip().lower()
if not extension:
extension = NO_EXTENSION_NAME
destination_path = f"{PATH}/{extension}"
os.makedirs(name=destination_path, exist_ok=True)
shutil.move(src=source_file_path, dst=destination_path)
print("Done!")
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
pass
except Exception as exception:
print(f"[-] {exception}!")
#python #source_code #file_organizer
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤17👍4
#python #free #api #lm #lmops #llm #llmops
🆔 @Dariush_Tasdighi
🆔 @LLM_OPS
🆔 @IranianExperts
🆔 @DT_PYTHON_LEARNING
.
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
GitHub - cheahjs/free-llm-api-resources: A list of free LLM inference resources accessible via API.
A list of free LLM inference resources accessible via API. - cheahjs/free-llm-api-resources
❤13👍4