网站更新内容:请访问: https://bigdata.ministep.cn/
摘要: # -*- coding: utf-8 -*- import requests import re import time #import pprint #from bs4 import BeautifulSoup from datetime import datetime ,timedelta i 阅读全文
posted @ 2021-02-24 12:15 ministep88 阅读(108) 评论(0) 推荐(0)
摘要: 处理格式如下: content = re.sub('\s+', '', str(content)).strip() content = re.sub(r'\\r\\n','',content).strip() content = re.sub(r"'',",'',content).strip() c 阅读全文
posted @ 2021-02-24 12:03 ministep88 阅读(634) 评论(0) 推荐(0)
摘要: 引用自建模块包 python小课堂15 - 史上最详细的包和模块import讲解篇 前言 在大量的代码设计中,我们不可能将所有代码都写在一个.py文件,所以有了包、模块,而为了代码可以重复利用(复用性),就有了类、函数的概念。类和函数在下次介绍。 python中的包 python中的包,对应到计算机 阅读全文
posted @ 2021-02-23 18:53 ministep88 阅读(581) 评论(0) 推荐(0)
摘要: lxml解析text类型的html 读取文本解析节点 from lxml import etree text=''' <div> <ul> <li class="item-0"><a href="link1.html">第一个</a></li> <li class="item-1"><a href= 阅读全文
posted @ 2021-02-23 11:40 ministep88 阅读(192) 评论(0) 推荐(0)
摘要: 将从浏览器上Copy来的cookie字符串转化为Scrapy能使用的Dict headers cookies 格式化 # -*- coding: utf-8 -*- class transCookie: def __init__(self, request_headers): self.reques 阅读全文
posted @ 2021-02-23 10:12 ministep88 阅读(219) 评论(0) 推荐(0)
摘要: 百度搜索框 搜索功能教程 点击体验完成后的效果 点击进入码云查看 目录 01 基本页面制作 02 下拉提示框制作 03 下拉框的显示和隐藏 04 配置本地服务环境 05 实现百度搜索智能提示功能 06 点击提示关键字,跳转到搜索页面 07 点击百度一下,跳转到搜索页面 01基本页面制作 一 、htm 阅读全文
posted @ 2021-02-21 13:01 ministep88 阅读(1154) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/4/18 16:30 # @Author : justin.郑 3907721@qq.com # @File : rest_agent.py # @Desc : import r 阅读全文
posted @ 2021-02-19 19:09 ministep88 阅读(35) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/3/27 0027 # @Author : justin.郑 3907721@qq.com # @File : date_utils.py # @Desc : 日期管理工具 im 阅读全文
posted @ 2021-02-19 19:07 ministep88 阅读(60) 评论(0) 推荐(0)
摘要: Yarn和npm命令对比 npm install yarn npm install taco --save yarn add taco npm uninstall taco --save yarn remove taco npm install taco --save-dev yarn add ta 阅读全文
posted @ 2021-02-19 18:28 ministep88 阅读(38) 评论(0) 推荐(0)
摘要: express 使用文档 使用 post 无法传递参数 req-body-empty-on-posts 选择“ X-www-form-urlencoded” 在 app.js 中使用 app.use(bodyParser.json()); app.use(bodyParser.urlencoded( 阅读全文
posted @ 2021-02-19 18:26 ministep88 阅读(34) 评论(0) 推荐(0)
网站更新内容:请访问:https://bigdata.ministep.cn/