|
|
@@ -81,17 +81,14 @@ module.exports = async function (fastify, opts) {
|
|
|
price = await rows[1].innerText()
|
|
|
}
|
|
|
console.log(asin + ' start')
|
|
|
- let sif = await axios.get(
|
|
|
- 'https://www.sif.com/api/search/asinFlowOverview',
|
|
|
- {
|
|
|
- params: {
|
|
|
- country: 'US',
|
|
|
- asin,
|
|
|
- _t: new Date().getTime()
|
|
|
- }
|
|
|
+ let sif = await axios.get('https://www.sif.com/api/search/asinFlowOverview', {
|
|
|
+ params: {
|
|
|
+ country: 'US',
|
|
|
+ asin,
|
|
|
+ _t: new Date().getTime()
|
|
|
},
|
|
|
- { timeout: 5000 }
|
|
|
- )
|
|
|
+ timeout: 5000
|
|
|
+ })
|
|
|
console.log(asin + ' end')
|
|
|
res.push({ text, href, price, asin, data: sif.data.data })
|
|
|
console.log(res.length + '/' + items.length)
|