随笔分类 - 技术-爬虫
摘要: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
阅读全文
摘要:基础知识 # 1. response的属性 import requests response=requests.get("http://www.baidu.com/") print(response) # <Response [200]> print(type(response)) # <class
阅读全文
摘要:https://bot.sannysoft.com/
阅读全文
摘要:安装 # 安装selenium pip3 install selenium #安装chromedriver #0 根据电脑上浏览器的版本下载对应的zip,淘宝镜像 http://npm.taobao.org/mirrors/chromedriver/ #1 mac 1、将下载的可执行文件移到/usr
阅读全文
摘要:自动观看视频 from builtins import print import time from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait # 打开网页 browser =
阅读全文
摘要:post http://cishan.chinanpo.gov.cn/biz/ma/csmh/a/csmhaDoSort.html?aaee0102_03=&field=aaex0131&sort=desc&flag=0 def charity_organization(): """ 慈善中国-慈善
阅读全文
摘要:常用 选择器 选择器: $("input[name='newsletter']") # 选择所有的name属性等于'newsletter'的input元素 $("li[title='全屏']").click() ####CSS 选择器 基本选择器: #mostImportant {color:red
阅读全文
摘要:post发送数据时候的对照 获取值出现空的情况 (request.POST / request.body) 当request.POST没有值 需要考虑下面两个要求 1.如果请求头中的: Content-Type: application/x-www-form-urlencoded request.P
阅读全文
摘要: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
阅读全文
浙公网安备 33010602011771号