talimat.py

This commit is contained in:
milisbir 2017-10-13 05:33:40 +03:00
parent 3a1525490b
commit 8e5a4152bb
1 changed files with 7 additions and 0 deletions

View File

@ -302,10 +302,17 @@ class renk:
class Arge:
def indir(self,link):
'''
if "packages/" in link:
paket=link.split("?h=packages/")[1]
else:
paket=link.split("?h=")[1]
'''
paket=link.split("/")[-1]
if paket == "":
paket=link.split("/")[-2]
if "=" in paket:
paket=paket.split("=")[1]
print renk.tamamb+paket+" indiriliyor..."+renk.son
try:
veri = urllib2.urlopen(link)