forked from whiteshield/EHScripter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ehscripter.py
executable file
·87 lines (75 loc) · 1.33 KB
/
ehscripter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
try:
import EHScripter
except ImportError:
print("\n[CAUTION] EHScripter is not found")
except:
raise
exit(1)
try:
import yaml
except ImportError:
print("\n[CAUTION] yaml (pyyaml) is not found")
except:
raise
exit(1)
try:
import tkinter
except ImportError:
print("\n[CAUTION] tkinter is not found")
except:
raise
exit(1)
try:
import unicodedata
except ImportError:
print("\n[CAUTION] unicodedata is not found")
except:
raise
exit(1)
try:
from lxml import etree
except ImportError:
print("\n[CAUTION] lxml.etree is not found")
except:
raise
exit(1)
try:
import pygal
except ImportError:
print("\n[CAUTION] pygal is not found")
except:
raise
exit(1)
try:
import cairosvg
except ImportError:
print("\n[CAUTION] cairosvg is not found")
except:
raise
exit(1)
try:
import cssselect
except ImportError:
print("\n[CAUTION] cssselect is not found")
except:
raise
exit(1)
try:
import tinycss
except ImportError:
print("\n[CAUTION] tinycss is not found")
except:
raise
exit(1)
try:
import html2text
except ImportError:
print("\n[CAUTION] html2text is not found")
except:
raise
exit(1)
app = EHScripter.EHScripterApplication()
app.mainloop()
exit(0)