随笔分类 -  技术-爬虫

摘要:from builtins import input,open,print import requests from bs4 import BeautifulSoup headers={ 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) A 阅读全文
posted @ 2021-08-29 18:57 该显示昵称已被使用了 阅读(62) 评论(0) 推荐(0)
摘要:基础知识 # 1. response的属性 import requests response=requests.get("http://www.baidu.com/") print(response) # <Response [200]> print(type(response)) # <class 阅读全文
posted @ 2021-08-03 11:01 该显示昵称已被使用了 阅读(39) 评论(0) 推荐(0)
摘要:https://bot.sannysoft.com/ 阅读全文
posted @ 2021-02-27 09:56 该显示昵称已被使用了 阅读(238) 评论(0) 推荐(0)
摘要:安装 # 安装selenium pip3 install selenium #安装chromedriver #0 根据电脑上浏览器的版本下载对应的zip,淘宝镜像 http://npm.taobao.org/mirrors/chromedriver/ #1 mac 1、将下载的可执行文件移到/usr 阅读全文
posted @ 2021-02-21 14:16 该显示昵称已被使用了 阅读(80) 评论(0) 推荐(0)
摘要:自动观看视频 from builtins import print import time from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait # 打开网页 browser = 阅读全文
posted @ 2021-02-21 13:55 该显示昵称已被使用了 阅读(72) 评论(0) 推荐(0)
摘要:post http://cishan.chinanpo.gov.cn/biz/ma/csmh/a/csmhaDoSort.html?aaee0102_03=&field=aaex0131&sort=desc&flag=0 def charity_organization(): """ 慈善中国-慈善 阅读全文
posted @ 2020-12-19 19:05 该显示昵称已被使用了 阅读(136) 评论(0) 推荐(0)
摘要:常用 选择器 选择器: $("input[name='newsletter']") # 选择所有的name属性等于'newsletter'的input元素 $("li[title='全屏']").click() ####CSS 选择器 基本选择器: #mostImportant {color:red 阅读全文
posted @ 2020-09-13 16:45 该显示昵称已被使用了 阅读(302) 评论(0) 推荐(0)
摘要:post发送数据时候的对照 获取值出现空的情况 (request.POST / request.body) 当request.POST没有值 需要考虑下面两个要求 1.如果请求头中的: Content-Type: application/x-www-form-urlencoded request.P 阅读全文
posted @ 2020-07-20 14:06 该显示昵称已被使用了 阅读(282) 评论(0) 推荐(0)
摘要:get post # 1 https://restapi.amap.com/v3/geocode/geo?address=北京市朝阳区阜通东大街6号&output=XML&key=<用户的key> https://lbs.amap.com/api/webservice/guide/api/geore 阅读全文
posted @ 2020-07-08 11:30 该显示昵称已被使用了 阅读(534) 评论(0) 推荐(0)