Login Register






Proxy Checker (Python script) filter_list
Author
Message
RE: Proxy Checker (Python script) #5
A few things I'd add:
  • For maximum v2/v3 compatibility, and general code convention, it's common to define methods in your script in order of dependency. I.e.,
    Code:
    def save_valid_proxy(proxy): ... def process_proxy(): ... ... ...
  • chain your imports
    Code:
    import argparse,requests,sys,time
  • don't import unneeded methods and classes; all you need from argparse is the ArgumentParser method
  • making this a library would be cool. Like, one other programmers can import and use, negating the CLI
  • the if __name__=="__main__": ... convention isn't totally needed, a main() method works fine
  • try using packages; it's easier to maintain your code, and easier for other devs to understand
  • publish to PyPI or github to spread it further. (PyPI can create executables for your program, creating a system-wide CLI, as opposed to one you need to run from the directory it's in)
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

Reply





Messages In This Thread
Proxy Checker (Python script) - by m0dem - 03-18-2016, 01:01 AM
RE: Proxy Checker (Python script) - by m0dem - 03-19-2016, 11:20 PM
RE: Proxy Checker (Python script) - by Drays - 03-21-2016, 07:35 PM
RE: Proxy Checker (Python script) - by m0dem - 03-21-2016, 09:03 PM
RE: Proxy Checker (Python script) - by Inori - 03-22-2016, 03:53 AM
RE: Proxy Checker (Python script) - by m0dem - 03-22-2016, 05:22 AM
RE: Proxy Checker (Python script) - by m0dem - 03-23-2016, 06:04 AM
RE: Proxy Checker (Python script) - by Drays - 03-24-2016, 12:57 PM
RE: Proxy Checker (Python script) - by m0dem - 03-24-2016, 02:11 PM
RE: Proxy Checker (Python script) - by Inori - 03-24-2016, 02:26 PM
RE: Proxy Checker (Python script) - by m0dem - 03-24-2016, 04:05 PM
RE: Proxy Checker (Python script) - by fsociety - 05-05-2019, 02:49 PM
RE: Proxy Checker (Python script) - by Drako - 05-05-2019, 05:04 PM