def _get_sync_token(self): url_parts = urlsplit(self.next_sync_url or self.next_page_url) querystring = parse_qs(url_parts.query) return querystring['sync_token'][0]