Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

in need a function in node which take shortner url as input and return its actual url

$
0
0

like for example as a input take this link and in output i need final url https://www.flipkart.com/realme-p1-pro-5g-phoenix-red-128-gb/p/itmc859edf8053dc?pid=MOBGZ8R6Y4FFFHQX&param=9897&otracker=clp_bannerads_1_8.bannerAdCard.BANNERADS_realme+p1+pro+5g+sale+on_mobile-phones-store_CKXPDU00VGFX&affid=admingopai&affExtParam1=E452B8570 restriction is that we cant use pupeeter cherio type similar library. we can use axios or http request i need a function which can give me actual url fast. when i am tryyin i got stucked since it has js redirection and where it getting statuscode200 then it not able to search for further it treatin it as actual url


Viewing all articles
Browse latest Browse all 12141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>