mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 15:07:17 +08:00
@@ -1,5 +1,5 @@
|
||||
from asyncio import run
|
||||
|
||||
from pyperclip import paste
|
||||
from httpx import post
|
||||
from rich import print
|
||||
|
||||
@@ -92,7 +92,9 @@ async def example_api():
|
||||
|
||||
|
||||
async def test():
|
||||
url = ""
|
||||
url = "" or paste()
|
||||
if not url:
|
||||
return
|
||||
async with XHS(
|
||||
download_record=False,
|
||||
# image_format="PNG",
|
||||
|
||||
@@ -87,7 +87,10 @@ class Download:
|
||||
filename,
|
||||
log,
|
||||
)
|
||||
elif type_ == _("图文"):
|
||||
elif type_ in {
|
||||
_("图文"),
|
||||
_("图集"),
|
||||
}:
|
||||
tasks = self.__ready_download_image(
|
||||
urls,
|
||||
lives,
|
||||
|
||||
Reference in New Issue
Block a user