Skip to content

Instantly share code, notes, and snippets.

@huuhuybn
Last active May 24, 2024 07:00
Show Gist options
  • Save huuhuybn/9d04cd0d11edf2b40c0be71cd0c12bf9 to your computer and use it in GitHub Desktop.
Save huuhuybn/9d04cd0d11edf2b40c0be71cd0c12bf9 to your computer and use it in GitHub Desktop.
Kotlin Android Demo
// Download Video From Pinterest - Html Parser
var videoID = "Video Pinterest ID"
var ink = `https://widgets.pinterest.com/v3/pidgets/pins/info/?pin_ids=${videoID_}&sub=www&base_scheme=https`
const options = {
url: linkNgon,
headers: {
'User-Agent': randomUseragent.getRandom(function (ua) {
return parseFloat(ua.browserVersion) >= 22;
})
}
};
request(options, function (error, response, body) {
console.log(response)
});
@huuhuybn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment