Swipe links url in stories #7
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: KaKi87/scraper-instagram-v1#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Would it be possible to add swipe url links in the getProfileStory call?
Excuse me, what are swipe URLs ?
Sorry did not explain it correctly, when a story is added on instagram there is an option to a link to that story to take you a url. So wondered if there is a way to grab that url by the getProfileStory call?
I will look into the available data from stories.
Do you have an example profile I could use to find what you're looking for ?
used to be the value on:
story_cta_url:
not sure if this has changed recently:
example: swipe story on instagram.com/bbc
from this article: https://rishicodes.wordpress.com/2018/09/04/the-hard-way-to-secretly-view-instagram-stories/
{ __typename: 'GraphStoryImage',
id: '1859618471283064827',
dimensions: { height: 1920, width: 1080 },
display_resources:
[ { src: 'https://instagram.fdel11-1.fna.fbcdn.net/vp/4da9f9edc2bddcc7b73bd12aac4fbb20/5B8EE7D6/t51.12442-15/sh0.08/e35/p640x640/39887335_463907817446553_2051613101710639104_n.jpg',
config_width: 640,
config_height: 1137 },
{ src: 'https://instagram.fdel11-1.fna.fbcdn.net/vp/2f03c39f92d708ec162ada9ad203288c/5B8EEC56/t51.12442-15/sh0.08/e35/p750x750/39887335_463907817446553_2051613101710639104_n.jpg',
config_width: 750,
config_height: 1333 },
{ src: 'https://instagram.fdel11-1.fna.fbcdn.net/vp/d9d0e85bc1ba4c7c221649c7c5cc33f0/5B8EC6B1/t51.12442-15/e35/39887335_463907817446553_2051613101710639104_n.jpg',
config_width: 1080,
config_height: 1920 } ],
display_url: 'https://instagram.fdel11-1.fna.fbcdn.net/vp/d9d0e85bc1ba4c7c221649c7c5cc33f0/5B8EC6B1/t51.12442-15/e35/39887335_463907817446553_2051613101710639104_n.jpg',
media_preview: 'ABcq6RmCjJ6CoPtK/wCSP8anLYqPdQBKDnkUU1XDcCigCreTbEbacPxj1rm2llhxLlhuzg5znHB4yf1q5qyt5xYHoo/nj+ZFY+8ng8/40wOvtbuKdtsZyduT/n60Vk6KhWVs90/qKKQF680w3EhlDbcgDGM9M+49apf2G5OfM6/7P/166OigDLsdONq5cvuyuMYx3zmitSigD//Z',
taken_at_timestamp: 1535903818,
expiring_at_timestamp: 1535990218,
story_cta_url: 'http://notsafeforwork.com',
story_view_count: null,
is_video: true }
I understand ! Thanks for starting this research, I'll finish it tomorrow :)
thank you so much :)
just looking into your code i see you could just add the one line to the getprofilestory if the field is still called story_cta_url although i'm unsure what if that field is in stories that do not have a swipe up line so might need some extra lines to handle that condition
Unfortunately, the
bbcprofile no longer has a story, and I couldn't find another profile story that features an external link.Until then, I pushed some temporary code on the
feature/profile-story-external-linkbranch.If you find another story featuring an external link, please share its profile username or ID.
If you can, please also install this branch and share a screenshot of it working.
The command is :
yarn add git+https://git.kaki87.net/KaKi87/ig-scraper.git#feature/profile-story-external-linkor :
npm install git+https://git.kaki87.net/KaKi87/ig-scraper.git#feature/profile-story-external-linkOnce the feature is confirmed working, I'll add the
undefinedvalue handling, push on themasterbranch and publish a new release.As I was beginning to implement this feature, and using the lib itself while looking for stories, I experienced and fixed 2 additional bugs.
Thank you.
hi,
instagram.com/9gag
instagram.com/cnn
are a few that have stories right now
hi i will install
the branch and let you know what i find
Fixed !
Here's what I've got.
await client.getProfileStory('9gag')await client.getProfileStory('cnn')Please confirm you have the same results using the latest commit of this feature branch and I will merge & publish.
Thanks !
wow that looks perfect, will give the branch a test and report back
thanks again
tested and working correctly. great job!
thank you again
You're welcome !
I will merge & publish this feature on NPM this evening.
The profile story external "swipe up" link feature has been released. :)
Commit :
75d575fthank you. Amazing work!