示例#1
0
文件: views.py 项目: spsp01/tool
 def get(self, request):
     form = ExtractText()
     files = getfile()
     return render(request, self.template_name, {
         'form': form,
         'links': files
     })
示例#2
0
文件: views.py 项目: spsp01/tool
 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
     })
示例#3
0
文件: views.py 项目: spsp01/tool
    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
        })
示例#4
0
文件: views.py 项目: spsp01/tool
    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'
        })
示例#5
0
文件: views.py 项目: spsp01/tool
    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
                })
示例#6
0
文件: views.py 项目: spsp01/tool
 def get(self, request):
     form = ExtractText()
     return render(request, self.template_name, {
         'form': form,
     })