{"id":423,"date":"2023-02-26T12:17:01","date_gmt":"2023-02-26T04:17:01","guid":{"rendered":"https:\/\/fugary.com\/?p=423"},"modified":"2023-06-03T11:33:17","modified_gmt":"2023-06-03T03:33:17","slug":"calibre%e6%a1%8c%e9%9d%a2%e7%89%88%e8%b1%86%e7%93%a3%e6%8f%92%e4%bb%b6%e5%8d%87%e7%ba%a7","status":"publish","type":"post","link":"https:\/\/fugary.com\/?p=423","title":{"rendered":"Calibre\u684c\u9762\u7248\u8c46\u74e3\u63d2\u4ef6\u5347\u7ea7"},"content":{"rendered":"<p>\u6700\u8fd1\u6536\u5230\u4e00\u4e9b\u63d2\u4ef6\u53cd\u9988\uff0c\u5bf9<code>Calibre<\/code>\u684c\u9762\u7248\u8c46\u74e3\u63d2\u4ef6\u8fdb\u884c\u4e00\u4e9b\u7b80\u5355\u5347\u7ea7<\/p>\n<p>\u4ee5\u524d\u5b89\u88c5\u6587\u6863\uff1a<a href=\"https:\/\/fugary.com\/?p=264\">https:\/\/fugary.com\/?p=264<\/a><\/p>\n<p><code>Calibre<\/code>\u7535\u5b50\u4e66\u7ba1\u7406\u8f6f\u4ef6\uff1a<a href=\"https:\/\/calibre-ebook.com\/download\">https:\/\/calibre-ebook.com\/download<\/a><\/p>\n<p><code>calibre-douban<\/code>\u662f<code>Calibre<\/code>\u7535\u5b50\u4e66\u8f6f\u4ef6\u7684\u8c46\u74e3\u5143\u6570\u636e\u63d2\u4ef6<\/p>\n<h3>\u4e0b\u8f7d\u5730\u5740<\/h3>\n<p>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/fugary\/calibre-douban\">https:\/\/github.com\/fugary\/calibre-douban<\/a><\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/fugary\/calibre-douban\/releases\/latest\/download\/NewDouban.zip\">https:\/\/github.com\/fugary\/calibre-douban\/releases\/latest\/download\/NewDouban.zip<\/a><\/p>\n<p>\u4ee3\u7406\u4e0b\u8f7d\uff1a<a href=\"https:\/\/ghproxy.com\/https:\/\/github.com\/fugary\/calibre-douban\/releases\/latest\/download\/NewDouban.zip\">https:\/\/ghproxy.com\/https:\/\/github.com\/fugary\/calibre-douban\/releases\/latest\/download\/NewDouban.zip<\/a><\/p>\n<p>\u4ecerelease\u9875\u9762\u4e0b\u8f7dzip\u5305\uff0c\u7136\u540e\u518d<code>calibre<\/code>\u4e2d\u5b89\u88c5\u4e3a\u63d2\u4ef6\u5373\u53ef\u3002<\/p>\n<h4>\u5347\u7ea7\u5185\u5bb9<\/h4>\n<p>\u5220\u9664\u4e86\u4e00\u4e9b\u65e0\u7528\u4ee3\u7801\uff0c\u53e6\u5916\u589e\u52a0\u529f\u80fd\uff1a<\/p>\n<ol>\n<li>\u589e\u52a0<code>gzip<\/code>\u652f\u6301\uff0c\u6709\u53ef\u80fd\u63d0\u5347\u4e00\u70b9\u901f\u5ea6<\/li>\n<li>\u589e\u52a0\u968f\u673a\u6beb\u79d2\u5ef6\u8fdf\uff0c\u51cf\u5c11\u88ab403\u7684\u51e0\u7387<\/li>\n<li>\u589e\u52a0<code>Cookie<\/code>\u8f93\u5165\u6846\uff0c\u53ef\u4ee5\u586b\u5165\u6d4f\u89c8\u5668\u767b\u5f55\u540e\u7684<code>Cookie<\/code>\uff0c\u51cf\u5c11403<\/li>\n<\/ol>\n<h4>\u914d\u7f6e\u968f\u673a\u5ef6\u8fdf<\/h4>\n<p>\u9ed8\u8ba4\u5df2\u5f00\u542f\u968f\u673a\u5ef6\u8fdf\uff0c\u4e5f\u5c31\u662f\u5728\u5e76\u53d1\u8bf7\u6c42\u8be6\u60c5\u6570\u636e\u7684\u65f6\u5019\u968f\u673a<code>sleep<\/code>\u4e00\u5b9a\u7684\u6beb\u79d2\u6570\uff0c\u53ef\u4ee5\u5173\u95ed\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/38a6daf555be32dce39c0c5c5356f0a8\/image-20230226114332864.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/38a6daf555be32dce39c0c5c5356f0a8\/image-20230226114332864.png\" alt=\"image-20230226114332864\" \/><\/div><\/p>\n<p>\u53c2\u8003\u4ee3\u7801<\/p>\n<pre><code class=\"language-python\">def random_sleep(self, log):\n    random_sec = random.random() \/ 10\n    log.info(&quot;Random sleep time {}s&quot;.format(random_sec))\n    time.sleep(random_sec)<\/code><\/pre>\n<h4>Cookie\u914d\u7f6e<\/h4>\n<p>\u6709\u65f6\u5019\u53ef\u80fd\u6211\u4eec\u7684IP\u5df2\u7ecf\u88ab\u62e6\u4e86\uff0c\u8fd9\u65f6\u53ef\u4ee5\u81ea\u5df1\u767b\u5f55\u8c46\u74e3\u7f51\u7ad9\uff0c\u7136\u540e\u628a<code>Cookie<\/code>\u590d\u5236\u51fa\u6765\u586b\u8fdb\u63d2\u4ef6\u914d\u7f6e\u4e2d\u3002<\/p>\n<p><code>IP<\/code>\u88ab\u62e6\u7684\u9519\u8bef\u5982\u4e0b\uff1a<\/p>\n<blockquote>\n<p>\u6709\u5f02\u5e38\u8bf7\u6c42\u4ece\u4f60\u7684 IP \u53d1\u51fa\uff0c\u8bf7 <a href=\"https:\/\/accounts.douban.com\/passport\/login?redir=https%3A%2F%2Fwww.douban.com%2Fsearch%3Fq%3D%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%B3%BB%E7%BB%9F\">\u767b\u5f55<\/a> \u4f7f\u7528\u8c46\u74e3<\/p>\n<\/blockquote>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/080de0c3baa4fb677f1477f76ee068f8\/image-20230226115011569.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/080de0c3baa4fb677f1477f76ee068f8\/image-20230226115011569.png\" alt=\"image-20230226115011569\" \/><\/div><\/p>\n<p>\u7528<code>Chrome<\/code>\u6216\u8005<code>Edge<\/code>\u6d4f\u89c8\u5668\u6253\u5f00https:\/\/www.douban.com\uff0c\u70b9\u51fb\u3010\u767b\u5f55\u3011\u8fdb\u5165\u767b\u5f55\u9875\u9762\uff0c\u767b\u5f55\u6210\u529f\u4e4b\u540e\uff0c\u6309<code>F12<\/code>\u6253\u5f00\u5f00\u53d1\u8005\u5de5\u5177\uff1a<\/p>\n<p>\u4ece<code>Network<\/code>\uff0c\u627e\u5230<code>Doc<\/code>\u7c7b\u578b\uff0c\u968f\u4fbf\u70b9\u51fb\u4e00\u4e2a\u8c46\u74e3\u7684\u7f51\u5740\uff0c\u8fdb\u5165<code>Headers<\/code>\uff0c\u627e\u5230<code>Request Headers<\/code>\u91cc\u9762\u7684<code>Cookie<\/code>\u5b57\u6bb5\uff0c\u5982\u56fe\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/89594cba6c0b1252292625b2994fd51c\/image-20230226120735985.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/89594cba6c0b1252292625b2994fd51c\/image-20230226120735985.png\" alt=\"image-20230226120735985\" \/><\/div><\/p>\n<p>\u5982\u679c\u662f\u4e2d\u6587\u7248\uff1a<\/p>\n<p>\u4ece<code>\u7f51\u7edc<\/code>\uff0c\u627e\u5230<code>\u6587\u6863<\/code>\u7c7b\u578b\uff0c\u968f\u4fbf\u70b9\u51fb\u4e00\u4e2a\u8c46\u74e3\u7684\u7f51\u5740\uff0c\u8fdb\u5165<code>\u6807\u5934<\/code>\uff0c\u627e\u5230<code>\u8bf7\u6c42\u6807\u5934<\/code>\u91cc\u9762\u7684<code>Cookie<\/code>\u5b57\u6bb5\uff0c\u5982\u56fe\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/4593fa9a26d2d0cf289f312856d30c30\/image-20230226120852392.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/4593fa9a26d2d0cf289f312856d30c30\/image-20230226120852392.png\" alt=\"image-20230226120852392\" \/><\/div><\/p>\n<p>\u627e\u5230<code>Cookie:<\/code>\u540e\u9762\u7684\u90e8\u5206\uff0c\u590d\u5236\u540e\u9762\u7684\u5185\u5bb9\uff0c\u4e0d\u5305\u542b<code>Cookie:<\/code>\u3002<\/p>\n<p>\u5230<code>Calibre<\/code>\u63d2\u4ef6\u914d\u7f6e\u9875\u9762\u586b\u5165<code>Cookie<\/code>\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/1c05de84520bf33dadce8a576574a0f6\/image-20230226114608142.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/1c05de84520bf33dadce8a576574a0f6\/image-20230226114608142.png\" alt=\"image-20230226114608142\" \/><\/div><\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u7528\u7528\u6237\u7684\u8eab\u4efd\u67e5\u8be2\uff0c\u4e00\u822c\u662f\u53ef\u4ee5\u89e3\u51b3403\u95ee\u9898\u3002<\/p>\n<h4>\u5e38\u89c1\u9519\u8bef<\/h4>\n<p>\u5982\u679c\u53c8\u9047\u5230\u67e5\u8be2\u5931\u8d25\uff0c\u53ef\u80fd\u662f\u8fd9\u4e2a\u9519\u8bef<\/p>\n<blockquote>\n<p>\u2026\u4f60\u8bbf\u95ee\u8c46\u74e3\u7684\u65b9\u5f0f\u6709\u70b9\u50cf\u673a\u5668\u4eba\u7a0b\u5e8f\u3002\u4e3a\u4e86\u4fdd\u62a4\u7528\u6237\u7684\u6570\u636e\uff0c\u8bf7\u5411\u6211\u4eec\u8bc1\u660e\u4f60\u662f\u4eba\u7c7b:<\/p>\n<\/blockquote>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/6bb8ea13e4b24df4622ef0ed317a52b6\/image-20230226121336523.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/6bb8ea13e4b24df4622ef0ed317a52b6\/image-20230226121336523.png\" alt=\"image-20230226121336523\" \/><\/div><\/p>\n<p>\u56e0\u4e3a\u4f7f\u7528\u4e86<code>Cookie<\/code>\uff0c\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u81ea\u5df1\u70b9\u51fb\u8bc1\u660e\u4e00\u4e0b\uff0c\u518d\u5728<code>calibre<\/code>\u4e2d\u91cd\u65b0\u67e5\u8be2\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u6536\u5230\u4e00\u4e9b\u63d2\u4ef6\u53cd\u9988\uff0c\u5bf9Calibre\u684c\u9762\u7248\u8c46\u74e3\u63d2\u4ef6\u8fdb\u884c\u4e00\u4e9b\u7b80\u5355\u5347\u7ea7 \u4ee5\u524d\u5b89\u88c5\u6587\u6863\uff1ahttps:\/\/fugar [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[84,43,83],"_links":{"self":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/423"}],"collection":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=423"}],"version-history":[{"count":2,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":510,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions\/510"}],"wp:attachment":[{"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}