Questions tagged [instaloader]
82 questions
4
votes
2 answers
Download only instagram videos with instaloader
This code is working for downloading all photos and videos
from instaloader import Instaloader, Profile
L = Instaloader()
PROFILE = "username"
profile = Profile.from_username(L.context, PROFILE)
posts_sorted_by_likes = sorted(profile.get_posts(),…

Rasedul Islam
- 77
- 1
- 9
4
votes
0 answers
Instagram responded with HTTP error "429 - Too Many Requests"
I am not sure how to fix the following piece of code to overcome the rate limits. Also, I am not sure why it stops at 10 posts even though I set the max_count to 100.
code:
import instaloader
loader= instaloader.Instaloader(download_comments=True,
…

Mona Jalal
- 34,860
- 64
- 239
- 408
3
votes
2 answers
How to login successfully in Instaloader in python?
I am trying to scrape data from Instagram using the 'instaloader' python modules. When using this code:
import instaloader
L = instaloader.Instaloader()
L.login(USERNAME, PASSWORD)
The code throws the following error:
ConnectionException: Login…

shahzaib.hayan
- 41
- 1
- 2
3
votes
0 answers
How to get the list of followers from an Instagram account without getting banned?
I am trying to scrape all the followers of some particular Instagram accounts. I am using Python 3.8.3 and the latest version of Instaloader library. The code I have written is given below:
# Import the required libraries:
import instaloader
import…

Shridhar Bhat
- 31
- 3
2
votes
1 answer
InstaLoader - login from a file or using a password
Can it be done like this:
If load_session_from_file fails, for example because the password has changed, is there any way to catch the error and for example authorize via username and password?
Like something like this, but it immediately triggers a…

nnekkitt
- 76
- 7
2
votes
1 answer
How to add custom delay to instaloader
can someone show me how to add a time delay to instaloader.py a code snippet of a working time delay inside the instaloadercontext.py i just want to add a custom delay once a return limit of 60 is reached to do_sleep for an hour before the next…

Romell Hueck
- 21
- 2
1
vote
1 answer
Downloading A Picture of an individual Instagram post with with Instaloader and Python
Using Python and the Instaloader package I am able to to download A profile Picture via this code
import instaloader
dp = instaloader.Instaloader()
dp.download_profile(profile_name, profile_pic_only = True)
All I have to do is…

69JonDoe69
- 41
- 1
- 6
1
vote
1 answer
python tkinter goes not responing
I just made a simple project with Tkinter GUI, but when I launch it and enter username, its window stops responding 'til the requests and instaloader processes are done, then it will be ok. Can I make a 'please wait' thing to avoid not responding?…

sina janiloran
- 37
- 4
1
vote
0 answers
Avoid Instagram suspecting if trying to connect with Instaloader Python API, how?
I am using the Instaloader Python API for a project. Every time I successfully log-in I get a notification on my Instagram app that someone tried to connect to my account. Everything is ok, I can simply mark the option that was me to connect, but I…

Gianluca Bianco
- 656
- 2
- 11
1
vote
0 answers
Which code i can add to take data for saved posts using instaloader? Python
Which code i can add to this code to get information about data to each saved post using instalouder? Please help!
import instaloader
def save_insta_collection():
username = 'cursach2022'
loader =…

Маша Терновская
- 11
- 1
1
vote
1 answer
Instaloader, get n most recent posts
Currently, the below code returns all the posts from the profile:
profilename = 'oneplus'
loader = instaloader.Instaloader()
profile = Profile.from_username(loader.context,profilename)
posts = profile.get_posts()
If the profile has, say 3000…

Badri Narayanan S
- 11
- 2
1
vote
0 answers
Sending request to instagram with Authorization Token/Cookie from Postman
I want to get some story datas. After a few search on internet I found an endpoint like that:
https://i.instagram.com/api/v1/feed/reels_media/?reel_ids=
But when I send a request to the endpoint I get an response like that:
{"message":"useragent…

akasaa
- 1,282
- 4
- 13
- 33
1
vote
0 answers
instaloader.exceptions.QueryReturnedNotFoundException: 404 Not Found
I will download photos of hashtags on instagram with "instaloader". But I am encountering such an error. Can you help me?

Hatice Özdemir
- 11
- 2
1
vote
0 answers
Is there an Instaloader function to download a limited number of posts from a GraphSidecar?
After spending the better half of 2 hours trying to get my code to download a certain number of posts from a Sidecar post using the Instaloader module, I can't seem to find a good solution.
I have come up with a needlessly complex way to do this,…

AlanCooper
- 21
- 2
1
vote
1 answer
2FA failing in Instaloader
Trying to login to Instagram using Instaloader,
L = ig.Instaloader()
L.login(user, password)
L.two_factor_login(11111)
raises the following error
raise TwoFactorAuthRequiredException("Login error: two-factor authentication…

Jithin Johnson
- 352
- 1
- 10