A youtube-dl fork with additional features and patches
Project description
Official repository: https://github.com/yt-dlp/yt-dlp
PS: Some links in this document will not work since this is a copy of the README.md from Github
Introduce
This package only modified to get hastags and unique filename as post-id.
- First modified
#yt_dlp/YoutubeDL.py
def _get_filename_as_uniqid(self, info_dict):
post_id_reg = re.compile('(?<=video\/)[0-9]+')
post_id = post_id_reg.search(info_dict['webpage_url'])[0]
filename = f"/tmp/{post_id}.{info_dict['ext']}"
return filename
def prepare_filename(self, info_dict, dir_type='', *, outtmpl=None, warn=False):
"""Generate the output filename"""
...
...
filename = self._get_filename_as_uniqid(info_dict)
- Second modified
# yt_dlp/extractor/tiktok.py
def _parse_aweme_video_app(self, aweme_detail):
aweme_id = aweme_detail['aweme_id']
video_info = aweme_detail['video']
author_name_info = aweme_detail['author']
hashtags_info = []
for hashtag_info in aweme_detail['text_extra']:
if hashtag_info.get('hashtag_name'):
hashtags_info.append(hashtag_info['hashtag_name'])
return {
...
...
'author': author_name_info,
'hashtags_info': hashtags_info
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yt-dlp-custom-0.0.1.tar.gz
(2.1 MB
view details)
Built Distribution
File details
Details for the file yt-dlp-custom-0.0.1.tar.gz
.
File metadata
- Download URL: yt-dlp-custom-0.0.1.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1511d2b7e399b0f42099aded335d1914082f14270f99cee6b75f37fd77c495e |
|
MD5 | 7d428e10316fa170393c8c77a760cbfd |
|
BLAKE2b-256 | 63483c594b24046c9672c0f9c8e79830b7e5f166fe7405aa98f71915e4ac533d |
File details
Details for the file yt_dlp_custom-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: yt_dlp_custom-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a6150732c52310d69de76540f30e9a33c24f5e29ff86a653faf5dea86941dd9 |
|
MD5 | c474ee0df302998f8274ec4f105ca43b |
|
BLAKE2b-256 | fcf21546fd486a5dfad4fc5de4b47a192062b6c7cafa169687ec32d4e62df91d |