七秒鱼记忆~
每天进步一点点!!!
摘要: url ='XXX' cookies ={"id":"123456"} res =requests.get(url,cookies=cookies) if res.status_code == 200: #写入文件 with open('F:\\script\\download\\test_05.z 阅读全文
posted @ 2021-06-28 17:56 fishing~ 阅读(97) 评论(0) 推荐(0)
摘要: 接口请求: import requests #上传接口的参数 files = {"projectFile": ('sub_process.json', open("F:\\上传文件\\task_01.json", 'rb'), "application/json")} #参数说明: #project 阅读全文
posted @ 2021-06-28 17:20 fishing~ 阅读(323) 评论(0) 推荐(0)
摘要: 这里主要是解决multipart/form-data这种格式的文件上传,基本现在http协议上传文件基本上都是通过这种格式上传 一、思路 一般情况下,如果我们往一个地址上传文件,则必须要登陆,登陆成功后,拿到cookies,然后在上传文件的请求携带这个cookies。 然后我们就需要通过浏览器在网站 阅读全文
posted @ 2021-06-28 15:27 fishing~ 阅读(259) 评论(0) 推荐(0)
摘要: import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from 阅读全文
posted @ 2021-06-28 14:25 fishing~ 阅读(37) 评论(0) 推荐(0)
摘要: import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from 阅读全文
posted @ 2021-06-28 14:24 fishing~ 阅读(39) 评论(0) 推荐(0)