fix bug: promoted ads filter

master
wlt233 2 weeks ago
parent 1bcaf7659d
commit b31f49a1d7

@ -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)

Loading…
Cancel
Save