Re: Rapidshare to Megaupload script

2009-02-15 Thread MRAB
aiwarrior wrote: Thanks a lot for your input i really needed because i realized these are minor flaws but even so define whether its good or bad code and i really need to improve that. I already implemented the changes you suggested and this one, cookie = dict(x.split("=") for x in cookie)

Re: Rapidshare to Megaupload script

2009-02-15 Thread aiwarrior
Thanks a lot for your input i really needed because i realized these are minor flaws but even so define whether its good or bad code and i really need to improve that. I already implemented the changes you suggested and this one, > cookie = dict(x.split("=") for x in cookie) for me is just very

Re: Rapidshare to Megaupload script

2009-02-15 Thread aiwarrior
Thanks a lot for your input i really needed because i realized these are minor flaws but even so define whether its good or bad code and i really need to improve that. I already implemented the changes you suggested and this one, > cookie = dict(x.split("=") for x in cookie) for me is just very

Re: Rapidshare to Megaupload script

2009-02-14 Thread James Matthews
This can be used as a great guide on writing pythonic code. Don't look at the specific code that is being corrected but look at how the improvements are being presented. I would recommend someone who is learning python read this guide. On Sun, Feb 15, 2009 at 12:17 AM, MRAB wrote: > aiwarrior w

Re: Rapidshare to Megaupload script

2009-02-14 Thread MRAB
aiwarrior wrote: I've made this script and would like to have some input and share it with the community. I also have a page with some code i produce on my spare time. http://pneves.net Thanks [snip] def from_rapidshare(url): '''Check if this is a rapidshare link''' return (url.starts