mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
更新代码
This commit is contained in:
12
main.py
12
main.py
@@ -32,5 +32,15 @@ def example():
|
|||||||
print(xhs.extract(video_demo, download=download))
|
print(xhs.extract(video_demo, download=download))
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
xhs = XHS()
|
||||||
|
while True:
|
||||||
|
if url := input("请输入小红书作品链接:"):
|
||||||
|
xhs.extract(url, download=True)
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
example()
|
# example()
|
||||||
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user