03 2021 档案

摘要:<template> <view class=""> <HeadBar title="标题" background_b="#f3212a" color="black" leftbtnclass="gc-000"></HeadBar> <web-view src="外部链接"></web-view> 阅读全文
posted @ 2021-03-27 23:22 PythonNew_Mr.Wang 阅读(433) 评论(0) 推荐(0) 编辑
摘要:class Value_A(admin.ModelAdmin): list_display = ('name',"href_requests","href_link") list_filter = ['name',] # 定义 def get_form(self, request, obj=None 阅读全文
posted @ 2021-03-27 23:06 PythonNew_Mr.Wang 阅读(688) 评论(0) 推荐(0) 编辑
摘要:# urls.py url('api/collection$', Collection.Collection.as_view()), # Collection.py def get(self, request): title = request.GET.get("name") url = reque 阅读全文
posted @ 2021-03-26 23:13 PythonNew_Mr.Wang 阅读(392) 评论(0) 推荐(0) 编辑
摘要:1:使用浏览器XPATH获取的路径:/html/body/div[6]/div[2]/div/table[2]/tbody/tr 但是用requests库爬取的时候它是空的 解答: 这是我打印出来的爬取源码与浏览器的源码做比较: 结论:在写xpath路径的时候 直接去掉tbody就可以了 : /ht 阅读全文
posted @ 2021-03-10 15:56 PythonNew_Mr.Wang 阅读(635) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示