mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
22 lines
428 B
Python
22 lines
428 B
Python
from .Html import get_html
|
|
from .Image import generate_url
|
|
from .Image import get_id
|
|
|
|
|
|
def get_image_link(
|
|
url: str,
|
|
cookie=None,
|
|
params=None,
|
|
proxies=None,
|
|
timeout=10,
|
|
**kwargs):
|
|
html = get_html(
|
|
url,
|
|
cookie=cookie,
|
|
params=params,
|
|
proxies=proxies,
|
|
timeout=timeout,
|
|
**kwargs)
|
|
ids = get_id(html)
|
|
return generate_url(ids)
|