Пример #1
0
def get_all_keywords_dashboard():
    results = None
    if request.method == "POST":
        results = post_request_api("/api/keywords", request.form)
    else:
        results = get_request_api("/api/keywords")
    return render_template("keywords/keywords_all.jinja2", result=results["results"])
Пример #2
0
def dashboard_audit_website_full_score_get_id(id):
    result = get_request_api('/api/audit/website/' + id)
    print(result)
    return render_template("audit/website_full/website_full.jinja2",
                           url=result["url"],
                           id=id,
                           result=result["results"])
Пример #3
0
def rank_get():
    results = None
    if request.method == "POST":
        results = post_request_api("/api/rank", request.form)
    else:
        results = get_request_api("/api/rank")
    return render_template("serp/rank.jinja2",
                           result=results["results"],
                           error=results["error"])
Пример #4
0
def graphs_get_by_id(id):
    results = get_request_api("/api/graphs/" + id)
    return render_template("graphs/bokeh.jinja2",
                           id=id,
                           script=results["script"],
                           div=results["div"],
                           domain=results["domain"],
                           template=results["template"],
                           time=results["time"])
Пример #5
0
def graphs_get():
    results = None
    if request.method == "POST":
        results = post_request_api("/api/graphs", request.form)
    else:
        results = get_request_api("/api/graphs")
    return render_template("graphs/graphs_all.jinja2",
                           result=results["results"],
                           error=None)
Пример #6
0
def dashboard_audit_lighthouse_score_get_id(id):
    result = get_request_api('/api/audit/lighthouse/score/' + id)
    return render_template(
        "audit/lighthouse/lighthouse.jinja2",
        url=result["url"],
        id=result["id"],
        result=result["results"],
        seo_list=result["table"]["seo_list"],
        accessibility_list=result["table"]["accessibility_list"],
        pwa_list=result["table"]["pwa_list"],
        best_list=result["table"]["best_list"],
        performance_list=result["table"]["performance_list"],
        labels=result["table"]["labels"])
Пример #7
0
def dashboard_audit_website():
    result = get_request_api('/api/audit/website')
    return render_template("audit/website_full/website_full_all.jinja2",
                           result=result["results"])
Пример #8
0
def dashboard_audit_lighthouse_score_all():
    result = get_request_api('/api/audit/lighthouse/score/all')
    return result
Пример #9
0
def dashboard_audit_lighthouse_score():

    result = get_request_api('/api/audit/lighthouse/score')
    return render_template("audit/lighthouse/lighthouse_all.jinja2",
                           result=result["results"],
                           error=result["google_error"])
Пример #10
0
def get_all_keywords_by_id(id):
    results = get_request_api("/api/keywords/" + id)
    monogram = results["results"]["Monogram"]
    bigram = results["results"]["Bigram"]
    trigram = results["results"]["Trigram"]
    return render_template("keywords/keywords.jinja2",id=id, query=results["query"],monogram=monogram, bigram=bigram, trigram=trigram)