1const bluebird = require('bluebird')
2
3async function makeRequests (lines) {
4 await bluebird.map(
5 lines,
6 async (line) => {
7 const encodedLink = encodeURI(line.link)
8 const response = await axios.get(encodedLink)
9 // ...your response handling code here...
10 },
11 { concurrency: 3 }
12 )
13}
14
15makeRequests(jsonParsed)
16