def post(self, request): form = ExtractText(request.POST) if form.is_valid(): extractform = form.cleaned_data['urlb'] links = getgooglelinks(extractform) return render(request, self.template_name, { 'form': form, 'links': links })
def post(self, request): form = ExtractText(request.POST) if form.is_valid(): extractform = form.cleaned_data['urlb'] keywordspair = senutourl(extractform) return render(request, self.template_name, { 'form': form, 'keywordspair': keywordspair })
def post(self, request): form = ExtractText(request.POST) if form.is_valid(): extractform = form.cleaned_data['urlb'] startsf(extractform) return render(request, self.template_name, { 'form': form, 'links': 'OK' })
def get(self, request): form = ExtractText() files = getfile() return render(request, self.template_name, { 'form': form, 'links': files })
def post(self, request): form = ExtractText(request.POST) if form.is_valid(): domain = form.cleaned_data['urlb'] response = getapi(domain, 'weekly', 'domain_seasonality') information = getapi(domain, 'weekly', 0) domain_competitors = getapi(domain, 'weekly', 'domain_competitors') phrases = getapi(domain, 'weekly', 'domain_keywords_top') return render( request, self.template_name, { 'form': form, 'content': response, 'information': information, 'domain_competitors': domain_competitors, 'phrases': phrases })
def get(self, request): form = ExtractText() return render(request, self.template_name, { 'form': form, })