Skip to content

pandiawan/Instagram-Token-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram Token Generator

Instagram bearer or cookies generator

Requirements

  • Python 3.8+

Configuration

  • Install requirements
$ pip install -r requirements.txt
  • Copy config.py.example to config.py
$ cp config.py.example config.py

Example

Bearer Version

from instagram import InstagramLogin

username = 'xxxxxxx'
password = 'xxxxxxx'

ig = InstagramLogin()
response, bearer = ig.generate_bearer(username, password)
if "logged_in_user" in response:
    print(bearer)
else:
    print("Error login `{}` with error: `{}`".format(username, response['message']))

Cookie Version

from instagram import InstagramLogin

username = 'xxxxxxx'
password = 'xxxxxxx'

ig = InstagramLogin()
response, cookies = ig.generate_cookie(username, password)
if "logged_in_user" in response:
    print(cookies)
else:
    print("Error login `{}` with error: `{}`".format(username, response['message']))

About

Instagram bearer and cookies generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages