From f23009fd2f79a8c7101ed82b28f9ae2d5c7c8149 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 14 Feb 2016 16:09:35 +0100 Subject: Skip file-links starting with '?' --- httpfs/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'httpfs') diff --git a/httpfs/__init__.py b/httpfs/__init__.py index 1b4ede3..d877f3e 100644 --- a/httpfs/__init__.py +++ b/httpfs/__init__.py @@ -208,7 +208,8 @@ class RelativeLinkCollector(HTMLParser): attrs = dict(attrs) if "href" in attrs: href = attrs["href"] - if "/" in href[:-1] or href[0] == "." or href == "/": + if "/" in href[:-1] or href[0] == "." \ + or href[0] == "?" or href == "/": return if href[-1:] == "/": -- cgit v1.2.1