Compare commits

...

12 Commits

Author SHA1 Message Date
Alejandro Garcia 25f6873489
Merge 05531550c7 into 5904853ae5 2024-05-06 13:40:20 +00:00
EGA-SUPREMO 05531550c7 add support for fkbae.to 2024-05-06 09:40:05 -04:00
EGA-SUPREMO 5c2ca53ec3 clean code 2024-05-03 10:21:47 -04:00
EGA-SUPREMO 68163f7530 fix regex 2024-05-03 10:11:08 -04:00
EGA-SUPREMO 25fff48148 remove unused import 2024-05-03 09:27:08 -04:00
EGA-SUPREMO 51a3d602ce fix tests and clean code 2024-05-03 09:24:54 -04:00
EGA-SUPREMO f2c122a8b6 add http headers 2024-05-03 08:01:49 -04:00
EGA-SUPREMO 3997c6d84b clean code 2024-05-03 07:35:03 -04:00
EGA-SUPREMO 16d3268cf9 add real format url to FYPTT 2024-04-30 08:17:27 -04:00
EGA-SUPREMO 73b672a979 add regex for title 2024-04-29 14:15:24 -04:00
EGA-SUPREMO c4790a0de8 add valid url regex 2024-04-22 11:43:07 -04:00
EGA-SUPREMO bab753c547 add fyptt extrator empty file 2024-04-22 11:04:45 -04:00
2 changed files with 57 additions and 0 deletions

View File

@ -665,6 +665,7 @@
from .funk import FunkIE
from .funker530 import Funker530IE
from .fuyintv import FuyinTVIE
from .fyptt import FYPTTIE
from .gab import (
GabTVIE,
GabIE,

56
yt_dlp/extractor/fyptt.py Normal file
View File

@ -0,0 +1,56 @@
from .common import InfoExtractor
import re
class FYPTTIE(InfoExtractor):
_VALID_URL = r'https?://(?:fyptt|fkbae)\.to/(?P<id>[0-9a-zA-Z]+)(?:|/)'
_TESTS = [{
'url': 'https://fyptt.to/203/gorgeous-naughty-blonde-with-beautiful-curves-shows-her-naked-boobies-on-nsfw-tiktok/',
'md5': 'fc12bce4a9c1335f153500c8fea6e1a8',
'info_dict': {
'id': '203',
'ext': 'mp4',
'title': 'Gorgeous, naughty blonde with beautiful curves shows her naked boobies on NSFW TikTok',
'age_limit': 18
},
}, {
'url': 'https://fyptt.to/10382/beautiful-livestream-tits-and-nipples-slip-from-girls-who-loves-talking-with-their-viewers/',
'only_matching': True,
}, {
'url': 'https://fyptt.to/120/small-tits-fit-blonde-dancing-naked-at-the-front-door-on-tiktok',
'only_matching': True,
}, {
'url': 'https://fkbae.to/18',
'only_matching': True,
}]
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
formats = []
format_url = self._html_search_regex(r'"embedURL":"([^"]+)"', webpage, 'video URL')
format_url = re.sub(r'\\', '', format_url)
webpage_video = self._download_webpage(format_url, video_id)
match = re.search(r'(https:\/\/[^"]+\.mp4)', webpage_video)
format_url = match.group(1)
formats.append({
'url': format_url,
'format_id': 'default',
})
title = self._html_search_regex(r'<span class="fl-heading-text">(.+?)</span>', webpage, 'title')
base_url = re.search(r'^(https?://[a-zA-Z0-9_-]+\.to)', url).group(1)
http_headers = {'Referer': base_url}
return {
'id': video_id,
'title': title,
'formats': formats,
'age_limit': 18,
'http_headers': http_headers
}