Deliver node js code that allows me to run it via terminal on Windows to scrape data from the TradingView chart in either DexScreener or DexTools. User should be allowed to select timeframe, candle aggregation period (5 min, 15 min, 1 day, etc.), and pair address; e.g., 2KB3i5uLKhUcjUwq3poxHpuGGqBWYwtTk5eG9E5WnLG6 (TETSUO/SOL) pool on Raydium. Output should be in JSON or CSV format.
For future potential tasks, the ideal candidate should have experience with Data Scraping and Trading Automation (mostly Telegram Bots, Nodejs).