السلام عليكم ورحمه الله وبركاتة ,
قمت بكتابة Console Based Threaded Download Manager بسيط
فية الخيارات الأساسية بال Python أحب أسمع ارائكم فى المرفقات ال Source لمستخدمى ال Linux أو من يملكون Python Compiler من مستخدمى الويندوز بجانب Exe لا يحتاج لشىء لمستخدمى الويندوز
----
أمثلة :-
C:\Python25\PyDM>client.py -h
PyDM Python Download Manager Alpha release
Syntax / Usage
Client[.py] Url [-tTmp][-lLocalfile][-iNumThreads]
-t :Path to temp folder will use current one if not stated
-l :Path to local file where you want to store file
-i :Number of threads used in the download process
Don't add [.py] if u r using the windows executable
جلب صفحة الجوجل وتخزينها فى مكان معين وتحديد ال Temp و ال NumThreads
C:\Python25\PyDM>Client.py http://google.com -lgg.htm -tC:// -i5
/ google.com
Redirecting
www.google.com
Redirecting
www.google.com.eg
Part # 0 Bytes
Percent Not Available (Unknown size)
0.0 1.64
Finished
جلب ملف مثل
C:\Python25\PyDM>Client.py http://www.riverbankcomputing.co.uk/static/Downloads/
sip4/sip-4.7.6.zip -lsip.zip -tC:// -i5
/static/Downloads/sip4/sip-4.7.6.zip www.riverbankcomputing.co.uk
Part # 104811 Bytes
Part # 104811 Bytes
Part # 104811 Bytes
Part # 104811 Bytes
Part # 104811 Bytes
Part # 4 Bytes
0.0 0.0 3.05 6.37 8.87 11.91 14.96 18.56 20.78 23.27 26.88 29.92 32.42 35.74 37.
96 39.07 40.18 41.56 42.11 42.67 44.33 48.21 52.09 57.35 63.17 68.16 73.15 75.64
78.18 82.06 85.44 88.59 91.36 94.41 97.18
Finished
---
ملاحظات :-
1) البرنامج حاليا يسجل كل شىء فى ال Memory قبل الكتابة على الملفات فلا تحاول مع ملفات ضخمة
2) فى مشكلة فى اعطاء اسم ملف من ال Console يحوى Get Parameters (يمكنك كتابتة داخل الكود :D )
3) البرنامج حاليا لايتعامل مع ال Transfer Encodings نوعية Deflate أو Gzipped وانما Chunked أو بدون
---
أحب اسمع ارائكم
