mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
17 lines
236 B
Python
17 lines
236 B
Python
import re
|
|
|
|
API = "https://sns-img-qc.xhscdn.com/"
|
|
ID = re.compile(r'"traceId":"(.*?)"')
|
|
|
|
|
|
def get_id(html: str):
|
|
return ID.findall(html)
|
|
|
|
|
|
def generate_url(ids: list):
|
|
return [API + i for i in ids]
|
|
|
|
|
|
def download(url):
|
|
pass
|