是我写的一个For eXtream eMule的本地客户端,其实毋宁说是一个学习PyGTK的小玩具吧:)
自从天翼从公司扛回来一台古老的p4台式机之后,对于我们这样的下载控+资源收集控+痴女控(某腐女对此称谓有贡献)+…来说看着它一天天的年华老去心里真不是滋味,如何使之发挥余热就成了我们心头沉甸甸的负担,我们知道的是,即使是一张卫生纸、一根烟屁股也有它的用途,嗯。如你所知,最后,它成为了一头驴子,它的生命开始有了意义,我们的也是lol
有了下载机,我本机的小驴子也就失宠了,但是我又不想每次看到想要的资源就remote过去下载,但是我又不想每次都remote过去看有没有下载好…eMule的web interface+ftp server是很好的解决方案,配置简单使用粗暴,可是我又不爽它的web ui,那就用PyGTK练手吧,PyGTK写起来也挺有意思。
简单的说来,这个tiny tool就是用urllib2对eMule的web server 使用GET method 传入session id+ed2k link,而session id在登录web ui之后就能获得。firefox关联ed2k link之后应该就可以直接在verycd上下载了。但是我现在还是不知道怎么让firefox调用,我该去看看aMule的源码了…
能改的地方肯定并且当然很多很多很多,最已知的问题是,不知道为什么文件名里面的’[', ']‘和其中的文字会丢掉,大概被当做某种特殊符号被处理了?:( 我把[、]translate成了(、),只是一个temp solution吧,嗯
当然,最简单(最聪明?)的做法是,用mldonkey来代替eXtream,然后用sancho就o了,Don’t Reinvent the Wheel嘛:)
P.S.,我心中的Ultra ulitmate solution是linux+mlnet+sancho+cron+freetalk/libfetion+vftpd+sendmail,留给以后折腾吧,嗯




6 comments
Comments feed for this article
Trackback link
http://syhan.hjlp.org/archives/102/trackback
August 18, 2009 at 4:58 pm
blf
Can your share this code for me? Thamk you alot
My email: blf264-1@yahoo.com
August 19, 2009 at 9:19 am
blf
It’s hard 2 find a free hosting which spupports Python
Does your code need CGI?I don’t know much about Python. Hope that I can run this code ^^~ Thank you alot.
P/s: Can you tell me about upload and download speed when you test
August 21, 2009 at 12:13 am
blf
I installed IIS and Active Python 2.6 and try your code
But when I use Firefox to go to this link: http://localhost/HistoryWindow.py, Firefox show a error messenge:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Traceback (most recent call last):
File “c:\inetpub\wwwroot\HistoryWindow.py”, line 20, in
import gtk
ImportError: No module named gtk
Can you tell me the way to fix it? Thank you alot
August 22, 2009 at 11:23 pm
blf
I uploaded all your file to a free hosting which supports Python. But when I go to my link: http://bocha.wsr3.net/MainWindow.py, I only see the license. Can you check my link end tell me a suggestion? Thank you a lot
August 23, 2009 at 12:32 am
syhan
@blf
Sorry to disappoint u, my tiny toolkit NEVER meant to be a web-based app, or more precisely, it’s a client-server mode application and shouldn’t be expected ran under a CGI server or something else. If u wanna access ur local eMule server, my suggestion is, install whatever eMule mod (eXtream, easyMule, mldonkey, etc.) and try the internal build-in web server, u may refer to the manual according to different mods:)
Hope this can help u little.8-)
Best Regards.
August 25, 2009 at 7:09 pm
blf
thank you alot