Python
COMEO
这个作者很懒,什么都没留下…
展开
-
requests + asyncio 异步爬虫
Time: 2020-09-09Author: dsyimport requestsimport osimport asyncioasync def asyncget(url,headers): return requests.get(url,headers=headers,verify=False)async def download(url,headers,fileDir,filename=None): if filename == None: fi..原创 2020-09-09 20:12:24 · 477 阅读 · 1 评论 -
`selenium` 自定义浏览器路径和驱动路径
Time: 2020-07-26Author: dsyfrom selenium import webdriverfrom selenium.webdriver.chrome.options import Optionsimport timeimport randomoptions = Options()options.binary_location = "./chrome/chrome.exe"options.add_argument('–-incognito')options.add原创 2020-07-26 14:48:22 · 4678 阅读 · 0 评论 -
使用Python爬取YY小视频
Time: 2020-07-25 Author: dsyimport threadingclass ShortVideoDownload(threading.Thread): def __init__(self,downloadurl,downloadDir,filename): threading.Thread.__init__(self) self.downloadurl = downloadurl self原创 2020-07-25 19:55:32 · 250 阅读 · 0 评论