instagram-sweepstakes
v1.0.0
Published
sort and sweepstakes to instagram.
Downloads
3
Readme
instagram-sweepstakes
About
Sort and sweepstakes to instagram.
Install
npm install instagram-sweepstakes --save
In your code
const sweepstake = require('instagram-sweepstakes');
const refactor = () => {
var url = "https://www.instagram.com/p/CDPQHq7Dpc2/"; //post url
var order = "desc"; //order to list, desc or asc
var char = "@"; // character to find hastag # or profile @
var sortComments = sweepstake.sorte(url, order, char);
var random = sweepstake.random(url, char)
console.log(sortComments);
/*[
'#swiftui', '#swift',
'#mobiledeveloper', '#ios',
'#iosdeveloper', '#dev',
'#programming', '#tech',
'#apple', '#coding',
'#xcode', '#iosdesign',
'#iosdevelopment', '#appdeveloper',
'#appdevelopment', '#developerlife',
'#programminglife', '#swiftlang',
'#ui', '#ux',
'#appdesign', '#uidesign',
'#code', '#coder',
'#swiftdev', '#swiftdeveloper',
'#findswiftdevelopers', '#swiftuitutorials'
]*/
console.log(random);
// print a profile or hashtag - #swiftui
}