UNPKG

nitter-scraper-v2

Version:

A Twitter scraper that uses Nitter to fetch tweets without authentication

18 lines (17 loc) 553 B
import { FetchTweetsResponse } from "./types/Tweet"; export interface Card { type: "card"; url: string | null; imageUrl: string | null; title: string; description: string; destination: string; } export type ProxyOptions = { proxyList?: string[]; proxyUrl?: string; }; /** * Fetch tweets for a given username */ export declare function fetchTweets(username: string, maxPages?: number, useProxies?: boolean, proxyOptions?: ProxyOptions, useConcurrency?: boolean, includeRetweets?: boolean): Promise<FetchTweetsResponse>;