能否实现在OpenWRT BB 14.07下运行?我安装了python之后尝试了一下,输出如下错误:
fetching list...
Traceback (most recent call last):
File "./gfwlist2dnsmasq.py", line 31, in
content = urllib2.urlopen(baseurl, timeout=15).read().decode('base64')
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 423, in _open
'unknown_open', req)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1240, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib2.URLError:
在VPS下面当然运行就没有问题。
如能实现在OpenWRT下运行,则可以实现定时更新。科学上网更自动、更科学了。