![]() |
|
[Python] Pastebin Client, download, paste (from file or data) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Pastebin Client, download, paste (from file or data) (/showthread.php?tid=3529700) |
Pastebin Client, download, paste (from file or data) - Hannah Montana - Jun 5, 2013 PHP Code I barrowed some code from jhpy (the guy who made pyPaste, The API key isn't mine it's his. His fault for putting it on github lel.) How to use pastebinClient.py help * - __init__ - Jun 5, 2013 Haha, thanks for stealing my API key :D Good little tool anyway :) * - glob - Jun 5, 2013 I wouldn't say it's bad, but it also isn't good. Don't steal code/API keys :/ * - __init__ - Jun 5, 2013 (Jun 5, 2013 02:21 PM)Cᴀᴛᴀʟʏsᴛ Wrote: I wouldn't say it's bad, but it also isn't good. He didn't really steal it, we were talking on irc and basically let him use it. * - glob - Jun 5, 2013 It doesn't matter if you let him or not, he is releasing your code :p * - antigrav - Jun 5, 2013 (Jun 5, 2013 02:36 PM)Cᴀᴛᴀʟʏsᴛ Wrote: It doesn't matter if you let him or not, he is releasing your code :p Haha, technically he released his own code. Even if he went back and changed it in the GitHub repo, I'm pretty sure people can view the entire history of every change in the code, which would include the one in which he removed it. * - Hannah Montana - Jun 5, 2013 (Jun 5, 2013 02:36 PM)Cᴀᴛᴀʟʏsᴛ Wrote: It doesn't matter if you let him or not, he is releasing your code :p The only code I used from him was the pastebin API usage and there is nothing wrong with releasing the code with permission. EDIT: I could have made it quite a bit better too now looking at it but meh. * - glob - Jun 5, 2013 (Jun 5, 2013 05:11 PM)Hannah Montana Wrote: The only code I used from him was the pastebin API usage and there is nothing wrong with releasing the code with permission. You don't learn anything if you release other people's code whether you have permission or not. * - Hannah Montana - Jun 5, 2013 (Jun 5, 2013 06:18 PM)Cᴀᴛᴀʟʏsᴛ Wrote: You don't learn anything if you release other people's code whether you have permission or not. I don't learn anything? I learned from reading it. * - MadHunteR - Jun 12, 2013 Good work. Thank you for share brother. * - feudin - Jun 12, 2013 Code def usage():Look into using argparse module. It will allow you to type "$python scriptname.py -h" and it will automatically give the user information on the command line arguments |