Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

How to get Photo or video Src ? #131

Open
jimmyxp01 opened this issue Jun 22, 2021 · 1 comment
Open

How to get Photo or video Src ? #131

jimmyxp01 opened this issue Jun 22, 2021 · 1 comment

Comments

@jimmyxp01
Copy link

I want the full link of posts. how to extract this?
post link: https://www.instagram.com/p/CP5VLwPMnrF/

Need (Example): https://instagram.fccu20-1.fna.fbcdn.net/v/t51.2885-15/e35/197884809_865699657359940_2163597179560292049_n.jpg?tp=1&_nc_ht=instagram.fccu20-1.fna.fbcdn.net&_nc_cat=104&_nc_ohc=9xGuy1FN8MoAX-Nztrd&edm=AABBvjUBAAAA&ccb=7-4&oh=f0f99f225af923a1b405ceb7546bc4e0&oe=60D9E241&_nc_sid=83d603

Anyone help me. I need A user all photo, video, reel links list. I don't want to download them, just need links like the above one.

@alizepistidda
Copy link

check the property of post: flat_json_dict['text']

If you follow this blogpost add in the for-loop the following statement:

for post in chris_photos:
if 'text' in post.flat_json_dict:
text= post.flat_json_dict['text']
else:
text = "NaN"

The variable text will give you now what you need.

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

No branches or pull requests

2 participants