1440px for Regular Posts
remlap opened this issue · 24 comments
Hi I am wondering what do you use to get regular posts in 1440px now it has been rolled out?
Thanks
Can you show an example of a post with those new image dimensions?
This script uses the instagram-private-api library which communicates with the private app API directly, so changes regarding available image versions shouldn't require any updates on my part.
https://www.instagram.com/p/BxQUde8A6pe/
I am currently using instaloader which does not support it, I have been using your live downloader for a long time now so your stories version is a huge plus it supports the new 1440.
A friend linked me this from GBinsta android app.
I haven't come across any stories yet with 1440px width if I understand correctly, the maximum dimensions available in the JSON response given by the app API are 1080x2129 in my experience.
As for regular posts, I use a script of my own to download media from individual profiles which is not on GitHub at this time.
It uses the same library to fetch posts and stories (it downloads both) and supports downloading 1440px images. Note that it will only fetch the last 12 posts on a profile so you won't be able to scrape anything like hashtags or complete profiles with it.
I've uploaded it as a private gist so you may use it if you like.
I believe scripts like InstaLoader and rarcega's Instagram scraper use the web API to scrape media, which doesn't display any 1440px images at the moment.
Your stories app is getting 1440x2650.
I grabbed this from mollycaitlynquinn https://i.imgur.com/rgw9W5b.jpg
I'll check out the private git you just linked!
Your stories app is getting 1440x2650.
Nice :)
I recently stripped some code from the script so certain imports like asyncio
shouldn't be required anymore (forgot to remove these). Installing any other missing stuff you can easily do with pip, if need be.
Your private git works perfectly from what I can see it is stories and posts rolled into one and works really well!
Glad to hear! I'll close this issue, but if you have any more questions feel free to leave a comment here.
@notcammy Do You know how I can download one particular Instagram video (url) in highresolution instead of only 240p?
@notcammy Do You know how I can download one particular Instagram video (url) in highresolution instead of only 240p?
Each video quality version has a different filename/url. You can't simply change a value to get a different quality video.
This script downloads the highest available story quality through the Instagram API. If you're unsure of the version it has downloaded you can look the file up by looking through the video_dash_manifest
and video_versions
keys of the object associated with the story in the feed_json.json
file.
@notcammy i want to download particular videos from regular ig posts (not stories). Can your python script do this? What do I have to add or change / enter any parameters, credentials?
The videos I want are within a users timeline of more than 1000 posts
No, this script is for story downloading only. Look into other projects available on Github if you haven't already.
https://github.com/instaloader/instaloader
https://github.com/rarcega/instagram-scraper
I have not seen any instagram video posts with dimensions higher than 720px in width or 900px in height. Can you give some examples of video you want to download.
I will take a proper look at it in the weekend. But after a quick glance I don't believe this video is any higher resolution than others.
The maximum dimensions for that video are 640x360. JSON response
Came across a video that has higher dimensions (960x540, https://www.instagram.com/p/B1cR5PHI4JA/) but I seriously doubt there are videos with dimensions much closer to 720/1080p.
@notcammy instaloader only gets 480x270 version of the one you posted the json output.
So how do we get the 640x360 version?
I wonder if live-streaming has similar restrictions
Many thanks! So probably the original quality was already not high...or IG is heavily downsizing Resolution&quality
Instagram already heavily compresses and resizes image files to maximum 1440px no matter how high the original image dimensions were. I suppose the similar conditions apply to video no matter the original video quality.
instaloader only gets 480x270 version of the one you posted the json output.
So how do we get the 640x360 version?
Instaloader seems to be web based scraper. It downloads videos based on video_url
attribute value (there are no other relevant attributes). I chose to use the app API for my projects because it returns more extensive json info, including multiple media quality versions.
I wonder if live-streaming has similar restrictions
Instagram will (under ideal connection conditions) compress and resize livestreams to 504x992 with roughly 1000kb bitrate.
do you know any that can download the high res video via app api? Or do you have a python script for this?
Afaik none publicly exist. You may use the script linked in #14 (comment) but it's limited in functionality as mentioned in that comment. Feel free to modify it to your needs though
Thanks. Unfortunately I have neither programming in general nor python skills.