Update lib/scrapper.js
Browse files- lib/scrapper.js +1 -1
lib/scrapper.js
CHANGED
@@ -25,7 +25,7 @@ const TiktokDownloader = async (url) => {
|
|
25 |
const urls = `${config.TIKTOK_URL}/api/?url=${url}`;
|
26 |
const response = await axios.get(urls, { headers: {'Content-Type': 'application/json'} });
|
27 |
return response.data;
|
28 |
-
} catch (
|
29 |
console.error("Error:", e.message);
|
30 |
return null;
|
31 |
}
|
|
|
25 |
const urls = `${config.TIKTOK_URL}/api/?url=${url}`;
|
26 |
const response = await axios.get(urls, { headers: {'Content-Type': 'application/json'} });
|
27 |
return response.data;
|
28 |
+
} catch (e) {
|
29 |
console.error("Error:", e.message);
|
30 |
return null;
|
31 |
}
|