上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

2019年8月8日

实现爬取图片

摘要: from requests_html import HTMLSessionsession = HTMLSession()BASE_URL = 'https://www.ivsky.com'# 获取图片页码链接def get_page_url(): for i in range(1,5): # 事先知 阅读全文

posted @ 2019-08-08 19:28 michael-chang 阅读(200) 评论(0) 推荐(0)

爬虫2

摘要: request.html html的对象属性 对象方法: find search render(大头) scrolldown sleep keep_page 反扒 浏览器的交互 html.page.xxx asynic内部 写 键盘事件 阅读全文

posted @ 2019-08-08 16:12 michael-chang 阅读(145) 评论(0) 推荐(0)

2019年8月6日

爬虫 1

摘要: 1.爬虫的介绍 ​ 爬虫的比喻: ​ 互联网就像一张蜘蛛网,爬虫相当于蜘蛛,数据相当于猎物 ​ 爬虫的具体定义: ​ 模拟浏览器向后端发送请求,获取数据,解析并且获得我想要的数据,然后存储 ​ 爬虫的价值: ​ 数据的价值 流程:发送请求--获得数据--解析数据--存储数据 常用的解析模块:bs4,pyquery,... 阅读全文

posted @ 2019-08-06 20:53 michael-chang 阅读(186) 评论(0) 推荐(0)

2019年8月2日

django跨表联查传输数据到前端

摘要: 需求:通过一对多的表关联字段,拿到多的一方所有数据,再通过序列化传到前端页面! models.py class Infomation(BaseModel): title = models.CharField(max_length=64, verbose_name='资讯标题') title_photo = models.ImageField(upload_to='titl... 阅读全文

posted @ 2019-08-02 15:30 michael-chang 阅读(674) 评论(0) 推荐(0)

2019年8月1日

vue实现鼠标移入移出事件

摘要: vue鼠标划过移入移出触发函数介绍 <ul>> <li class="" v-on:mouseover="changeActive($event)" v-on:mouseout="removeActive($event)"></li> </ul> methods:{ // 鼠标移入加入class c 阅读全文

posted @ 2019-08-01 18:54 michael-chang 阅读(24792) 评论(0) 推荐(0)

2019年7月31日

pycharm意外关闭导致报错Unexpected content storage modification:

摘要: 解决方法:将c盘里相关数据删除即可! C:\Users\MJY.PyCharm2019.1\system\caches 把里面的文件全部删除! 阅读全文

posted @ 2019-07-31 10:14 michael-chang 阅读(2310) 评论(0) 推荐(0)

2019年7月30日

关于 在创建django的表时,出现的问题: TypeError: __str__ returned non-string (type int)

摘要: 原因在于,自己利用__str__方法时,返回的不是一个字符串而已。 def __str__(self): return self.id 以上是会报错的,改变方式如下: def __str__(self): return str(self.id) 希望对大家有点作用! 阅读全文

posted @ 2019-07-30 19:34 michael-chang 阅读(2820) 评论(0) 推荐(0)

2019年7月23日

关于错误:RuntimeError: Model class lufeiapi.apps.user.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS 的解决方案

摘要: from lufeiapi.apps.user.models import User # 为什么会报错 即无法使用绝对路径将上述代码改为相对路径即可!原因未知from .models import User上述的解决方案的前提是 在内部的apps.py里的设置如下所示: from django.ap 阅读全文

posted @ 2019-07-23 22:27 michael-chang 阅读(1762) 评论(0) 推荐(0)

2019年7月17日

git 使用总结

摘要: 多分支开发 重点:冲突解决、分支合并 关键在于多与人沟通! 阅读全文

posted @ 2019-07-17 18:57 michael-chang 阅读(173) 评论(0) 推荐(0)

2019年7月15日

git 的初步介绍与使用

摘要: 参考资料:https://note.youdao.com/ynoteshare1/index.html?id=1477b520800edbdb712d4fbb76ec125e&type=note 阅读全文

posted @ 2019-07-15 21:20 michael-chang 阅读(179) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

导航