Ejemplo n.º 1
0
    def update_proxy(self):
        """@todo: Docstring for update_proxy.
        :returns: @todo

        """
        p=proxy()
        # Make proxylist
        p.get_proxy_premium()
Ejemplo n.º 2
0
    def run_all(self):
        """@todo: Docstring for run_all.
        :returns: @todo

        """
        ### Refresh proxy list
        p=proxy()
        # Make proxylist
        p.get_proxy_premium()

        jobs = []
        prj_path = root_path+"/projects/"
        projects = listdir(prj_path)
        for item in projects:
            p = Process(target=self.run_project, args=[item])
            jobs.append(p)
            p.start()
Ejemplo n.º 3
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
from common.proxylist import proxy
from common.phantoms import phantom
from multiprocessing import Process
from project import project

p=proxy()
# Make proxylist
p.get_proxy_premium()

#f=phantom()
#THREADS = 100



#def worker():
#    """@todo: Docstring for target.
#    :returns: @todo
#
#    """
#    f.walk_forever('svkvisa')

#if __name__ == '__main__':
#    jobs = []
#    for i in range(7):
#        p = Process(target=worker)
#        jobs.append(p)
#        p.start()

if __name__ == '__main__':