摘要: 重写DRF的to_representation和to_internal_value方法有什么用途? to_representation() 允许我们改变序列化的输出。 to_internal_value() 允许改变我们反序列化的输出。 def to_representation(self, val 阅读全文
posted @ 2021-08-10 16:12 Tank-Li 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 简介 是一个基于浏览器自动化的模块。它比requests模块的爬取效率低很多 帮我们便捷的爬取到页面中动态加载出来的数据 模拟登陆 安装: pip install selenium 下载对应的驱动程序。 http://chromedriver.storage.googleapis.com/index 阅读全文
posted @ 2021-08-10 13:49 Tank-Li 阅读(29) 评论(0) 推荐(0) 编辑