fork download
  1. else:
  2. if TTL>0:
  3. try:
  4. if element['href'].find(mainUrl) >=0 and last_urls.count(element['href'])<1:
  5. last_urls.append(element['href'])
  6. email_1=findEmail(element['href'], TTL-1, mainUrl)
  7. if eMail_1.find('@')>0:
  8. return eMail_1
  9. except Exception:
  10. eMail_1=''
  11. return eMail
  12.  
  13. def startFinder(url, TTL, mainUrl):
  14. print('thread'+mainUrl+'start \n')
  15. eM=findEmail(url,TTL,mainUrl)
  16. eMails.append(eM)
  17. f=open('emails.txt','w')
  18. for item in eMails:
  19. if len(item)>3:
  20. print(item)
  21. f.write('%s\n' % item)
  22. f.close
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "./prog.py", line 1
    else:
    ^
IndentationError: unexpected indent

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: unexpected indent (prog.py, line 1)
stdout
Standard output is empty