Reverse engineered prompt

GitHub

Build me a Python tool that can scrape Twitter or X in a practical way using a real browser session. I want to be able to log in with my X account, scrape a specific user timeline, search by keyword or hashtag, and pull posts from a date range so I can go back through older tweets too. It should save clean JSON with the tweet text, dates, user info, engagement numbers, links, hashtags, and media when available.

Please make it easy to use from both a simple interactive menu and normal terminal commands. I also want it to handle long runs well, with progress updates, deduping, retries, and the ability to resume from where it stopped if something crashes. Add support for optional proxies and saved sessions so it is more reliable over time.

If an OpenAI key is provided, add optional analysis for sentiment, main topics, and a summary of the scraped tweets. Include a config file template, sensible defaults, and short setup and usage instructions. Look up current docs online if you need to.

Have a live product UI? Try website reverse