Esempio n. 1
0
def tweets(request):
      api = api_action.get_api()
      if 'q' in request.GET.keys():
        q = request.GET['q']
      
        p1 = SearchQuery(query=q)
        p1.save()
        list1 = search_action.search(q,api)
        
        return render(request,'tweets4.html',{'list1': list1, 'q' : q})
      else:
        return render(request,'error_no_query.html',{})
Esempio n. 2
0
def tweets(request):
    api = api_action.get_api()
    if 'q' in request.GET.keys():
        q = request.GET['q']

        p1 = SearchQuery(query=q)
        p1.save()
        list1 = search_action.search(q, api)

        return render(request, 'tweets4.html', {'list1': list1, 'q': q})
    else:
        return render(request, 'error_no_query.html', {})
Esempio n. 3
0
def update(request):
        q = request.GET['q']
        api = api_action.get_api()
        list1 = search_action.search(q,api)
        return render(request,'tweets4.html',{'list1':list1,'q':q})
Esempio n. 4
0
def update(request):
    q = request.GET['q']
    api = api_action.get_api()
    list1 = search_action.search(q, api)
    return render(request, 'tweets4.html', {'list1': list1, 'q': q})