Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start using? #3

Closed
paradox70 opened this issue Sep 30, 2020 · 5 comments
Closed

How to start using? #3

paradox70 opened this issue Sep 30, 2020 · 5 comments

Comments

@paradox70
Copy link

paradox70 commented Sep 30, 2020

Please add an example to show how to start and use this library.
How to login and save cookies to prevent relogin?
Thanks for this great warper.

@paradox70 paradox70 changed the title How to start? How to start using? Sep 30, 2020
@adw0rd
Copy link
Contributor

adw0rd commented Oct 1, 2020

cl = Client(settings)
# cl.set_proxy("socks5://127.0.0.1:30235")
cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD)

user_id = cl.user_id_from_username("adw0rd")
medias = cl.user_medias(user_id, 20)

There are many examples in tests https://github.com/adw0rd/instagrapi/blob/master/tests.py
In the near future I will add README

@adw0rd
Copy link
Contributor

adw0rd commented Oct 1, 2020

Cookie are stored as part of settings and specified next: https://github.com/adw0rd/instagrapi/blob/758c89bf8b85fe2a91ba40530349007d2d2760e1/tests.py#L39

@adw0rd
Copy link
Contributor

adw0rd commented Oct 1, 2020

cl = Client()
cl.login(username, password)
print(cl.get_settings())

@paradox70
Copy link
Author

Thank for you reply,
I started using this library and I'm sure this is one the best one.
I will contribute to this project.

@adw0rd
Copy link
Contributor

adw0rd commented Oct 18, 2020

@paradox70 added more examples https://github.com/adw0rd/instagrapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants