# 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


class GoogleNews(Input):
    prefix = 'gn'

    def fetch(self):

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


# Path: inputs/google.py
from base import Input
from wapiti import get_json



class GoogleNews(Input):
    prefix = 'gn'

    def fetch(self):

        return get_json('http://ajax.googleapis.com/ajax/services/search/news?v=1.0&q=' + self.page_title)