diff --git a/README.md b/README.md index a26b8fdc..bae1bcfb 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ I wrote this to access Instagram's API when they clamped down on developer acces Problems? Please check the [FAQ](FAQ.md) first. +## Documentation + +Documentation is available at http://instagram-private-api.readthedocs.io/en/latest/ + ## Install No 3rd-party libraries required. Just drop one of or both folders [``instagram_private_api/``](instagram_private_api/) and [``instagram_web_api/``](instagram_web_api/) into your project path or pip install with: @@ -77,30 +81,6 @@ You are advised to persist/cache the auth cookie details to avoid logging in eve The saved auth cookie can be reused for up to **90 days**. -### Miscellaneous Notes -Cookies can be shared between both the web and private (app) client, as long as you modify the cookie domain values accordingly. - -Example: Web client using app cookie - -```python -from instagram_web_api import Client - -cached_app_cookie = '...' -webclient = Client( - cookie=cached_app_cookie.replace('i.instagram.com', 'www.instagram.com')) -``` - -Example: App client using web cookie - -```python -from instagram_private_api import Client - -cached_web_cookie = '...' -appclient = Client( - user_name, password, - cookie=cached_web_cookie.replace('www.instagram.com', 'i.instagram.com')) -``` - ## Legal Disclaimer: This is not affliated, endorsed or certified by Instagram. This is an independent and unofficial API. Strictly **not for spam**. Use at your own risk.