Closed ahmedfamhy3 closed 1 year ago
Cannot reproduce
instagrapi.exceptions.ClientError: Please wait a few minutes before you try again.
Instagram does not like that your account or IP address is very active, asks you to wait, I usually sleep from 30 minutes, if it repeats, then I sleep more
To solve this problem, I bought 5000 proxies and thousands of accounts, or use https://lamadava.com/ or https://datalama.io/ to get data, it will be much cheaper
I used cloudflare WARP+
Traceback (most recent call last):
File "c:\Users\Ahmed\Desktop\New\downloaders\instagram.py", line 15, in <module>
url=cl.media_info(d)
^^^^^^^^^^^^^^^^
File "C:\Users\Ahmed\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\media.py", line 269, in media_info
media = self.media_info_v1(media_pk)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ahmed\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\media.py", line 237, in media_info_v1
return extract_media_v1(result["items"].pop())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ahmed\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\extractors.py", line 60, in extract_media_v1
media["user"] = extract_user_short(media.get("user"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ahmed\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\extractors.py", line 193, in extract_user_short
return UserShort(**data)
^^^^^^^^^^^^^^^^^
File "C:\Users\Ahmed\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\main.py", line 150, in init
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 2 validation errors for UserShort
pk
Input should be a valid string [type=string_type, input_value=8530598273, input_type=int]
For further information visit https://errors.pydantic.dev/2.0.1/v/string_type
profile_pic_url_hd
Field required [type=missing, input_value={'has_anonymous_profile_p...y_downloads_enabled': 0}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.0.1/v/missing
pip install -U instagrapi
and try again
It works, thanks
Describe the bug A error happens when trying to get media_info() even if logged in, the media i'm trying to get is public
To Reproduce
Traceback
Expected behavior It should have returned the media info