From dafba5d0cb1b49efc32ea7854b7521886612f81e Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Sun, 10 Jan 2021 11:34:06 +0530 Subject: [PATCH] collapses=["urlkey"] for known urls --- waybackpy/wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waybackpy/wrapper.py b/waybackpy/wrapper.py index 0922a8c..e2c33b6 100644 --- a/waybackpy/wrapper.py +++ b/waybackpy/wrapper.py @@ -298,9 +298,9 @@ class Url: url_list = [] if subdomain: - cdx = Cdx(_cleaned_url(self.url), user_agent=self.user_agent, start_timestamp=start_timestamp, end_timestamp=end_timestamp, match_type="domain") + cdx = Cdx(_cleaned_url(self.url), user_agent=self.user_agent, start_timestamp=start_timestamp, end_timestamp=end_timestamp, match_type="domain", collapses=["urlkey"]) else: - cdx = Cdx(_cleaned_url(self.url), user_agent=self.user_agent, start_timestamp=start_timestamp, end_timestamp=end_timestamp, match_type="host") + cdx = Cdx(_cleaned_url(self.url), user_agent=self.user_agent, start_timestamp=start_timestamp, end_timestamp=end_timestamp, match_type="host", collapses=["urlkey"]) snapshots = cdx.snapshots()