傅雪丹-第二次作业
这个作业属于哪个课程 | https://edu.cnblogs.com/campus/fzzcxy/ZhichengSoftengineeringPracticeFclass |
---|---|
这个作业要求在哪里 | https://edu.cnblogs.com/campus/fzzcxy/ZhichengSoftengineeringPracticeFclass/homework/12532 |
这个作业的目标 | 学会抓包和监控商品价格 |
Github 地址 | git@github.com:fuxuedan/two-work.git |
1.找到需要的url
右击->copy->just Url 可以复制url地址
商品信息
2.用python解析json
(1)先导入包
(2)请求响应在转换成json文件
(3)解析json,取出需要的信息
(4)输出信息和实时监控
展示监控商品价格变动
3.用git来push文件,把puputest.py上传
此步参考CSDN搜到的Git使用完成的
首先需要创建本地仓库(和github仓库名一致)我仓库名是two work
在文件夹中打开Git Bash here 用git init 初始化仓库 并连接到了仓库上传了README.md文件
同样的操作把puputest.py上传到Github
到GitHub中可以看到push成功
commit5次