![]() |
|
[Python] Minecraft Username Scraper - McBans.com Scraper - Threaded Version - 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] Minecraft Username Scraper - McBans.com Scraper - Threaded Version (/showthread.php?tid=4722308) |
Minecraft Username Scraper - McBans.com Scraper - Threaded Version - Hopeful Goods - Mar 8, 2015 You can edit the server to whatever you want and get different lists. You could edit it to detect how many pages are on the server. Enjoy and remember to say thank you! PHP Code Threaded Version PHP Code Can you please read my code and tell me if I could have done anything different. * - Hopeful Goods - Mar 16, 2015 Nobody thought this was cool? This is one of my favorite pieces of code. * - The Pizza Slut - Mar 17, 2015 This is a really nice piece of code! Thanks for the contribution :) * - yoloyoloswag9 - Mar 17, 2015 thank you for this hope it still works * - Aurora - Mar 17, 2015 I started learning Python the other day, it's good to see I can read and understand some bits of the code. It looks good to me. :) * - Hopeful Goods - Mar 17, 2015 (Mar 17, 2015 06:00 PM).Sinister Wrote: I started learning Python the other day, it's good to see I can read and understand some bits of the code. It looks good to me. :) Yeah, I really like coding. Even just the idea of it is cool. Like, how many "normal" people would know how to write 34 lines of text then run it and boom get a list of minecraft usernames?? I just like having this skill and being able to apply it to simple things like this. Keep learning python it is a very awesome language that is easy to get the hang of. * - psychadelic - Mar 18, 2015 Awesome man, thanks for the share 😏 * - ๖ۣۜDarth Vader - Mar 20, 2015 Few things: 1. By convention, one generally uses the "exit" function to return a completion code as in C/C++ (0 for success, otherwise, any other number), not to print an error message. For error messages, one would generally use "sys.stderr.write()" or even just print. 2. I've never heard of PyCurl. Maybe, to improve cross-platform compatibility, use a more standard module such as Requests, or even one of the builtins such as urllib (IMO, urllib is a bitch, use requests). * - Hopeful Goods - Mar 20, 2015 (Mar 20, 2015 01:54 PM)๖ۣۜDarth Vader Wrote: Few things: I could use beautifulsoup. Have you ever heard of that? * - ๖ۣۜDarth Vader - Mar 20, 2015 (Mar 20, 2015 02:26 PM)Hopeful Goods Wrote: I could use beautifulsoup. Have you ever heard of that? Beautifulsoup is intended mainly for parsing HTML and retrieving tag values. I meant you could use requests or urllib for fetching the page, rather than parsing it (a builtin solution you could use for parsing is the xml module). * - K.ing - Apr 9, 2015 second for using python requests over pycurl. it shouldn't be too hard to change the code out. http://docs.python-requests.org/en/latest/user/quickstart/#make-a-request Still a great project! * - MR.FREE - Apr 10, 2015 (Mar 16, 2015 09:05 PM)Hopeful Goods Wrote: Nobody thought this was cool? I personally don't play mind craft so it didn't appeal to me, I commend you for not using your standard everyday modules, if that was on purpose. Since everyone else did it, let me do it too. Check out the Queue lib and see if you find it useful, that's assuming there should be a shit ton of usernames to go through. Thanks for the contribution |