|
|
|
@ -18,7 +18,9 @@ def parse_timeline(data):
|
|
|
|
|
def parse_entry(entry):
|
|
|
|
|
result = []
|
|
|
|
|
entry_id = entry["entryId"]
|
|
|
|
|
if "list-conversation" in entry_id and not "tweet" in entry_id:
|
|
|
|
|
if "promoted" in entry_id:
|
|
|
|
|
return []
|
|
|
|
|
elif "list-conversation" in entry_id and not "tweet" in entry_id:
|
|
|
|
|
for item in entry["content"]["items"]:
|
|
|
|
|
data = parse_content(item["item"])
|
|
|
|
|
if data: result.append(data)
|
|
|
|
|