Simple script to fetch the tells from an Tellonym user
main.mjs
import fetch from 'node-fetch'
let settings = { method: "Get" };
async function main(username, pages, limit = 25) {
let resAnswers = []
for (let index = 0; index < pages; ++index) {
const json = await fetch(`https://api.tellonym.me/profiles/name/${username}?limit=${limit}&pos=${index}`, settings)
.then(res => res.json())
const anwers = json.answers;
anwers.map((item) => {
resAnswers.push({
tell: item.tell,
answer: item.answer,
date: item.createdAt,
})
})
}
console.log(JSON.stringify(resAnswers, null, 4))
}
main('Der_Googler', 1)
Limit can increased up to
30