1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-30 07:12:50 -05:00

Add experimental user search parser

This commit is contained in:
Zed
2022-01-26 20:27:11 +01:00
parent 49a2fbb070
commit 4738ec3385
8 changed files with 74 additions and 33 deletions

View File

@@ -0,0 +1,23 @@
import std/tables
import user
type
Search* = object
globalObjects*: GlobalObjects
timeline*: Timeline
GlobalObjects = object
users*: Table[string, RawUser]
Timeline = object
instructions*: seq[Instructions]
Instructions = object
addEntries*: tuple[entries: seq[Entry]]
Entry = object
entryId*: string
content*: tuple[operation: Operation]
Operation = object
cursor*: tuple[value, cursorType: string]

View File

@@ -1,3 +1,4 @@
import options
import common
type
@@ -16,10 +17,10 @@ type
mediaCount*: int
verified*: bool
protected*: bool
profileLinkColor*: string
profileBannerUrl*: string
profileImageUrlHttps*: string
profileImageExtensions*: ImageExtensions
profileLinkColor*: string
profileImageExtensions*: Option[ImageExtensions]
pinnedTweetIdsStr*: seq[string]
Entities* = object