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