Beispiel #1
0
def google_text_crawler():
    keyword = request.args.get('keyword')
    data = crawler.crawl_google_text(keyword)
    return formatSuccess(data)
Beispiel #2
0
def content_crawler():
    url = request.args.get('url')
    data = crawler.crawl_content(url)
    return formatSuccess(data)
Beispiel #3
0
def link_crawler():
    url = request.args.get('url')
    data = crawler.crawl_links(url)
    return formatSuccess(data)
Beispiel #4
0
def keyword_crawler():
    url = request.args.get('url')
    keyword = request.args.get('keyword')
    data = crawler.crawl_keywords(url, keyword)
    return formatSuccess(data)
Beispiel #5
0
def text_crawler():
    url = request.args.get('url')
    data = crawler.crawl_text(url)
    return formatSuccess(data)
def get_election_info():
    data = google.get_election_info()
    return formatSuccess(data)
def get_representative_info():
    address = request.args.get('address')

    data = google.get_representative_info(address)
    return formatSuccess(data)
def get_voter_info():
    address = request.args.get('address')
    electionId = request.args.get('electionId')

    data = google.get_voter_info(address, electionId)
    return formatSuccess(data)
def init():
    return formatSuccess()