Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with getting hashtag and link from story #704

Open
Hossein-Alibandehloo opened this issue Jun 8, 2022 Discussed in #703 · 2 comments
Open

Issue with getting hashtag and link from story #704

Hossein-Alibandehloo opened this issue Jun 8, 2022 Discussed in #703 · 2 comments

Comments

@Hossein-Alibandehloo
Copy link

Discussed in #703

Originally posted by hosein6222 June 8, 2022
Hi.
This module was really helpful but I've got into trouble with getting user's story hashtag and link.
It gives me empty string while the story has the hashtag.

@Hossein-Alibandehloo
Copy link
Author

for example, in the screenshot below, the story has a hashtag:
image link(click)

But in the story data no hashtag recognized:

{'pk': '2857524725926583272',
'id': '2857524725926583272_914145855',
'code': 'Cen95kxv9vo',
'taken_at': datetime.datetime(2022, 6, 10, 12, 18, 7, tzinfo=datetime.timezone.utc),
'media_type': 2,
'product_type': 'story',
'thumbnail_url': HttpUrl('https://instagram.fllk1-7.fna.fbcdn.net/v/t51.2885-15/286957397_1699528573716515_5846780389636950161_n.jpg?stp=dst-jpg_e15&_nc_ht=instagram.fllk1-7.fna.fbcdn.net&_nc_cat=111&_nc_ohc=KSZ9vglHAL0AX8kU_iK&tn=wXIt1zdOXEfVE9Wu&edm=AHlfZHwBAAAA&ccb=7-5&oh=00_AT-CR5UiQ7wOmROF5xf3DW400YBpWE1bMf4JRsXv_MFDnQ&oe=62A6BD9D&_nc_sid=21929d', scheme='https', host='instagram.fllk1-7.fna.fbcdn.net', tld='net', host_type='domain', port='443', path='/v/t51.2885-15/286957397_1699528573716515_5846780389636950161_n.jpg', query='stp=dst-jpg_e15&_nc_ht=instagram.fllk1-7.fna.fbcdn.net&_nc_cat=111&_nc_ohc=KSZ9vglHAL0AX8kU_iK&tn=wXIt1zdOXEfVE9Wu&edm=AHlfZHwBAAAA&ccb=7-5&oh=00_AT-CR5UiQ7wOmROF5xf3DW400YBpWE1bMf4JRsXv_MFDnQ&oe=62A6BD9D&_nc_sid=21929d'),
'user': {'pk': '914145855',
'username': 'daneshjooyi',
'full_name': '',
'profile_pic_url': HttpUrl('https://instagram.fllk1-4.fna.fbcdn.net/v/t51.2885-19/82697572_2980075992023494_5177112681919807488_n.jpg?stp=dst-jpg_s150x150&_nc_ht=instagram.fllk1-4.fna.fbcdn.net&_nc_cat=1&_nc_ohc=zrA-AA-QAYQAX_QKp3T&edm=AHlfZHwBAAAA&ccb=7-5&oh=00_AT90-yOweQSb119dt-gjjmUdk5FKI8OlHWvYHbcUDsSuBQ&oe=62AB8350&_nc_sid=21929d', scheme='https', host='instagram.fllk1-4.fna.fbcdn.net', tld='net', host_type='domain', port='443', path='/v/t51.2885-19/82697572_2980075992023494_5177112681919807488_n.jpg', query='stp=dst-jpg_s150x150&_nc_ht=instagram.fllk1-4.fna.fbcdn.net&_nc_cat=1&_nc_ohc=zrA-AA-QAYQAX_QKp3T&edm=AHlfZHwBAAAA&ccb=7-5&oh=00_AT90-yOweQSb119dt-gjjmUdk5FKI8OlHWvYHbcUDsSuBQ&oe=62AB8350&_nc_sid=21929d'),
'profile_pic_url_hd': None,
'is_private': None,
'stories': []},
'video_url': HttpUrl('https://instagram.fllk1-4.fna.fbcdn.net/o1/v/t16/f1/m51/5E481C5E6AB8867DF52258F1B2A89A94_video_dashinit.mp4?efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uNzIwLnN0b3J5LmJhc2VsaW5lIn0&_nc_ht=instagram.fllk1-4.fna.fbcdn.net&_nc_cat=110&vs=727135181767119_4288980906&_nc_vs=HBksFQIYRGlnX3hwdl9wZXJtYW5lbnQvNUU0ODFDNUU2QUI4ODY3REY1MjI1OEYxQjJBODlBOTRfdmlkZW9fZGFzaGluaXQubXA0FQACyAEAFQAYJEdFVzNJaEdJUEI4RzRIa0FBRGxWalMwUHNjeGlicGt3QUFBRhUCAsgBACgAGAAbAYgHdXNlX29pbAExFQAAJsLr%2BLnk6tI%2FFQIoAkMzLBdALgAAAAAAABgSZGFzaF9iYXNlbGluZV8xX3YxEQB16AcA&ccb=9-4&oe=62A6D311&oh=00_AT__xTVkBc91zfeUA2_XmXr9343UVw-WCAB333USkg9f2A&_nc_sid=21929d', scheme='https', host='instagram.fllk1-4.fna.fbcdn.net', tld='net', host_type='domain', port='443', path='/o1/v/t16/f1/m51/5E481C5E6AB8867DF52258F1B2A89A94_video_dashinit.mp4', query='efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uNzIwLnN0b3J5LmJhc2VsaW5lIn0&_nc_ht=instagram.fllk1-4.fna.fbcdn.net&_nc_cat=110&vs=727135181767119_4288980906&_nc_vs=HBksFQIYRGlnX3hwdl9wZXJtYW5lbnQvNUU0ODFDNUU2QUI4ODY3REY1MjI1OEYxQjJBODlBOTRfdmlkZW9fZGFzaGluaXQubXA0FQACyAEAFQAYJEdFVzNJaEdJUEI4RzRIa0FBRGxWalMwUHNjeGlicGt3QUFBRhUCAsgBACgAGAAbAYgHdXNlX29pbAExFQAAJsLr%2BLnk6tI%2FFQIoAkMzLBdALgAAAAAAABgSZGFzaF9iYXNlbGluZV8xX3YxEQB16AcA&ccb=9-4&oe=62A6D311&oh=00_AT__xTVkBc91zfeUA2_XmXr9343UVw-WCAB333USkg9f2A&_nc_sid=21929d'),
'video_duration': 15.07,
'mentions': [{'user': {'pk': '1',
'username': 'snapppay_ir',
'full_name': 'SnappPay! | اسنپ\u200cپی',
'profile_pic_url': None,
'profile_pic_url_hd': None,
'is_private': False,
'stories': []},
'x': 0.49315619967793806,
'y': 0.8612524130502061,
'width': 0.5034318134404611,
'height': 0.054479449960205005}],
'links': [],
'hashtags': [],
'locations': [],
'stickers': [],
'medias': [{'x': 0.5,
'y': 0.5,
'z': 0,
'width': 0.75,
'height': 0.23789062499999902,
'rotation': 0.0,
'is_pinned': None,
'is_hidden': None,
'is_sticker': None,
'is_fb_sticker': None,
'media_pk': 2850355871967767607,
'user_id': None,
'product_type': None,
'media_code': 'CeOf5BQFmw3'}]}

@Daan-Grashoff
Copy link

It's because it tries first the public api which doesn't provide this info.

Only the private api will

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants