UNPKG

nitter-scraper

Version:

A Twitter scraper that uses Nitter to fetch tweets without authentication

11 lines (10 loc) 566 B
import type { Tweet } from "./types/Tweet"; /** * Fetch tweets from Nitter for a given username * @param username Twitter username to scrape (without @) * @param sinceDate Optional date to start fetching tweets from (default: null) * @param maxPages Maximum number of pages to fetch (default: 1) * @param includeReplies Whether to include replies (default: false) * @returns Promise containing an array of tweets */ export declare function fetchTweets(username: string, sinceDate?: Date | null, maxPages?: number, includeReplies?: boolean): Promise<Tweet[]>;