Skip to content

Commit

Permalink
Trim readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Jan 13, 2017
1 parent 5f97ec3 commit 1aecfb3
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.

0 comments on commit 1aecfb3

Please sign in to comment.