randydev commited on
Commit
498ebd0
·
verified ·
1 Parent(s): f9ccc6d

Update lib/scrapper.js

Browse files
Files changed (1) hide show
  1. lib/scrapper.js +5 -2
lib/scrapper.js CHANGED
@@ -22,10 +22,13 @@ async function PinterestDL(search) {
22
  }
23
  }
24
 
25
- async function IzreCustom(endpoint, params, search) {
26
  try {
27
  const urls = ParametersUrl(endpoint);
28
- const url = urls + `?${params}=${encodeURIComponent(search)}`;
 
 
 
29
  const response = await axios.get(url);
30
  return AuthorOriginal(response);
31
  } catch (error) {
 
22
  }
23
  }
24
 
25
+ async function IzreCustom(endpoint, params = {}) {
26
  try {
27
  const urls = ParametersUrl(endpoint);
28
+
29
+ const queryString = new URLSearchParams(params).toString();
30
+ const url = `${urls}?${queryString}`;
31
+
32
  const response = await axios.get(url);
33
  return AuthorOriginal(response);
34
  } catch (error) {