SoFunction
Updated on 2024-11-14

Python to achieve the 115 network disk automatic download method

In this article, examples of Python to achieve the automatic download of the 115 network disk method. Shared for your reference. Specific implementation methods are as follows:

In the example, it is the web page /?t=144788 save as

By copying a download link to the pasteboard every 3 seconds, when copying will automatically call 115 client download, every download 10 files will manually enter a character, to prevent too many downloads at once, jamming the machine!

The specific code is as follows:

import re, os, time
import webbrowser
import urllib
  
if __name__ == "__main__":
  fp = open("c:\\")
  
  https = (r"(http://u.*)")
  urlList = []
  for url in (()):
    (url)
  
  downloadUrlList = []
  IsFirst = 1
  print urlList
  for url in urlList:
    doc = (url).read()
    reDownloadUrl = (r'(/file/.*)"')
    for downloadUrl in (doc):
      if IsFirst:
        (downloadUrl)
        IsFirst = 0
    IsFirst = 1
    #print "-"*20
  
  for url in downloadUrlList:
    print url
    
  import win32clipboard
  import win32con
  def copyToClipboard(copyText):
    ()
    ()
    (win32con.CF_TEXT, copyText)
    ()
    
  #downloadUrlList = ["/file/cmlirmfo","/file/ew7htcjc","/file/cm25l95e","/file/atn8dsgj","/file/b3e0ae5k","/file/cm27rs3g","/file/cmkwjpa1","/file/ew4sx25c","/file/d2b1alj8","/file/b3c29o48","/file/ew8ctkyc","/file/b3m4ea70","/file/atcph3md","/file/ew9fw53a","/file/cm512ct1","/file/ewx7d35c","/file/at8nd5xj","/file/ewcs6jbj","/file/b3104ve1","/file/b3b1koke","/file/d2st6pv6","/file/atb20b6h","/file/b353salz","/file/atzilrkp","/file/cmg35and","/file/cmq5ceje","/file/atkdb5oc","/file/d297u2v6","/file/ataqteic","/file/cm7ralmz","/file/cm70v4nr","/file/cmfhr2so","/file/atvtkaja","/file/b3t7b6aw","/file/atoyp4iz","/file/ewpk79kj","/file/at5k044x","/file/d2mo0678","/file/a9hegswp","/file/bl472ir1","/file/dl2dgqi9","/file/dl20ky2a","/file/bll2yssk","/file/a9jzzlca","/file/c4z1ek4d","/file/blpk4pv1","/file/c4rjotdz","/file/a9g43daa","/file/efnn38jr","/file/c4leomjd","/file/dlpw9s6i","/file/a9n0jv8x","/file/c48savoo","/file/ef8og8la","/file/a9cjk9lx","/file/blo38e31","/file/a987cika","/file/c4vic87g","/file/bl5l0syx","/file/c4gdl7ne","/file/efym0xhy","/file/dl88b43f","/file/bw4wfxa1","/file/eswz3bgj","/file/czw0b3g2","/file/dis9mjcx","/file/ajzrgiyz","/file/es5o43lz","/file/dnasw0kp","/file/dnagnndx","/file/clwr2xxg","/file/bhbcnnwe","/file/aq2rp9ga","/file/e601turs","/file/dn46qs7x","/file/clwonrwg","/file/dn43i7jf","/file/bhbgrnfz","/file/dnsl0kxp"]
  i = 0
  while i<100:
    if len(downloadUrlList) == 0:
      break
    copyToClipboard(())
    (3)
    i = i + 1
    if i % 10 == 0:
      ("pause")
  
  print "after pause"

I hope that what I have said in this article will help you in your Python programming.