# Path: wapiti.py
# def get_json(*args, **kwargs):
#     resp = get_url(*args, **kwargs)
#     return json.loads(resp.text)


from base import Input
from wapiti import get_json
from stats import dist_stats


class PageViews(Input):
    prefix = 'pv'
    def fetch(self):

# Path: wapiti.py
# def get_json(*args, **kwargs):
#     resp = get_url(*args, **kwargs)
#     return json.loads(resp.text)


# Path: inputs/grokse.py
from base import Input
from wapiti import get_json
from stats import dist_stats



class PageViews(Input):
    prefix = 'pv'
    def fetch(self):

        return get_json('http://stats.grok.se/json/en/latest90/' + self.page_title)