diff --git a/wikipedia/wikipedia.py b/wikipedia/wikipedia.py index 7ad50e1..5adb7e6 100644 --- a/wikipedia/wikipedia.py +++ b/wikipedia/wikipedia.py @@ -497,6 +497,21 @@ def revision_id(self): return self._revision_id + @property + def revision_timestamp(self): + ''' + Timestamp of most recent revision of Wikipedia page. + ''' + if not getattr(self, '_revision_timestamp', False): + self._revision_timestamp = [ + revision['timestamp'] + for revision in self.__continued_query({ + 'prop': 'revisions', + 'ellimit': 'max' + }) + ] + return self._revision_timestamp[0] + @property def parent_id(self): '''