Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fr4ncistaylor/instaprofile
Get instagram profile information.
https://github.com/fr4ncistaylor/instaprofile
Last synced: 6 days ago
JSON representation
Get instagram profile information.
- Host: GitHub
- URL: https://github.com/fr4ncistaylor/instaprofile
- Owner: Fr4ncisTaylor
- License: apache-2.0
- Created: 2020-10-27T07:26:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-31T06:21:07.000Z (about 4 years ago)
- Last Synced: 2024-10-29T06:57:29.759Z (18 days ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
InstaProfile
Version: 1.0.5
* * *
## Install```pip install instaprofile```
* * *
## Check the version```python
import insta_profileprint("Author:", insta_profile.__author__)
print("Version:", insta_profile.__versio__)
```* * *
## Basic usage```python
from insta_profile import profileprofile = Profile("Username")
```* * *
## profile.on_dict() - (On Dictionary)* Simple:
```python
from insta_profile import profile
from pprint import pprintprofile = Profile("FrancisTaylor.py").on_dict()
pprint(profile)>>>
{'bio': 'a python programmer, musician and artist 😜♨️🎶',
'followers': '431 followed by',
'following': '558 following',
'name': 'Francis Taylor',
'picture': 'https://bibliogram.pussthecat.org/imageproxy?userID=7695255712&url=https%3A%2F%2Fscontent-frx5-1.cdninstagram.com%2Fv%2Ft51.2885-19%2Fs150x150%2F118779313_800640644085014_1604849649686799309_n.jpg%3F_nc_ht%3Dscontent-frx5-1.cdninstagram.com%26_nc_ohc%3DZmyJ4Dl_iW4AX9EWzHA%26oh%3D16ebb0fb414eb5ea3e4c47e8ccbf5c39%26oe%3D5FBFCBAB',
'posts': '340 posts',
'username': '@francistaylor.py',
'website': 'https://t.me/SrTaylor'}
```* Dumps Support:
```python
from insta_profile import profile
from pprint import pprintprofile = Profile("FrancisTaylor.py").on_dict(dumps=True, indent=4) #indent by pattern 4, not required
pprint(profile)>>>
('{\n'
' "posts": "340 posts",\n'
' "bio": "a python programmer, musician and artist '
'\\ud83d\\ude1c\\u2668\\ufe0f\\ud83c\\udfb6",\n'
' "website": "https://t.me/SrTaylor",\n'
' "name": "Francis Taylor",\n'
' "username": "@francistaylor.py",\n'
' "followers": "431 followed by",\n'
' "following": "558 following",\n'
' "picture": '
'"https://bibliogram.pussthecat.org/imageproxy?userID=7695255712&url=https%3A%2F%2Fscontent-frx5-1.cdninstagram.com%2Fv%2Ft51.2885-19%2Fs150x150%2F118779313_800640644085014_1604849649686799309_n.jpg%3F_nc_ht%3Dscontent-frx5-1.cdninstagram.com%26_nc_ohc%3DZmyJ4Dl_iW4AX9EWzHA%26oh%3D16ebb0fb414eb5ea3e4c47e8ccbf5c39%26oe%3D5FBFCBAB"\n'
'}')
```
* * *
## profile.on_obj() - (On Object)```python
from insta_profile import profile
from pprint import pprintprofile = Profile("FrancisTaylor.py").on_obj()
print("Name:", profile.name)
print("Username:", profile.username)
print("Website:", profile.website)
print("Bio:", profile.bio)
print("Posts:", profile.posts)
print("Followers:", profile.followers)
print("Following:", profile.following)
print("Picture:", profile.picture)
```
```
>>>
Name: Francis Taylor
Username: @francistaylor.py
Website: https://t.me/SrTaylor
Bio: a python programmer, musician and artist 😜♨️🎶
Posts: 340 posts
Followers: 431 followed by
Following: 558 following
Picture: https://bibliogram.pussthecat.org/imageproxy?userID=7695255712&url=https%3A%2F%2Fscontent-frx5-1.cdninstagram.com%2Fv%2Ft51.2885-19%2Fs150x150%2F118779313_800640644085014_1604849649686799309_n.jpg%3F_nc_ht%3Dscontent-frx5-1.cdninstagram.com%26_nc_ohc%3DZmyJ4Dl_iW4AX9EWzHA%26oh%3D16ebb0fb414eb5ea3e4c47e8ccbf5c39%26oe%3D5FBFCBAB
```