- 博客(9)
- 收藏
- 关注
原创 python爬虫入门2相似方法对比
import requests from urllib import request head={"User-Agent":"浏览器信息"}timeout=0.1 #接受数据的超时时间 timeout=(0.1,0.2) #0.1代表链接超时,0.2接收数据的超时时间proxies={ # 带用户名密码的代理,@符号前是用户名与密码 'http':'http://tank:123@localhost:9527', 'http':'http://localh...
2021-01-29 12:49:39
260
原创 python爬虫入门1
爬虫分类通用爬虫--搜索引擎(百度,360,搜狗) 聚焦爬虫--爬取特定领域或主题的信息 增量爬虫--只爬行新产生或者发生变化的内容 深层爬虫--爬取深层网络内容,如需要登录才能访问下载的网站(知乎、百度网盘)、受限网络信息获取爬行流程https://www.qiushibaike.com/text待抓取的url---(网页请求)-----抓回的网页数据---(数据解析)-----网页数据解析结果--(-结果存储)----数据本地存储#引入相关模块import requests.
2021-01-23 21:45:04
488
原创 python1入门
工作用编辑器:pycharm方便展示学习:Jupyter Notebook 在dos窗口安装方式:pip install jupyter 安装好以后使用方式:jupyter notebookpython --version 可以验证python安装成功与否在dos窗口编写python:先进入到python环境,python+回车 然后在编写代码例如 print("hello world")在dos窗口打开python脚本:notepad xxx.py+回车在dos窗口运行pyth...
2021-01-21 17:58:56
606
2
原创 webseo
网站有了收录才会有排名然后才能被搜索出来域名选择:首选要短、.com为主,其次.cn/.net,没有品牌就贴近行业虚拟主机服务器橘子seo工具:网址https://seo.juziseo.com,查询域名建站历史站长之家seo工具:网址http://tool.chinaz.com...
2020-10-09 21:59:54
473
原创 vue工程项目部署遇到问题总结
1.css和js引入404修改config文件里面的index.jsbuild: { // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), // Paths assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPath...
2020-09-20 15:03:31
123
原创 前端开发用到的软件工具
编辑器:sublime text3、webstrom等等标注工具:PxCookhttps://www.fancynode.com.cn/pxcook MarkManhttps://www.mockplus.cn/ http://alloyteam.github.io/gopng/切图工具:photoshop
2020-09-13 09:38:47
200
原创 js时间怎么比较大小
var dd1='2020-07-17 10:00:00';var dd2='2020-07-17 12:00:00';new Date(dd1)<=new Date(dd2)以上的比较不支持ie,因为ie不转换(-),所以解决兼容问题就是将(-)转化为(/)var dd3=dd1.replace(/-/g,'/');var dd4=dd2.replace(/-/g,'/');new Date(dd1).getTime()<=new Date(dd2) .getTime(
2020-07-17 10:23:43
741
原创 css水平垂直居中方法小总结
1.容器不管设置不设置宽高都会居中position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);2.对容器和文字都适用display:flex;justify-content:center;align-items:center;
2020-07-15 23:32:17
128
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅