Skip to content

michaeljoseph/authoritarian

Repository files navigation

authoritarian

authoritarian

Python API for the AuthorityLabs Partner API.

Build Status

This is a light requests-based wrapper over the API that provides the following features:

Installation

pip install authoritarian

Usage

import authoritarian
api_key = 'da39a3ee5e6b4b0d3255'
account_id = '123'
authoritarian.initialise(api_key, account_id)

# returns https://gist.github.com/1201594#file_al_partner_api_accounts.json
status_json = authoritarian.account_status()

keyword = 'your country needs you'
engine = 'google'
locale = 'en-us'
success = authoritarian.search(keyword, engine, locale)
  
success = authoritarian.search(keyword, engine, locale, immediate=True)

rank_date = '2012-07-07'
# returns https://gist.github.com/1201614
response_json = authoritarian.results(keyword, engine, locale, rank_date)

About

Python API for the AuthorityLabs Partner API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages