{"id":71777,"date":"2020-04-24T16:56:52","date_gmt":"2020-04-24T08:56:52","guid":{"rendered":"http:\/\/4563.org\/?p=71777"},"modified":"2020-04-24T16:56:52","modified_gmt":"2020-04-24T08:56:52","slug":"%e5%a4%a9%e7%bf%bc%e4%ba%91-1080%e4%b8%aa%e5%85%b1%e4%ba%ab%e8%bd%ac%e5%ad%98%e7%bb%9f%e8%ae%a1%e9%99%84%e8%87%aa%e5%8a%a8%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=71777","title":{"rendered":"\u5929\u7ffc\u4e91 1080\u4e2a\u5171\u4eab\u8f6c\u5b58\u7edf\u8ba1(\u9644\u81ea\u52a8\u811a\u672c)"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>chinni<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5929\u7ffc\u4e91 1080\u4e2a\u5171\u4eab\u8f6c\u5b58\u7edf\u8ba1(\u9644\u81ea\u52a8\u811a\u672c)<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 chinni \u4e8e 2020-4-24 16:04 \u7f16\u8f91 <\/p>\n<p> \u5927\u4f6c\u5206\u4eab\u4e86 1080\u4e2a \u52a8\u753b<br \/>  \u7136\u540e\u7528\u811a\u672c\u6279\u91cf \u8f6c\u5b58\u540e\u7edf\u8ba1\u5982\u4e0b<br \/>  \u5171\u4eab1080\u4e2a\u6587\u4ef6\u5939<\/p>\n<p>  \u603b\u5927\u5c0f <\/p>\n<p>  \u5927\u6982 4.5T \u811a\u672c\u8ba1\u7b97\u4e2d<\/p>\n<p>  \u4e0b\u9762\u662f\u4f7f\u7528\u7684\u811a\u672c, \u5206\u9875\u5df2\u6539\u8fdb<\/p>\n<p>  import requests<br \/>  import hjson<br \/>  import urllib.parse<br \/>  import json<br \/>  import time<\/p>\n<p>  def _main():<br \/>  &nbsp; &nbsp; h = {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;Cookie&quot;: &quot;COOKIE_LOGIN_USER=&lt;token&gt;&quot;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; done = 1<br \/>  &nbsp; &nbsp; for pp in range(1, 200):<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;req = requests.get(<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#8216;https:\/\/cloud.189.cn\/v2\/listPublicShare.action?userId=330783715&amp;mediaType=0&amp;orderBy=filename&amp;order=ASC&amp;pageNum=%s&amp;pageSize=10&#8217; % pp<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;, headers=h)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;j = hjson.loads(req.content.decode())<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;if len(j[&#8216;data&#8217;]) == 0:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;print(&#8216;break&#8217;)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;break<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;for a in j[&#8216;data&#8217;]:<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;print(&#8216;%s\/%s&#8217; % (done, int(j[&#8216;recordCount&#8217;])))<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;id = a[&quot;fileId&quot;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;name = str(a[&quot;fileName&quot;])<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;sid = a[&quot;shareId&quot;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;fo = a[&quot;isFolder&quot;]<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;t = [{&quot;fileId&quot;: id, &quot;fileName&quot;: name, &quot;isFolder&quot;: 1 if fo else 0}]<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;jdata = json.dumps(t, ensure_ascii=False).replace(&#8216; &#8216;, &#8221;)<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;data = &#8221;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;data += &#8216;type=SHARE_SAVE&#8217;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;data += &#8216;&amp;taskInfos=&#8217; + str(urllib.parse.quote(jdata))<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;data += &#8216;&amp;targetFolderId=&lt;\u76ee\u6807\u6587\u4ef6\u5939ID&gt;&#8217;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;data += &#8216;&amp;shareId=&#8217; + str(sid)<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;ih = h<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;ih[&#8216;Content-Type&#8217;] = &#8216;application\/x-www-form-urlencoded; charset=UTF-8&#8217;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;resp = requests.post(&#8216;https:\/\/cloud.189.cn\/createBatchTask.action&#8217;, headers=ih, data=data)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;print(name, resp.content.decode())<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;done += 1<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;time.sleep(0.5)<\/p>\n<p>  if __name__ == &#8216;__main__&#8217;:<br \/>  &nbsp; &nbsp; _main()<\/p>\n<p>  \u4f7f\u7528\u7684\u540c\u5b66\u8bb0\u5f97\u6539ID\u548c cookie<\/p>\n<p>  \u4f46\u662f\u6700\u540e\u6211\u68c0\u67e5\u7684\u65f6\u5019 \u8f6c\u5b58\u540e\u53ea\u67091077\u4e2a\u6587\u4ef6\u5939.\u811a\u672c\u8f93\u51fa 1080\u4e2a\u90fd\u8c03\u7528\u63a5\u53e3\u6210\u529f\u4e86 \u4e0d\u77e5\u9053\u5177\u4f53\u54ea\u4e2a\u5931\u8d25\u4e86<\/p>\n<p>  \u7ecf\u8fc7\u6bd4\u5bf9 1080\u91cc \u53bb\u91cd\u540d\u5b57\u540e \u53ea\u67091077\u4e2a,\u5b8c\u7f8e<br \/>  \u91cd\u590d\u76843\u4e2a\u540d\u5b57\u4e3a <\/p>\n<p>  KOWABON<br \/>  \u53d8\u6001\u738b\u5b50\u4e0e\u4e0d\u7b11\u732b\uff3b\u540e\u5bab\uff3d<br \/>  \u9b54\u738b\u52c7\u8005<\/p>\n<p>  \u5b9e\u9645json \u8fd4\u56de\u91cc \u4e5f\u8fd4\u56de\u4e862\u4e2a\u91cd\u590d\u7684 \u9b54\u738b\u52c7\u8005<br \/>  \u5927\u6982\u5728\u9875\u5927\u5c0f500\u7684\u60c5\u51b5\u4e0b\u7684\u7b2c\u4e09\u9875\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Eicky<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u725b\u903c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5929\u884c\u4e5d\u6b4c<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e24\u4f4d\u4e0d\u77e5\u540d\u7f51\u53cb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6218\u7565\u6027mark\uff0czsbd\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>elvis2003<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t2T\u7684\u76d8\u88c5\u4e0d\u4e0b\uff0c\u8fd9\u4e2a\u662f\u5927\u95ee\u9898\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>future<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e24\u4f4d\u4e0d\u77e5\u540d\u7f51\u53cb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u662f300\u4e2a\u6587\u4ef6\u5939\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xiaoque<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u725bp\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yifast07<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fdf\u6765\u7684\u811a\u672c \u624b\u52a8\u4fdd\u5b58\u5b8c\u4e864t\u7684\u786c\u76d8\u8fd8\u5dee\u70b9:Q\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yeshang<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u540e\u6392\u95ee\u4e0b \u600e\u4e48\u7528\u554a\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>chinni \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5929\u7ffc&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\/71777"}],"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=71777"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/71777\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71777"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}