n
path
curl https://tcpdata.com/stream/5
fetch('https://tcpdata.com/stream/5')
.then(res => res.text())
.then(data => {
data.split('\n').forEach(line => {
if (line) console.log(JSON.parse(line));
});
});
import requests
import json
response = requests.get('https://tcpdata.com/stream/5', stream=True)
for line in response.iter_lines():
if line:
print(json.loads(line))