Python implements automatic download of 115 network disks, and python implements 115 Network
This example describes how to automatically download a 115 online storage using Python. Share it with you for your reference. The specific implementation method is as follows:
In the example of 1.txt, is Web http://bbs.pediy.com/showthread.php? T0000144788133 is 1.txt
Copy a download link to the clipboard every 3 seconds. During the copy process, the 115 client is automatically called to download the link. Each 10 files downloaded will be manually entered with one character, preventing too many downloads and freezing the machine.
The Code is as follows:
import re, os, timeimport webbrowserimport urllib if __name__ == "__main__": fp = open("c:\\1.txt") https = re.compile(r"(http://u.*)") urlList = [] for url in https.findall(fp.read()): urlList.append(url) downloadUrlList = [] IsFirst = 1 print urlList for url in urlList: doc = urllib.urlopen(url).read() reDownloadUrl = re.compile(r'(http://115.com/file/.*)"') for downloadUrl in reDownloadUrl.findall(doc): if IsFirst: downloadUrlList.append(downloadUrl) IsFirst = 0 IsFirst = 1 #print "-"*20 for url in downloadUrlList: print url import win32clipboard import win32con def copyToClipboard(copyText): win32clipboard.OpenClipboard() win32clipboard.EmptyClipboard() win32clipboard.SetClipboardData(win32con.CF_TEXT, copyText) win32clipboard.CloseClipboard() #downloadUrlList = ["http://115.com/file/cmlirmfo","http://115.com/file/ew7htcjc","http://115.com/file/cm25l95e","http://115.com/file/atn8dsgj","http://115.com/file/b3e0ae5k","http://115.com/file/cm27rs3g","http://115.com/file/cmkwjpa1","http://115.com/file/ew4sx25c","http://115.com/file/d2b1alj8","http://115.com/file/b3c29o48","http://115.com/file/ew8ctkyc","http://115.com/file/b3m4ea70","http://115.com/file/atcph3md","http://115.com/file/ew9fw53a","http://115.com/file/cm512ct1","http://115.com/file/ewx7d35c","http://115.com/file/at8nd5xj","http://115.com/file/ewcs6jbj","http://115.com/file/b3104ve1","http://115.com/file/b3b1koke","http://115.com/file/d2st6pv6","http://115.com/file/atb20b6h","http://115.com/file/b353salz","http://115.com/file/atzilrkp","http://115.com/file/cmg35and","http://115.com/file/cmq5ceje","http://115.com/file/atkdb5oc","http://115.com/file/d297u2v6","http://115.com/file/ataqteic","http://115.com/file/cm7ralmz","http://115.com/file/cm70v4nr","http://115.com/file/cmfhr2so","http://115.com/file/atvtkaja","http://115.com/file/b3t7b6aw","http://115.com/file/atoyp4iz","http://115.com/file/ewpk79kj","http://115.com/file/at5k044x","http://115.com/file/d2mo0678","http://115.com/file/a9hegswp","http://115.com/file/bl472ir1","http://115.com/file/dl2dgqi9","http://115.com/file/dl20ky2a","http://115.com/file/bll2yssk","http://115.com/file/a9jzzlca","http://115.com/file/c4z1ek4d","http://115.com/file/blpk4pv1","http://115.com/file/c4rjotdz","http://115.com/file/a9g43daa","http://115.com/file/efnn38jr","http://115.com/file/c4leomjd","http://115.com/file/dlpw9s6i","http://115.com/file/a9n0jv8x","http://115.com/file/c48savoo","http://115.com/file/ef8og8la","http://115.com/file/a9cjk9lx","http://115.com/file/blo38e31","http://115.com/file/a987cika","http://115.com/file/c4vic87g","http://115.com/file/bl5l0syx","http://115.com/file/c4gdl7ne","http://115.com/file/efym0xhy","http://115.com/file/dl88b43f","http://115.com/file/bw4wfxa1","http://115.com/file/eswz3bgj","http://115.com/file/czw0b3g2","http://115.com/file/dis9mjcx","http://115.com/file/ajzrgiyz","http://115.com/file/es5o43lz","http://115.com/file/dnasw0kp","http://115.com/file/dnagnndx","http://115.com/file/clwr2xxg","http://115.com/file/bhbcnnwe","http://115.com/file/aq2rp9ga","http://115.com/file/e601turs","http://115.com/file/dn46qs7x","http://115.com/file/clwonrwg","http://115.com/file/dn43i7jf","http://115.com/file/bhbgrnfz","http://115.com/file/dnsl0kxp"] i = 0 while i<100: if len(downloadUrlList) == 0: break copyToClipboard(downloadUrlList.pop()) time.sleep(3) i = i + 1 if i % 10 == 0: os.system("pause") print "after pause"
I hope this article will help you with Python programming.
115 how to download online storage
Offline download with QQ tornado
Hi ~, I'm xinlan072. I recently used an EverBox network disk. I invite you to join us.
15 GB free space, which can store documents, photos, music, videos, etc. It can also automatically synchronize files in the specified folder, one-way
How can I download 115 network disks faster?
The speed of the network disk is not only a problem for the provider. First, from the service provider's perspective, the dedicated bandwidth is better than the shared bandwidth. As for how many M, the general network disk provider is enough for us to use. From our own bandwidth, we are basically home broadband (ADSL), generally around 1-2 m. According to our bandwidth, the maximum download speed is 100-200 kb, and we are using this bandwidth by ourselves. The 1-2 mbps bandwidth is 50-kb for uploading files.
Generally, free network disks are shared bandwidth and the charges are exclusive. Therefore, you can ask if this is the case!