{"id":130959,"date":"2020-07-05T05:25:15","date_gmt":"2020-07-04T21:25:15","guid":{"rendered":"http:\/\/4563.org\/?p=130959"},"modified":"2020-07-05T05:25:15","modified_gmt":"2020-07-04T21:25:15","slug":"aria2-%e8%87%aa%e5%8a%a8rss%e8%ae%a2%e9%98%85%e4%b8%8b%e8%bd%bd%e5%ae%8c%e5%b9%b6%e4%bd%bf%e7%94%a8gclone%e4%b8%8a%e4%bc%a0%e5%88%b0go-od-%e8%bf%98%e5%88%a0%e9%99%a4%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=130959","title":{"rendered":"Aria2 \u81ea\u52a8RSS\u8ba2\u9605\u4e0b\u8f7d\u5b8c\u5e76\u4f7f\u7528gclone\u4e0a\u4f20\u5230GO\/OD \u8fd8\u5220\u9664\u6587\u4ef6"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>kuk<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>Aria2 \u81ea\u52a8RSS\u8ba2\u9605\u4e0b\u8f7d\u5b8c\u5e76\u4f7f\u7528gclone\u4e0a\u4f20\u5230GO\/OD \u8fd8\u5220\u9664\u6587\u4ef6<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 kuk \u4e8e 2020-7-5 05:17 \u7f16\u8f91 <\/p>\n<p> https:\/\/i.loli.net\/2020\/07\/05\/RPYQikbe3tLWnEU.png<br \/>  \u7a0d\u5fae\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u5df2\u7ecf\u6709\u73b0\u6210\u7684Aria2 \u4e0b\u8f7d\u5b8c\u81ea\u52a8\u4f7f\u7528rclone\u4e0a\u4f20\u5e76\u5220\u9664\u6587\u4ef6\u811a\u672c<br \/>  \u4e0d\u8fc7\u5374\u53d1\u73b0Aria2 \u672c\u8eab\u4e0d\u652f\u6301RSS\u8ba2\u9605\uff0c\u4e8e\u662f\u641c\u7d22\u4e86\u6574\u5929\u603b\u7b97\u6709\u4e2a\u80fd\u7528\u7b2c\u4e09\u65b9RSS\u8ba2\u9605\u63a8\u9001Aria2\uff0cFlexget<br \/>  \u6700\u7ec8\u5b9e\u73b0Aria2 \u81ea\u52a8RSS\u8ba2\u9605\u4efb\u52a1\u4e0b\u8f7d\uff0c\u5b8c\u5e76\u4f7f\u7528gclone\u4e0a\u4f20\u5230GO\/OD\uff0c\u6700\u540e\u5220\u9664\u672c\u5730\u5360\u7528\u6587\u4ef6<\/p>\n<p>  \u672c\u8d34\u53c2\u8003<br \/>  https:\/\/p3terx.com\/archives\/offline-download-of-onedrive-gdrive.html<br \/>  https:\/\/npchk.info\/linux-flexget-rss\/<br \/>  https:\/\/linkthis.me\/2018\/02\/15\/the-note-of-using-flexget\/<br \/>  https:\/\/flexget.com\/Plugins\/aria2<\/p>\n<p>  \u4f7f\u7528\u8f6f\u4ef6<br \/>  aria2<br \/>  gclone \/ rclone<br \/>  Flexget\uff08\u9700\u8981python3\u73af\u5883\uff09<\/p>\n<p>  Aria2 \u4e00\u952e\u5b89\u88c5\u7ba1\u7406\u811a\u672c \u589e\u5f3a\u7248<br \/>  wget -N git.io\/aria2.sh &amp;&amp; chmod +x aria2.sh &amp;&amp; .\/aria2.sh<\/p>\n<p>  \u5b89\u88c5 gclone \/ rclone<br \/>  #\u63a8\u8350 gclone \u5b89\u88c5\u5e76\u590d\u5236\u547d\u540drclone<br \/>  bash &lt;(wget -qO- https:\/\/git.io\/gclone.sh)<br \/>  cp \/usr\/bin\/gclone \/usr\/bin\/rclone<\/p>\n<p>  #rclone \u5b89\u88c5\uff08\u6ce8\u610f\uff1a\u5df2\u5b89\u88c5gclone\u65e0\u9700\u518d\u5b89\u88c5rclone\uff09<br \/>  curl https:\/\/rclone.org\/install.sh | sudo bash<br \/>  \u914d\u7f6e\u65b9\u9762\u8bf7\u81ea\u884c\u641c\u7d22rclone\u6559\u7a0b<\/p>\n<p>  \u7f16\u8f91\u81ea\u52a8\u4e0a\u4f20\u811a\u672c<br \/>  nano \/root\/.aria2c\/upload.sh<br \/>  \u5bf9\u5e94\u4fee\u6539\u76f8\u5173\u53c2\u6570<br \/>  # Aria2 \u4e0b\u8f7d\u76ee\u5f55<br \/>  DOWNLOAD_PATH=&#8217;\/root\/downloads&#8217;<\/p>\n<p>  # Rclone \u914d\u7f6e\u65f6\u586b\u5199\u7684\u7f51\u76d8\u540d(name)<br \/>  DRIVE_NAME=&#8217;Onedrive&#8217;<\/p>\n<p>  # \u7f51\u76d8\u76ee\u5f55\u3002\u5373\u4e0a\u4f20\u76ee\u6807\u8def\u5f84\uff0c\u7559\u7a7a\u4e3a\u7f51\u76d8\u6839\u76ee\u5f55\uff0c\u672b\u5c3e\u4e0d\u8981\u6709\u659c\u6760\u3002<br \/>  DRIVE_PATH=&#8217;\/DRIVEX\/Download&#8217;<\/p>\n<p>  \u542f\u52a8\u811a\u672c<br \/>  nano \/root\/.aria2c\/aria2.conf<br \/>  \u4fee\u6539\u4ee5\u4e0b\u53c2\u6570<br \/>  # \u4e0b\u8f7d\u5b8c\u6210\u540e\u6267\u884c\u7684\u547d\u4ee4<br \/>  on-download-complete=\/root\/.aria2c\/upload.sh<br \/>  \u91cd\u542f Aria2<br \/>  service aria2 restart<\/p>\n<p>  .\/aria2.sh<br \/>  6<\/p>\n<p>  Flexget \u7b2c\u4e09\u65b9RSS\u8ba2\u9605\u63a8\u9001\uff0c\u5168\u5c40\u5b89\u88c5<br \/>  apt update<br \/>  apt install python3-pip<br \/>  pip3 install &#8211;upgrade pip<br \/>  hash -d pip3<br \/>  pip3 install &#8211;upgrade setuptools<br \/>  pip3 install &#8211;ignore-installed flexget<\/p>\n<p>  \u5982\u679cFlexget \u5168\u5c40\u5b89\u88c5\u5931\u8d25\uff0c\u53ef\u4ee5\u53c2\u8bd5virtualenv\u73af\u5883\u5b89\u88c5<br \/>  apt update<br \/>  apt install python3-pip<br \/>  apt-get install python3-venv<br \/>  cd ~\/flexget\/<br \/>  bin\/pip install flexget<br \/>  source ~\/flexget\/bin\/activate<\/p>\n<p>  \u914d\u7f6eFlexget Aria2 RSS<br \/>  cd<br \/>  mkdir -p ~\/.config\/flexget<br \/>  cd .config\/flexget<br \/>  touch config.yml<br \/>  nano config.yml<\/p>\n<p>  config.yml\u683c\u5f0f<br \/>  tasks:<br \/>  \u4efb\u52a1\u540d\u79f0:<br \/>  &nbsp; &nbsp; rss: RSS-URL<br \/>  &nbsp; &nbsp; accept_all: yes<br \/>  &nbsp; &nbsp; aria2:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;server: Aria2-IP<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;port: Aria2-\u7aef\u53e3<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;secret: Aria2-\u5bc6\u94a5<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;path: Aria2-\u4e0b\u8f7d\u7edd\u5bf9\u8def\u5f84<\/p>\n<p>  config.yml\u4f8b\u5b50<br \/>  \u521b\u5efa&quot;Anime&quot;\u540d\u79f0\u4efb\u52a1\uff0cRSS\u94fe\u63a5\u4e3a&quot;https:\/\/nyaa.si\/?page=rss&amp;c=1_0&amp;f=0&quot;<br \/>  aria2 IP\u4e3a&quot;127.0.0.1&quot;\uff0c\u7aef\u53e3\u4e3a&quot;6800&quot;\uff0c\u5bc6\u94a5\u4e3a&quot;221d8645ddf44bc5953c&quot;\uff0c\u4e0b\u8f7d\u8def\u5f84\u4e3a&quot;\/root\/downloads&quot;<br \/>  tasks:<br \/>  Anime:<br \/>  &nbsp; &nbsp; rss: https:\/\/nyaa.si\/?page=rss&amp;c=1_0&amp;f=0<br \/>  &nbsp; &nbsp; accept_all: yes<br \/>  &nbsp; &nbsp; aria2:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;server: 127.0.0.1<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;port: 6800<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;secret: 221d8645ddf44bc5953c<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;path: \/root\/downloads<\/p>\n<p>  \u7f16\u8f91\u5b8c\u6210\u540e\u6d4b\u8bd5\u4e00\u4e0b<br \/>  flexget &#8211;test execute<\/p>\n<p>  \u4f7f\u7528crontab\u8bbe\u7f6eFlexget\u5237\u65b0\u9891\u7387<br \/>  \u67e5\u770bFlexget\u7684\u7edd\u5bf9\u8def\u5f84<br \/>  which flexget<\/p>\n<p>  \u5047\u8bbeFlexget\u7684\u7edd\u5bf9\u8def\u5f84\u4e3a&quot;\/usr\/local\/bin\/flexget&quot;\uff0c\u8bbe\u7f6e\u6bcf2\u5206\u949f\u9891\u7387\u5237\u65b0<br \/>  crontab -e<br \/>  \u6dfb\u52a0<br \/>  *\/2 * * * * \/usr\/local\/bin\/flexget &#8211;cron execute<\/p>\n<p>  2\u5206\u949f\u540e\u67e5\u770b\u72b6\u6001<br \/>  flexget status<\/p>\n<p>  \u6709\u95ee\u9898\u53ef\u4ee5\u67e5\u770b\u65e5\u5fd7<br \/>  cat ~\/.config\/flexget\/flexget.log\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e13\u6536\u7206\u7c73\u82b1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u521a\u597d\u6211\u5728\u5b66\u4e60PY<br \/>  \u7136\u540e\u5b89\u88c5py\u7684\u65f6\u5019\u9047\u5230\u4e86\u95ee\u9898\uff0c\u987a\u4fbf\u95ee\u95ee\u8001\u53f8\u673a\uff0c<\/p>\n<p>  \u6211\u8fd9\u4e2apip\u4e00\u76f4\u5b89\u88c5\u4e0d\u4e0a\uff0c\u7136\u540epy3=py3.8 \u5417\uff1f<\/p>\n<p>  yum install python3-pip<br \/>  Loaded plugins: changelog, fastestmirror<br \/>  Setting up Install Process<br \/>  Loading mirror speeds from cached hostfile<br \/>   * base: ftp.tsukuba.wide.ad.jp<br \/>   * extras: ftp.tsukuba.wide.ad.jp<br \/>   * updates: ftp.tsukuba.wide.ad.jp<br \/>  base&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| 3.7 kB&nbsp; &nbsp;00:00&nbsp; &nbsp;<br \/>  extras&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| 3.3 kB&nbsp; &nbsp;00:00&nbsp; &nbsp;<br \/>  updates&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| 3.4 kB&nbsp; &nbsp;00:00&nbsp; &nbsp;<br \/>  No package python3-pip available.<br \/>  Error: Nothing to do<\/p>\n<p>  \t\t\t\t\t<strong>kuk<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e13\u6536\u7206\u7c73\u82b1 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-7-5 05:20<br \/>  \u521a\u597d\u6211\u5728\u5b66\u4e60PY<br \/>  \u7136\u540e\u5b89\u88c5py\u7684\u65f6\u5019\u9047\u5230\u4e86\u95ee\u9898\uff0c\u987a\u4fbf\u95ee\u95ee\u8001\u53f8\u673a\uff0c<\/p>\n<p> \u4f60\u7684CentOS\u7684\u6e90\u6ca1python3-pip\u5305<br \/>  \u5efa\u8bae\u5b89\u88c5EPEL\u7b2c\u4e09\u65b9\u6e90<br \/>  #CentOS\/RHEL 6\/7<br \/>  yum install epel-release<\/p>\n<p>  #CentOS\/RHEL 8<br \/>  dnf install epel-release\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>kuk \u5927\u4f6c\u6709\u8bdd\u8bf4 : Aria2&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/130959"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130959"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/130959\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130959"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}