Skip to content

Commit

Permalink
fixed instagram stalk & instagram story
Browse files Browse the repository at this point in the history
  • Loading branch information
thoriqazzikraa committed Mar 16, 2024
1 parent 7792323 commit 0444b0d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrape-websitee",
"version": "1.0.66",
"version": "1.0.67",
"description": "Website Scraping",
"main": "index.js",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions src/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,11 @@ async function spotify(url) {

async function igStory(username) {
try {
const { pkId } = await igStalk(username)
const { data } = await axios.get(`https://instasupersave.com/api/ig/stories/${pkId}`)
const { data } = await axios.get(`https://igram.world/api/ig/story?url=https://instagram.com/stories/${username}`, {
headers: {
"User-Agent": "PostmanRuntime/7.37.0"
}
})
let result = { status: true, media: [] }
data.result.map((check) => {
if (check.has_audio === true) {
Expand Down
11 changes: 8 additions & 3 deletions src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ async function lyrics(query) {

async function igStalk(username) {
try {
const { data, status } = await axios.get(`${baseSSS}api/ig/userInfoByUsername/${username}`)
const { data, status } = await axios.get(`https://igram.world/api/ig/userInfoByUsername/${username}`, {
headers: {
"User-Agent": "PostmanRuntime/7.37.0"
}
})
if (data.result.user.pronouns.length === 0) {
var pronoun = ""
} else {
Expand Down Expand Up @@ -269,12 +273,13 @@ async function igStalk(username) {
}
return result
} catch (err) {
return (result = {
result = {
status: false,
creator: "Thoriq Azzikra",
message: "Tidak dapat menemukan akun"
})
}
console.log(result)
return result
}
}

Expand Down

0 comments on commit 0444b0d

Please sign in to comment.