jeanphix/Ghost.py

when using multi_thread, got segmentation fault! why?

Opened this issue · 0 comments

from ghost import Ghost
import thread
import time


def fun(url):
    from ghost import Ghost
    session = Ghost().start()

    session.set_proxy('socks5','127.0.0.1',1080)
    session.open(url,timeout=150)

def main():
    thread.start_new_thread(fun,('https://www.instagram.com/',))
    thread.start_new_thread(fun,('https://www.instagram.com/',))
    time.sleep(100000)

f = main()
f()

the code above cause segmentation fault.