Fetch pages using a headless chromium browser, and returns the detected charset.
Text file, one URL per line
JSON lines. Text file with one JSON entry per line.
{"url": "...", "charset": "..."}
{"url": "...", "charset": "..."}
...
In the base directory:
npm start < input_file.txt > output_file.jsonl