Skip to content

Commit 720f420

Browse files
committed
PEP 8 + pip install
py1) Increase PEP 8 style 2) Change InstagramAPI\__init__.py 3) Move all from InstagramAPI\__init__.py to InstagramAPI\InstagramAPI.py 4) Now you can install using pip: `py -m install InstagramAPI` or `pip install InstagramAPI`
1 parent c19eaab commit 720f420

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.pyc
2+
InstagramApi.egg-info/
3+
dist/

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ The new fake Instagram account with an unverifird phone number after ~ 1-24 hour
4242
### Pip Installation Instructions
4343
1. Install via pip
4444

45-
`pip install -e git+https://github.com/LevPasha/Instagram-API-python.git#egg=InstagramAPI`
45+
`pip install InstagramApi`
4646

47+
or
48+
49+
`py -m install InstagramApi`
4750

4851
2. Import InstagramAPI from a python command prompt
4952

examples/user_followers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from InstagramAPI import InstagramAPI
77

8-
api = InstagramAPI("pashatest", "Qq12344321")
8+
api = InstagramAPI("login", "pwd")
99
api.login() # login
1010
api.tagFeed("cat") # get media list by tag #cat
1111
media_id = api.LastJson # last response JSON

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

3-
setup(name='instagram-api',
4-
version='0.1.1',
3+
setup(name='InstagramAPI',
4+
version='1.0',
55
description='Unofficial instagram API, give you access to ALL instagram features (like, follow, upload photo and video and etc)! Write on python.',
66
url='https://github.com/LevPasha/Instagram-API-python/',
77
author='Pasha Lev',

0 commit comments

Comments
 (0)