上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
2020年9月17日
摘要: python文件进行exe打包 安装pyinstaller 准备一个图片,作为exe的图标:b.ico 注意图片格式是ico的,大小为32*32 把00.py和b.ico放到一个目录里面 把cmd的当前目录切换到那个目录 然后执行命令行:pyinstaller -F -i b.ico 00.py 目 阅读全文
posted @ 2020-09-17 14:08 My_serendipity 阅读(118) 评论(0) 推荐(0) 编辑
摘要: selenium自动登录12306 import requests from hashlib import md5 class Chaojiying_Client(object): def __init__(self, username, password, soft_id): self.usern 阅读全文
posted @ 2020-09-17 13:41 My_serendipity 阅读(170) 评论(0) 推荐(0) 编辑
2020年9月16日
摘要: selenium库登陆 from selenium import webdriver from time import sleep bro = webdriver.Chrome(executable_path = './chromedriver') bro.get('https://qzone.qq 阅读全文
posted @ 2020-09-16 21:57 My_serendipity 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 爬虫 selenium selenium是一个基于浏览器自动化的模块,可以用于12306抢票 使用这个库需要先下载一个浏览器驱动程序 //获取动态加载的数据 from selenium import webdriver from lxml import etree from time import 阅读全文
posted @ 2020-09-16 21:38 My_serendipity 阅读(86) 评论(0) 推荐(0) 编辑
2020年9月15日
摘要: 爬取网络小说标题及内容 标题存在一个a标签 import requests from bs4 import BeautifulSoup headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/53 阅读全文
posted @ 2020-09-15 07:50 My_serendipity 阅读(269) 评论(0) 推荐(0) 编辑
2020年9月14日
摘要: 爬虫爬取网页图片(分页) 不分页 源码: import requests import re url = 'https://www.qiushibaike.com/imgrank/' headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Wi 阅读全文
posted @ 2020-09-14 23:03 My_serendipity 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 爬虫学习 小案例 简单网页采集器 首先明确,查询一个内容 https://www.baidu.com/s?wd=serendipity&rsv_spt=1&rsv_iqid=0x8cf6b44a0002b0ad&issp=1&f=8&rsv_bp=1&rsv_idx=2&ie=utf-8&tn=92 阅读全文
posted @ 2020-09-14 20:01 My_serendipity 阅读(129) 评论(0) 推荐(0) 编辑
2020年9月13日
摘要: ThinkPHP6学习 传参 ThinkPHP直接return 就可以输出 关于数据库连接查询这块, 首先, 直接在 配置 然后 public function index() { $res = \think\facade\Dbtable('users')->select(); return $re 阅读全文
posted @ 2020-09-13 18:01 My_serendipity 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Thinkphp6安装+xampp 原来安装过一次 装到xampp的htdocs目录下 速度慢,用镜像 两个命令 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ composer crea 阅读全文
posted @ 2020-09-13 13:03 My_serendipity 阅读(186) 评论(0) 推荐(0) 编辑
2020年9月12日
摘要: 微信小程序前后端数据交互(前端请求数据库数据) php文件运行在浏览器上就可以把数据库上的数据显示在浏览器上, 微信小程序和浏览器都相当于客户端,所以只要把微信小程序请求的那个链接改成php文件的url就可以 //这里开发文档上有 onLoad: function (options) { wx.re 阅读全文
posted @ 2020-09-12 22:52 My_serendipity 阅读(11231) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页