采集百度搜索相关关键词

0
一、首先看看我们要采集的是百度搜索时,自动推荐功能显示的关键词。 代码如下: import requests import json def get_sug(word): url = 'https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=%s&sugmode=2&json=1&p=3&sid=1427_21091_21673_22581&req=2&pbs=%%E5%%BF%%AB%%E6%%89%%8B&csor=2&pwd=%%E5%%BF%%AB%%E6%%89%%8B&cb=jQuery110209249 ...

Django实战项目三:文件上传与下载

0
一、环境的搭建 1.利用anaconda的conda create -n upload python=3.6创建一个虚拟环境。 2.在pycharm中新建一个django项目,并选择文件目录。 3.选择刚刚创建的upload虚拟环境。 然后点击“create”,就会开始安装django。 二、创建应用 1.在pycharm中执行"Tools-Run manage.py task" 菜单功能,在下边弹出的窗格中,执行“startapp fronts”新建一个应用。 2.将fronts添加到setting.py的INSTALLED_APPS里面 ...

google keywords

0
https://github.com/rdowns26/seo_keyword_research_tools https://github.com/EdmundMartin/google_keyword_suggest https://github.com/hitoy/yahoo-search-suggestions/blob/master/get_suggest.py bingpic https://github.com/chrislad/ImageScrappers https://github.com/renyuzhuo/Bing-today-s-image check domain: https://github.com/D4Vinci/Domain-Checker/blob/master/DomainChecker.py

域名监控

0
最开始使用pip install whois,提示Successfully installed whois-0.7,可是执行相关whois.whois("www.sohu.com")命令时,提示如下错误: AttributeError: module 'whois' has no attribute 'whois' 然后再安装pip install python-whois,然后可以用了,不过只成功了一次,又不能用了。 最后将whois-0.7,python-whois全部卸载掉,再重新安装python-whois,终于可以用了。 附最终代码,可以放到树莓派上 ...

京东python开发(三) 独立使用Django Model

0
一、Django中单独使用Models 我们之前都是将项目拉起来再使用Django Model,许多同学不知道其实django model是可以独立出来使用的,下面我们来看看如何将django model独立出来使用。 在django的项目中新建一个DB_tools的文件夹,再在文件夹中建立一个import_da.py的文件,首先加入以下代码。 代码: import sys import os script_dir = os.path.split(os.path.realpath(__file__))[0] ...

Requests模板(Get与Post)芝麻代理

0
一、这是发送手机验证码的模板: import requests import json class YunPian(object): def __init__(self, api_key): self.api_key = api_key self.single_send_url = "https://sms.yunpian.com/v2/" def send_sms(self, code, mobile): params = { "apikey": self.api_key, "mobile": mobi ...

bootswatch、wordpress及前端模板

0
1)官方文档:https://getbootstrap.com/docs/4.1/getting-started/introduction/ 2)多彩样式:https://bootswatch.com/ 3)懒人进阶,bootstrap4模版开箱即用:https://startbootstrap.com/template-categories/all/ 4)https://travelbird.nl/ 免费bootstrap模板:https://www.bootstrapzero.com/ 我就是按这个套路学的 https://templated.co/ 图片站模板: https://www.prepbootstrap.com/bootstrap-t ...

京东Python开发(二)

0
今天终于搞通了京东的API开发,记录一下备忘。 一.注册成为开发者 链接:https://dev.jd.com/ 然后在应用中心新建一个应用。 然后京东审核通过就可以了。审核通过之后,在应用信息里有一个“回调url”,这个需要你的网站通过京东审核才可以。 二、提交网站给京东审核 在京东联盟的后台(https://media.jd.com/),“推广管理”里面的“网站管理”里,新增一个网站,然后等待京东审核通过,一般3-4天就可以查看审 ...
Page: 87 of 196 1 ... 85 86 87 88 89 ... 196