We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce5c293 commit 4e588b5Copy full SHA for 4e588b5
1 file changed
mariusz/wiki.py
@@ -11,7 +11,7 @@
11
12
def get_wiki_entries(url):
13
"""Returns all Wiki entries for a given URL."""
14
- tree = E.fromstring(requests.get(url).text.encode())
+ tree = E.fromstring(requests.get(url, timeout=10).text.encode())
15
entry_f = E.ETXPath(NS + "entry")
16
entries = entry_f(tree)
17
updated_f = E.ETXPath(".//" + NS + "updated/text()")
0 commit comments