Package index
Sesión y motor
Instalar el motor de Node.js/Playwright e importar tu sesión real de X a partir de las cookies del navegador.
-
importSessionX() - Importar una sesion de X/Twitter desde las cookies de tu navegador
-
installPlaywrightEngine() - Instalar el motor Node/Playwright (npm install + browsers)
-
checkPlaywrightEngine() - Comprobar que el motor Node/Playwright esta instalado y operativo
-
loginX() - Iniciar sesion en X/Twitter con Playwright y guardar la sesion
Scraping de tweets (API — recomendado)
Consultan la API GraphQL interna de X y devuelven datos estructurados desde JSON (texto completo, métricas, media, hashtags, menciones, etc.).
-
getUserTweetsAPI() - Get Tweets from a User Timeline via the X API (experimental)
-
getTweetsTimelinesAPI() - Get the Combined Timeline of Several Users via the X API (experimental)
-
getTweetsSearchAPI() - Search Tweets via the X API (experimental)
-
getTweetsRepliesAPI() - Get Tweet Replies / Thread via the X API (experimental)
-
getTweetsDataAPI() - Get Tweet Data from URLs via the X API (experimental)
-
getUserMediaAPI() - Get a User's Media Tweets via the X API (experimental)
-
getUsersDataAPI() - Get a User's Profile Data via the X API (experimental)
-
getUserFollowersAPI() - Get a User's Followers via the X API (experimental)
-
getUserFollowingAPI() - Get the Accounts a User Follows via the X API (experimental)
-
getTweetsRetweetsAPI() - Get the Users Who Retweeted a Tweet via the X API (experimental)
-
plotTime() - Create Line Graph of Tweets by Time
-
plotWords() - Create Word Cloud from Tweets
-
plotEmojis() - Create Bar Chart of Emoticons in Tweets
-
plotEmojisPNG() - Create Bar Chart of EmoticonsPNG in Tweets
-
getTweetsSentiments() - Analyze sentiments of tweets
-
getTweetsImagesAnalysis() - Analyze images of tweets
-
HTMLImgReport() - Generate HTML visualization of analyzed images
-
getTweetsHashtags() - Get Hashtags from Tweets
-
extractTweetsData() - Extracts Relevant Information from Locally Stored Tweets
-
getTweetsXquikSearch() - Get Tweets by Search with Xquik
Funciones deprecadas (scraping por HTML)
Reemplazadas por las funciones *API(), más robustas. Siguen funcionando pero emiten una advertencia de ciclo de vida.
-
getTweetsTimeline() - Get Tweets from User Timeline
-
getTweetsTimelineFor() - Get Tweets from Multiple Users Iteratively
-
getTweetsHistoricalSearch() - Get Historical Tweets from a Specific Search
-
getTweetsHistoricalSearchFor() - Get Historical Tweets Iteratively
-
getTweetsHistoricalHashtag() - Get Historical Tweets with a Specific Hashtag
-
getTweetsHistoricalHashtagFor() - Get Historical Tweets with Hashtags Iteratively
-
getTweetsHistoricalTimeline() - Get Historical Tweets from a User Timeline
-
getTweetsHistoricalTimelineFor() - Get Historical Tweets from User Timeline Iteratively
-
getTweetsFullSearch() - Get Tweets from a Full Search
-
getTweetsSearchStreaming() - Get Live Tweet by Search
-
getTweetsSearchStreaming2() - Get Live Tweet by Search II
-
getTweetsSearchStreamingFor() - Get Iterative Tweets in Streaming
-
getTweetsSearchStreamingFor2() - Get Iterative Tweets in Streaming II
-
getTweetsCites() - Get Tweets Cites with Data
-
getTweetsReplies() - Get Tweets Replies with Data
-
getTweetsRetweets() - Get Users Retweets with Data
-
getTweetsData() - Get Tweets Data
-
getTweetsData2() - Get Tweets Data II
-
getTweetsImages() - Get Tweets Images
-
getUsersData() - Get Users Data
-
getUsersFullData() - Get Users Full Data
-
getScrollExtract() - Extract Tweets from a Timeline by Scrolling
-
getScrollExtractUrls() - Extract Tweet URLs from a Timeline by Scrolling
-
getUrlsTweetsSearch() - Get Tweets URLs by Search
-
getUrlsTweetsTimeline() - Get URLs of User Timeline Tweets
-
getUrlsTweetsCites() - Get Tweets URLs Cites
-
getUrlsTweetsReplies() - Get Tweets URLs Replies
-
getUrlsHistoricalTimeline() - Get Historical Tweet URLs from a User Timeline
-
getUrlsSearchStreaming() - Get Live Tweet URLs by Search
-
openTwitter() - Open Twitter Login Page
-
closeTwitter() - Close Twitter Session
-
openTimeline() - Open Timeline User
-
closeTimeline() - Close Timeline Session
-
userTwitter() - Input Twitter Username for Authentication
-
passTwitter() - Input Twitter Password for Authentication