Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alkihis/twitter-archive-reader
/ functions
Functions
335 in github.com/alkihis/twitter-archive-reader
⨍
Functions
335
◇
Types & classes
148
↓ 29 callers
Method
get
* Get a media from a specific media type. * * @param from Media archive type * @param name Filename (exact filename required) * @param as_arra
ts/MediaArchive.ts:61
↓ 27 callers
Method
has
(id_str: string)
ts/tweets/TweetArchive.ts:17
↓ 22 callers
Method
add
(elements: T[])
ts/tweets/TweetArchive.ts:13
↓ 18 callers
Method
ready
()
ts/reading/StreamArchive.ts:368
↓ 17 callers
Method
get
( name: string, type: "text" | "arraybuffer" | "blob" = "text", parse_auto = true
ts/reading/StreamArchive.ts:380
↓ 17 callers
Method
read
()
ts/reading/StreamZip.ts:878
↓ 15 callers
Method
entries
()
ts/reading/StreamZip.ts:471
↓ 13 callers
Method
dir
(name: string)
ts/reading/StreamArchive.ts:372
↓ 13 callers
Method
find
* Search into **tweets** using **query**. * * Query can contain keywords. * Default available keywords are: * - `since:{YYYY-MM-DD} or {YY
ts/tweets/TweetArchive.ts:876
↓ 12 callers
Method
search
(query: RegExp)
ts/reading/StreamArchive.ts:403
↓ 11 callers
Function
write
(name: string, data: any)
ts/test/basic_t.ts:20
↓ 10 callers
Function
parseTwitterDate
(date: string)
ts/utils/exported_helpers.ts:84
↓ 10 callers
Method
single
(id_str: string)
ts/tweets/TweetArchive.ts:16
↓ 9 callers
Method
emitAndChangeState
(step: string, new_state?: ArchiveReadState)
ts/TwitterArchive.ts:1068
↓ 8 callers
Function
dateFromTweet
(tweet: PartialTweet)
ts/utils/exported_helpers.ts:100
↓ 8 callers
Method
ready
Resolved when archive read is over.
ts/TwitterArchive.ts:642
↓ 8 callers
Method
searchDir
(query: RegExp)
ts/reading/StreamArchive.ts:407
↓ 6 callers
Method
get
* @deprecated Use `.single()` instead.
ts/tweets/FavoriteArchive.ts:47
↓ 6 callers
Method
readUntilFoundCallback
(err: any, bytesRead: number)
ts/reading/StreamZip.ts:338
↓ 5 callers
Method
all
* All tweets registered in this archive. * * Remember that it's not assured that tweets are sorted. * * To get ordered tweets, use `.sorte
ts/tweets/TweetArchive.ts:388
↓ 5 callers
Method
getFolderOfType
(archive: string)
ts/MediaArchive.ts:101
↓ 5 callers
Method
initArchivePart
* Read one or more archive parts from loaded archive. * * You don't need to call this method if you use the default constructor.
ts/TwitterArchive.ts:364
↓ 5 callers
Method
month
(month: string | number, year: string | number)
ts/tweets/TweetArchive.ts:14
↓ 4 callers
Method
addTweetsToGdprArchive
(tweets: PartialTweetGDPR[])
ts/TwitterArchive.ts:221
↓ 4 callers
Method
checkOp
()
ts/reading/StreamZip.ts:911
↓ 4 callers
Function
sortTweets
(tweets: T[], order: "asc" | "desc" = "desc")
ts/utils/exported_helpers.ts:141
↓ 3 callers
Method
checkEntriesExist
()
ts/reading/StreamZip.ts:461
↓ 3 callers
Function
constructArchive
(archive: AcceptedZipSources)
ts/reading/StreamArchive.ts:49
↓ 3 callers
Function
dateFromFavorite
(favorite: PartialFavorite)
ts/utils/exported_helpers.ts:108
↓ 3 callers
Method
file
(name: string, as_array_buffer?: T)
ts/MediaArchive.ts:487
↓ 3 callers
Method
loadPart
* Load a part of CollectedUserData archive. * * Should be used to build from hand this object.
ts/user/UserData.ts:295
↓ 3 callers
Method
parseAge
(age: string[])
ts/user/UserData.ts:542
↓ 3 callers
Function
safePusher
(array: Array<T>, elements: Array<T>)
ts/utils/helpers.ts:24
↓ 3 callers
Method
search
* Deprecated. Use `.find()` instead, that is more future proof.
ts/tweets/TweetArchive.ts:811
↓ 3 callers
Function
supportsBigInt
()
ts/utils/helpers.ts:6
↓ 2 callers
Function
addEvents
(e: DirectMessageEventsContainer)
ts/utils/exported_helpers.ts:23
↓ 2 callers
Method
addGDPR
* Add unconverted GDPR tweets to this archive. * This method should not be called by end-programmer. * * Prefer usage of `TwitterArchive.load
ts/tweets/TweetArchive.ts:80
↓ 2 callers
Method
arrayMonthIterator
* Iterate array of tweets by month * * @param order Order by `asc` or `desc`.
ts/tweets/TweetArchive.ts:510
↓ 2 callers
Method
between
Get tweets in a specific time interval.
ts/tweets/TweetArchive.ts:195
↓ 2 callers
Method
canVerifyCrc
(entry: ZipEntry)
ts/reading/StreamZip.ts:535
↓ 2 callers
Method
data
(data: Buffer)
ts/reading/StreamZip.ts:1049
↓ 2 callers
Method
dataOffset
(entry: ZipEntry)
ts/reading/StreamZip.ts:531
↓ 2 callers
Function
dateOfDMEvent
(event: { createdAt: string, createdAtDate?: Date })
ts/utils/helpers.ts:10
↓ 2 callers
Function
dateRegexFromQuery
(query: string)
ts/tweets/TweetArchive.ts:650
↓ 2 callers
Method
fromTweetMediaEntity
* Extract related tweet video or picture from a media entity. * * ```ts * const tweet = archive.tweets.all[0]; * * if (tweet.extended_e
ts/MediaArchive.ts:198
↓ 2 callers
Method
getArchiveType
(archive: string)
ts/MediaArchive.ts:90
↓ 2 callers
Method
initOrAwaitArchive
(archive_type: ExistingArchives | string, init_folder: string | string[])
ts/MediaArchive.ts:339
↓ 2 callers
Method
initUserCache
()
ts/TwitterArchive.ts:962
↓ 2 callers
Method
loadArchivePart
* Load a part of a GDPR archive. * * Set current archive as GDPR archive.
ts/TwitterArchive.ts:765
↓ 2 callers
Method
ofDm
* Return all the images of a direct message, as blob or array buffer. * * If the message does not exists or the DM archive is not loaded / avail
ts/MediaArchive.ts:130
↓ 2 callers
Method
open
(chunkSize?: number)
ts/reading/StreamZip.ts:314
↓ 2 callers
Method
openEntry
(entry: ZipEntry | string)
ts/reading/StreamZip.ts:559
↓ 2 callers
Function
parseZipTime
(timebytes: number, datebytes: number)
ts/reading/StreamZip.ts:849
↓ 2 callers
Method
read
( file: FolderEntry, type: "text" | "arraybuffer" | "blob" = "text", parse_auto =
ts/reading/FolderArchive.ts:166
↓ 2 callers
Method
read
( file: ZipEntry, type: "text" | "arraybuffer" | "blob" = "text", parse_auto = tru
ts/reading/StreamArchive.ts:196
↓ 2 callers
Method
read
( file: JSZip.JSZipObject, type: "text" | "arraybuffer" | "blob" = "text", parse_a
ts/reading/StreamArchive.ts:411
↓ 2 callers
Method
readCallback
(bytesRead: number, buffer: Buffer)
ts/reading/StreamZip.ts:1004
↓ 2 callers
Method
readEntries
()
ts/reading/StreamZip.ts:403
↓ 2 callers
Method
ready
()
ts/MediaArchive.ts:479
↓ 2 callers
Function
sortFavorites
(favorites: PartialFavorite[], order: "asc" | "desc" = "desc")
ts/utils/exported_helpers.ts:163
↓ 2 callers
Function
toBits
(dec: number, size: number)
ts/reading/StreamZip.ts:842
↓ 1 callers
Method
__init
* **For internal module use only.** * * Can **ONLY** be used with GDPR archives. * * For loading basic user info, you must use `.loadPar
ts/user/UserData.ts:57
↓ 1 callers
Method
__initUserCache
* Needed to convert GDPR tweets to PartialTweets. * * **You should not use this method! This is for internal purpose.**
ts/tweets/TweetArchive.ts:542
↓ 1 callers
Method
add
* Add a new conversation part to actual conversation. * Actual conversation and new part must have the same ID. * * After you've imported all
ts/direct_messages/Conversation.ts:486
↓ 1 callers
Method
addClicked
* Add clicked actions to this container.
ts/tweets/TweetArchive.ts:93
↓ 1 callers
Method
autoDetectIfArrayBuffer
()
ts/MediaArchive.ts:545
↓ 1 callers
Method
autoDetectStoreType
(archive: ConstructibleArchives)
ts/MediaArchive.ts:364
↓ 1 callers
Method
convertToPartial
(tweet: PartialTweetGDPR)
ts/tweets/TweetArchive.ts:557
↓ 1 callers
Method
detectMimeType
(name: string)
ts/MediaArchive.ts:516
↓ 1 callers
Method
entryData
(entry: ZipEntry | string)
ts/reading/StreamZip.ts:598
↓ 1 callers
Function
escapeRegExp
(string: string)
ts/tweets/TweetArchive.ts:1067
↓ 1 callers
Method
expandLeft
(length: number)
ts/reading/StreamZip.ts:927
↓ 1 callers
Method
fromDmMediaUrl
* Extract the related media file to a URL present in the `mediaUrls` array of a Direct Message.
ts/MediaArchive.ts:145
↓ 1 callers
Method
fromFile
* Create a new instance of Archive from a file contained in this archive. * * @param name File name or file object
ts/reading/StreamArchive.ts:466
↓ 1 callers
Method
get
Get a conversation with specific ID. undefined if it does not exists.
ts/direct_messages/DMArchive.ts:41
↓ 1 callers
Method
get
( name: string, type: "text" | "arraybuffer" | "blob" = "text", parse_auto = true
ts/reading/FolderArchive.ts:148
↓ 1 callers
Method
get
( name: string, type: "text" | "arraybuffer" | "blob" = "text", parse_auto = true
ts/reading/StreamArchive.ts:178
↓ 1 callers
Method
getCrcTable
()
ts/reading/StreamZip.ts:1067
↓ 1 callers
Method
getEntries
(from_directory: string)
ts/reading/FolderArchive.ts:50
↓ 1 callers
Function
getEventsFromMessages
( msgs: LinkedDirectMessage[], include_messages = false, remove_double_linked_list = false, )
ts/utils/exported_helpers.ts:18
↓ 1 callers
Function
getExtendedContainerBase
()
ts/TwitterArchive.ts:26
↓ 1 callers
Method
getProfileBannerOf
* Get the profile banner of given user. * * The first parameter should generally be `archive.user`. * * If user has no banner, this method
ts/MediaArchive.ts:237
↓ 1 callers
Method
getProfilePictureOf
* Get the profile picture of given user. * * The first parameter should generally be `archive.user`. * * If user has no profile picture, t
ts/MediaArchive.ts:253
↓ 1 callers
Method
has
Test if archive has a conversation with ID {id}
ts/direct_messages/DMArchive.ts:46
↓ 1 callers
Method
has
(name: string)
ts/reading/StreamArchive.ts:376
↓ 1 callers
Method
indexate
* Index imported messages. * Needed to see all DMs. * * Should be call after you've imported all with **.add()**.
ts/direct_messages/Conversation.ts:506
↓ 1 callers
Method
init
(parts_to_read: Set<ArchiveReadPart>)
ts/TwitterArchive.ts:237
↓ 1 callers
Function
initAdArchiveFromArchive
(archive: BaseArchive<any>, ads: AdArchive)
ts/utils/helpers.ts:43
↓ 1 callers
Method
initAgeInfo
()
ts/user/UserData.ts:148
↓ 1 callers
Method
initClassic
(parts_to_read: Set<ArchiveReadPart>)
ts/TwitterArchive.ts:343
↓ 1 callers
Method
initConnectedApps
()
ts/user/UserData.ts:201
↓ 1 callers
Method
initCreationIp
()
ts/user/UserData.ts:189
↓ 1 callers
Method
initEmailAddresses
()
ts/user/UserData.ts:224
↓ 1 callers
Method
initGDPR
(parts_to_read: Set<ArchiveReadPart>)
ts/TwitterArchive.ts:271
↓ 1 callers
Method
initIpAudit
()
ts/user/UserData.ts:240
↓ 1 callers
Method
initNiDevices
()
ts/user/UserData.ts:255
↓ 1 callers
Method
initPersonalization
--------------
ts/user/UserData.ts:85
↓ 1 callers
Method
initPhoneNumber
()
ts/user/UserData.ts:278
↓ 1 callers
Method
initProtectedHistory
()
ts/user/UserData.ts:180
↓ 1 callers
Method
initScreenNameHistory
()
ts/user/UserData.ts:171
next →
1–100 of 335, ranked by callers