Skip to content

Commit

Permalink
Merge pull request #194 from NielsOerbaek/main
Browse files Browse the repository at this point in the history
Exclude messageprompts as elements
  • Loading branch information
vladkens authored Jun 29, 2024
2 parents 7e82ff7 + b902975 commit 489e362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twscrape/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def _gql_items(

obj = rep.json()
els = get_by_path(obj, "entries") or []
els = [x for x in els if not x["entryId"].startswith("cursor-")]
els = [x for x in els if not (x["entryId"].startswith("cursor-") or x["entryId"].startswith("messageprompt-"))]
cur = self._get_cursor(obj, cursor_type)

rep, cnt, active = self._is_end(rep, queue, els, cur, cnt, limit)
Expand Down

0 comments on commit 489e362

Please sign in to comment.