上一页 1 2 3 4 5 6 7 8 ··· 53 下一页
摘要: 随便找个快手主页练习一下:查看元素 先用apipost 通过post方式测试一下接口是否能够跑通,然后点击右侧生成代码: 可以生成python curl请求接口的代码格式: 复制粘贴金编辑器里面: from bs4 import BeautifulSoup #引用BeautifulSoup库 imp 阅读全文
posted @ 2021-12-23 14:57 御世制人 阅读(1659) 评论(0) 推荐(0) 编辑
摘要: 声明:phpexcel 的坑,上传文件必须是 xls 格式的,走的是excel5的类,如果是别的格式则报错,图片处理方法不存在 xls模板内容: 以下是代码: <div class="layui-inline"> <button type="button" class="layui-btn layu 阅读全文
posted @ 2021-12-21 15:16 御世制人 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 第一种:常见的直接发起uni.request()请求 onLoad() {//页面加载时调用 this.getSwipers() }, methods: { //获取轮播图数据 getSwipers(){ uni.request({ url:"https://api-hmugo-web.itheim 阅读全文
posted @ 2021-12-20 16:55 御世制人 阅读(2513) 评论(0) 推荐(0) 编辑
摘要: 注册界面判断是否是微信浏览器打开的,如果是,跳转下面的getcode接口,获取到微信code跟回调信息,通过callback获取到微信用户信息后跳转到 /bindphone.html页面,带着微信用户信息去实现表单提交注册绑定功能 <script> if(isWeixin()) { // alert 阅读全文
posted @ 2021-12-07 09:25 御世制人 阅读(1965) 评论(0) 推荐(0) 编辑
摘要: tp6 第一步: 创建自定义指令 php think make:command Hello hello会生成一个app\command\Hello命令行指令类,我们修改内容如下:第二步,配置config/console.php文件 <?php return [ 'commands' => [ 'he 阅读全文
posted @ 2021-12-04 15:45 御世制人 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 接口直接返回的是json数据格式,那就不用去findall各种class了直接处理json数据保存即可 Request URL: https://api.bilibili.com/x/space/arc/search?mid=390461123&ps=30&tid=0&pn=17&keyword=& 阅读全文
posted @ 2021-11-23 15:05 御世制人 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: import urllib.request import re import os import urllib def get_html(url): page = urllib.request.urlopen(url) html_a = page.read() return html_a.decod 阅读全文
posted @ 2021-11-23 14:08 御世制人 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 网页network发现接口返回的是json数据,怎样通过python,通过分页方式爬取下载到excel里或者数据库里面 接口参数意义:https://stock.xueqiu.com/v5/stock/chart/kline.json?symbol=SZ159915&begin=1589340438 阅读全文
posted @ 2021-11-22 15:54 御世制人 阅读(896) 评论(0) 推荐(0) 编辑
摘要: from bs4 import BeautifulSoup #引用BeautifulSoup库 import requests #引用requests import os #os import pandas as pd import csv import codecs import re impor 阅读全文
posted @ 2021-11-22 14:57 御世制人 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 其实在当今社会,网络上充斥着大量有用的数据,我们只需要耐心的观察,再加上一些技术手段,就可以获取到大量的有价值数据。这里的“技术手段”就是网络爬虫。今天就给大家分享一篇爬虫基础知识和入门教程: 什么是爬虫?爬虫就是自动获取网页内容的程序,例如搜索引擎,Google,Baidu 等,每天都运行着庞大的 阅读全文
posted @ 2021-11-20 09:57 御世制人 阅读(3032) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 53 下一页