calibre-web-novel-api/tests/NewDoubanTest.py

14 lines
415 B
Python
Raw Normal View History

2023-07-14 16:46:52 +08:00
import requests
2021-10-28 18:11:30 +08:00
from NewDouban import NewDouban
if __name__ == "__main__":
2023-07-14 16:46:52 +08:00
# douban = NewDouban()
# result = douban.search("知识考古学")
# for book in result:
# print(book)
res = requests.get('http://127.0.0.1:8083/metadata/douban_cover?cover=https%3A//img1.doubanio.com/view/subject/l/public/s29195878.jpg',
timeout=(10, 200), allow_redirects=False)
print(res)