Skip to content

Instantly share code, notes, and snippets.

@elmissouri16
Created August 19, 2021 18:45
Show Gist options
  • Save elmissouri16/1ee6246ecc81f661c9e5e8df8e0dbd60 to your computer and use it in GitHub Desktop.
Save elmissouri16/1ee6246ecc81f661c9e5e8df8e0dbd60 to your computer and use it in GitHub Desktop.
for set_device error
from instagrapi import Client
device = {'android_version': '29',
'android_release': '10.0',
'dpi': '420dpi',
'resolution': '1080x2340',
'manufacturer': 'OnePlus',
'device': 'GM1903',
'model': 'OnePlus7',
'cpu': 'qcom',
'app_version': '194.0.0.36.172',
'version_code': '301484483'}
client = Client()
client.set_device(device)
client.login('USERNAME', 'PASSWORD')
print(client.device_settings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment