Beispiel #1
0
def search():
    howmany = 50
    querystr = request.args.get('q', '')
    results = utils.search(querystr).limit(howmany)
    return render_template('esemplari.html',
                           title="Risultati ricerca",
                           items=results.all())
Beispiel #2
0
def search():
    howmany = 50
    querystr = request.args.get('q', '')
    results = utils.search(querystr).limit(howmany)
    return render_template('esemplari.html',
                           title="Risultati ricerca",
                           items=results.all())
def search():
    if request.method == "GET":
        try:
            q = request.args.get('q')
        except KeyError:
            return []
        actors, movies = utils.search(q)
        actors.update(movies)
        return jsonify(actors)
    else:
        return []
def searchht():
    try:
        populate = [
            'apifirst',
            'openbanking',
            'devops',
            'cloudfirst',
            'microservices ',
            'apigateway',
            'oauth',
            'swagger',
            'raml',
            'openapis',
        ]
        for hashtag in populate:
            search(hashtag)

        return jsonify({'status': 'success'})
    except:
        e = sys.exc_info()[0]
        return jsonify({'status': '{}'.format(e)})
Beispiel #5
0
def os_search():
    howmany = 20

    querystr = request.args.get('q', '')
    results = utils.search(querystr).limit(howmany)
    return results_rss(results.all())
Beispiel #6
0
def os_search():
    howmany = 20

    querystr = request.args.get('q', '')
    results = utils.search(querystr).limit(howmany)
    return results_rss(results.all())