- user_id = profile_data['data']['userId']
- timeline_data = []
- for pagenum in itertools.count(1):
- timeline_url = '%sapi/timelines/users/%s?page=%s&size=100' % (
- self._VINE_BASE_URL, user_id, pagenum)
- timeline_page = self._download_json(
- timeline_url, user, note='Downloading page %d' % pagenum)
- timeline_data.extend(timeline_page['data']['records'])
- if timeline_page['data']['nextPage'] is None:
- break
-
+ data = profile_data['data']
+ user_id = data.get('userId') or data['userIdStr']
+ profile = self._download_json(
+ 'https://archive.vine.co/profiles/%s.json' % user_id, user_id)