上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: # -*- coding:utf8 -*-​'''- 多任务异步协程【asyncio】 - 环境安装 pip install asyncio​ - 特殊函数 - 如果一个函数的定义被asyncio关键字修饰,则该函数就编程了一个特殊的函数 - 特殊之处: - 该函数调用后的函数的内部语句不会被【立即 阅读全文
posted @ 2021-05-11 22:48 mjth 阅读(259) 评论(0) 推荐(0)
摘要: import scrapy#####################################多页数据拿取​class XihSpider(scrapy.Spider): name = 'xih' # allowed_domains = ['www.xxx.com'] start_urls = 阅读全文
posted @ 2021-04-24 22:25 mjth 阅读(158) 评论(0) 推荐(0)
摘要: import reg='jQuery112409728083357185207_1619268467001({"rc":0,"rt":11,"svr":182993152,"lt":1,"full":1,"data":{"total":1,"diff":[{"f1":2,"f2":3159,"f3" 阅读全文
posted @ 2021-04-24 22:18 mjth 阅读(81) 评论(0) 推荐(0)
摘要: from urllib import requestimport urllib.requestimport jsonimport re,uuidfrom lxml import etreeclass peihuaImg(object): def __init__(self): super(peihu 阅读全文
posted @ 2021-04-24 17:19 mjth 阅读(211) 评论(0) 推荐(0)
摘要: 安装:pip install scrapy 创建一个工程 : scrapy startproject xxPro cd xxPro 在spiders中创建一个爬虫文件 -- scrapy genspider spiderName www.xxx.com 执行工程: scrapy crawl spid 阅读全文
posted @ 2021-04-24 14:34 mjth 阅读(439) 评论(0) 推荐(0)
摘要: from selenium.webdriver import Chrome, ActionChainsfrom selenium.webdriver import Chromefrom selenium.webdriver.common.keys import Keys#显示等待import req 阅读全文
posted @ 2021-04-19 10:33 mjth 阅读(228) 评论(0) 推荐(0)
摘要: from selenium.webdriver import Chrome, ActionChainsfrom selenium.webdriver import Chromefrom selenium.webdriver.common.keys import Keys#显示等待import req 阅读全文
posted @ 2021-04-19 10:14 mjth 阅读(147) 评论(0) 推荐(0)
摘要: from selenium.webdriver import Chromefrom selenium.webdriver.common.keys import Keys#显示等待from selenium.webdriver.support.wait import WebDriverWaitfrom 阅读全文
posted @ 2021-04-17 22:43 mjth 阅读(443) 评论(0) 推荐(0)
摘要: from selenium.webdriver import Chromefrom selenium.webdriver.common.keys import Keysfrom time import sleep# web=Chrome()# web.maximize_window()# web.g 阅读全文
posted @ 2021-04-17 22:41 mjth 阅读(115) 评论(0) 推荐(0)
摘要: import requests# a=input("aiqnf")# url = f'https://www.baidu.com/s?wd={a}'# headers = {# 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleW 阅读全文
posted @ 2021-04-16 13:22 mjth 阅读(213) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页