Skip to content

soundstripe/jamberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jamberry

This is an unlikely library to access your Jamberry consultant workstation information in Python. Some of the information is scraped using BeautifulSoup (via mechanicalsoup), and some is pulled from CSV/JSON reports.

Installation

First method -- quick/easy

pip install git+git://github.com/soundstripe/jamberry.git

Second method -- useful if you want to contribute or extend this work

git clone --depth=1 https://github.com/soundstripe/jamberry.git
cd jamberry
python setup.py develop

Usage

Example: count the number of each consultant type in your downline

from collections import Counter
import jamberry

ws = jamberry.JamberryWorkstation('username', 'password')
consultant_types = Counter()
for consultant, activity in ws.downline_consultants():
    consultant_types['consultant.consultant_type] += 1
print(consultant_types)

Output:

Counter({'Fast Start': 10, 'Hobbyist': 180, 'Professional Consultant': 96})

Configuration

If you do not provide a username and password when creating a JamberryWorkstation, the object will look for a file called jamberry.ini in your current working directory. Example:

[credentials]
username = AJamLady@morenailwraps.com
password = hunter2

About

Python library for access Jamberry consultant workstation information

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages