From c08d0d676a95104de296a3967d71212d6c26a893 Mon Sep 17 00:00:00 2001 From: John Berlin Date: Tue, 14 Aug 2018 21:31:39 -0400 Subject: [PATCH] Added facebook profile timeline fuzzy lookup rule to rules.yaml (#363) The value of __adt is incremented to indicate position in timeline as shown below and the profile_id or pagelet_token contained in the data param identify the facebook user the timeline data is for --- pywb/rules.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pywb/rules.yaml b/pywb/rules.yaml index f18222b1..f8b94002 100644 --- a/pywb/rules.yaml +++ b/pywb/rules.yaml @@ -83,6 +83,9 @@ rules: match: '("(?:cursor|cursorindex)":["\d\w]+)' find_all: true + - url_prefix: 'com,facebook)/ajax/pagelet/generic.php/profiletimeline' + fuzzy_lookup: 'com,facebook\)/.*[?&](__adt=[^&]+).*[&]data=(?:.*?(?:[&]|(profile_id|pagelet_token)[^,]+))' + - url_prefix: 'com,facebook)/ajax/pagelet/generic.php/' #fuzzy_lookup: 'com,facebook\)/.*[?&]data=(.*?(?:[&]|query_type[^,]+))'