mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 12:56:22 +08:00
13 lines
245 B
Python
13 lines
245 B
Python
from re import compile
|
|
|
|
from .Html import Html
|
|
|
|
__all__ = ['Video']
|
|
|
|
|
|
class Video:
|
|
VIDEO_ID = compile(r'"masterUrl":"(.*?)"')
|
|
|
|
def get_video_link(self, html: str):
|
|
return [Html.format_url(u) for u in self.VIDEO_ID.findall(html)]
|