JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.39k stars 702 forks source link

Json file appears incorrect #227

Closed x879q closed 3 years ago

x879q commented 3 years ago

hi, When storing data in a file. json, it appears that there is an error reading the file "Multiple JSON root elements"

JustAnotherArchivist commented 3 years ago

snscrape produces JSONL (JSON lines), not JSON. Each line in the output is a JSON object.

(For completeness: JSONL is also known as LDJSON (line-delimited JSON) or NDJSON (newline-delimited JSON).)