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
}
Metadata
Release files for yt-dlp-custom 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yt-dlp-custom-0.0.1.tar.gz | 2.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yt_dlp_custom-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 4.7 MB
Release files / yt-dlp-custom-0.0.1.tar.gz
| Download URL | yt-dlp-custom-0.0.1.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1511d2b7e399b0f42099aded335d1914082f14270f99cee6b75f37fd77c495e
|
|
BLAKE2b-256 checksum How to use checksums |
63483c594b24046c9672c0f9c8e79830b7e5f166fe7405aa98f71915e4ac533d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / yt_dlp_custom-0.0.1-py2.py3-none-any.whl
| Download URL | yt_dlp_custom-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3a6150732c52310d69de76540f30e9a33c24f5e29ff86a653faf5dea86941dd9
|
|
BLAKE2b-256 checksum How to use checksums |
fcf21546fd486a5dfad4fc5de4b47a192062b6c7cafa169687ec32d4e62df91d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|