Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/esteve/peerindex-python-api
A Python interface for the PeerIndex API.
https://github.com/esteve/peerindex-python-api
Last synced: about 1 month ago
JSON representation
A Python interface for the PeerIndex API.
- Host: GitHub
- URL: https://github.com/esteve/peerindex-python-api
- Owner: esteve
- Created: 2012-03-28T16:12:48.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-30T11:39:47.000Z (almost 13 years ago)
- Last Synced: 2024-10-16T14:20:04.312Z (3 months ago)
- Language: Python
- Homepage: http://www.guidovo.com
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
README
PeerIndexPy
------------------A Python interface for the PeerIndex API.
To use this you need a PeerIndex API key, which
you can get at: http://dev.peerindex.com/How to use it
------------------Download the PeerIndexPy.py file and import it in python by
```python
>>> from PeerIndexPy import PeerIndex>>> api = PeerIndex('YOUR API KEY GOES HERE')
>>> data = api.lookup_userid('THE USER ID')
```You'll have a data object like:
```python
{"name":"Simon Cast","twitter":"simoncast","slug":"simon-cast","known":1,"authority":40,"activity":46,"audience":46,"peerindex":41,"url":"http:\/\/pi.mu\/4","topics":["entrepreneurship","peer influence","product management","london","seedcamp"]}
```which you can access like:
```python
>>> data['name']
>>> u'Simon Cast'
```