randydev commited on
Commit
124395a
·
verified ·
1 Parent(s): f25b5da

Update lib/scrapper.js

Browse files
Files changed (1) hide show
  1. lib/scrapper.js +1 -2
lib/scrapper.js CHANGED
@@ -26,8 +26,7 @@ const TiktokDownloader = async (url) => {
26
  throw new Error("Invalid TikTok URL. Please provide a valid TikTok video link.");
27
  }
28
 
29
- const apiUrl = `https://${config.TiktokUrl}/api/?url=${encodeURIComponent(url)}`;
30
- console.log(apiUrl);
31
  const response = await axios.get(apiUrl, {
32
  headers: { 'Content-Type': 'application/json' }
33
  });
 
26
  throw new Error("Invalid TikTok URL. Please provide a valid TikTok video link.");
27
  }
28
 
29
+ const apiUrl = `${config.TiktokUrl}/api/?url=${encodeURIComponent(url)}`;
 
30
  const response = await axios.get(apiUrl, {
31
  headers: { 'Content-Type': 'application/json' }
32
  });