摘要: # -*- coding:utf-8 -*- # 字体文件处理网站: https://font.qqe2.com/index-en.html """ 任务: 先处理字体文件 从他的请求当中获取到当前请求附带的字体文件 爬虫每次运行,获取的数据都是最新的--获取最新的请求--获取最新的字体文件 固定的 阅读全文
posted @ 2024-06-07 16:44 下雨天的眼睛 阅读(14) 评论(0) 推荐(0) 编辑
摘要: import requests import pymongo from lxml import etree class Houst(object): def __init__(self): self.url="https://cs.lianjia.com/ershoufang/" self.head 阅读全文
posted @ 2024-05-29 15:02 下雨天的眼睛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import requests from lxml import etree class Houst(object): def __init__(self): self.url = "https://yibin.lianjia.com/ershoufang/pg{}/" self.headers = 阅读全文
posted @ 2024-05-22 18:09 下雨天的眼睛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import threading from queue import Queue from random import choice dealList=["红烧猪蹄", "卤鸡爪", "酸菜鱼", "糖醋里脊", "九转大肠", "阳春面", "烤鸭", "烧鸡", "剁椒鱼头", "酸汤肥牛", 阅读全文
posted @ 2024-05-12 20:02 下雨天的眼睛 阅读(3) 评论(0) 推荐(0) 编辑
摘要: import time import threading def func_one(name): for num in range(1,6): print(f"{name}第{num}次执行") time.sleep(1) def func_two(name): for num in range(1 阅读全文
posted @ 2024-05-12 08:33 下雨天的眼睛 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 第一次调试 from threading import Thread from fake_useragent import UserAgent import requests from time import sleep for i in range(1,11): url = f"https://w 阅读全文
posted @ 2024-05-11 20:36 下雨天的眼睛 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 while True: try: x = int(input("请输入一个数字:")) print("你输入的数字是:", x) except: print("异常,输入的不是数字:") try: a= input("请输入被除数:") b=input("请输入除数:") c=floa 阅读全文
posted @ 2024-05-10 12:28 下雨天的眼睛 阅读(1) 评论(0) 推荐(0) 编辑