tcooutlinks = snscrape.base._DeprecatedProperty('tcooutlinks', lambda self: [x.tcourl for x in self.links] if self.links else [], 'links (tcourl attribute)')
88
+
tcooutlinksss = snscrape.base._DeprecatedProperty('tcooutlinksss', lambda self: ' '.join(x.tcourl for x in self.links) if self.links else '', 'links (tcourl attribute)')
kwargs['descriptionUrls'] = [{'text': x.get('display_url'), 'url': x['expanded_url'], 'tcourl': x['url'], 'indices': tuple(x['indices'])} for x in user['entities']['description']['urls']]
1338
+
kwargs['descriptionLinks'] = [TextLink(
1339
+
text = x.get('display_url'),
1340
+
url = x['expanded_url'],
1341
+
tcourl = x['url'],
1342
+
indices = tuple(x['indices']),
1343
+
) for x in user['entities']['description']['urls']]
link = TextLink(text = entity.get('display_url'), url = entity.get('expanded_url', user['legacy']['url']), tcourl = user['legacy']['url'], indices = tuple(entity['indices']))
1445
1497
label = None
1446
1498
if (labelO := user['affiliates_highlighted_label'].get('label')):
1447
1499
label = self._user_label_to_user_label(labelO)
skipped 1 lines
1449
1501
username = user['legacy']['screen_name'],
1450
1502
id = int(user['rest_id']),
1451
1503
displayname = user['legacy']['name'],
1452
-
description = description,
1453
1504
rawDescription = rawDescription,
1454
-
descriptionUrls = [{'text': x.get('display_url'), 'url': x['expanded_url'], 'tcourl': x['url'], 'indices': tuple(x['indices'])} for x in user['legacy']['entities']['description']['urls']],
1505
+
renderedDescription = renderedDescription,
1506
+
descriptionLinks = [TextLink(
1507
+
text = x.get('display_url'),
1508
+
url = x['expanded_url'],
1509
+
tcourl = x['url'],
1510
+
indices = tuple(x['indices']),
1511
+
) for x in user['legacy']['entities']['description']['urls']],
1455
1512
verified = user['legacy']['verified'],
1456
1513
created = email.utils.parsedate_to_datetime(user['legacy']['created_at']),