forked from pkrumins/xgoogle
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Downloading 'b'somefile'' from 'b'http://www.example.com/somefile'' into ....
Error: Reading socket timed out, try again later.
Traceback (most recent call last):
File "google_dl", line 161, in <module>
for results in page:
File "google_dl", line 79, in __next__
results = self.gs.get_results()
File "~/.python/xgoogle/search.py", line 201, in get_results
results = self._extract_results(page)
File "~/.python/xgoogle/search.py", line 288, in _extract_results
eres = self._extract_result(result)
File "~/.python/xgoogle/search.py", line 295, in _extract_result
title, url = self._extract_title_url(result)
File "~/.python/xgoogle/search.py", line 309, in _extract_title_url
title = self._html_unescape(title)
File "~/.python/xgoogle/search.py", line 369, in _html_unescape
return re.sub(r'&([^;]+);', entity_replacer, s, re.U)
File "~/anaconda/lib/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "~/.python/xgoogle/search.py", line 356, in entity_replacer
if entity in name2codepoint:
NameError: name 'name2codepoint' is not defined
Example command using google_dl utility:
google_dl -s http://www.marquette.edu/maqom/ -f pdf ""