爬虫
GeekX.
不妨大胆一些生活.
展开
-
Python爬取更新的天气情况
import requests import time import os import re import sys root_dir=f"project" headers={ "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36" } def download(url,path): (di...原创 2021-12-29 20:34:37 · 359 阅读 · 0 评论 -
Python爬取天气实况图片
jupyter编写 import timeimport requestsimport osdate=time.strftime("%Y-%m-%d",time.localtime((time.time())))year=date[:4]month=date[5:7]day=date[8:10]need_spyder=["grapes","nmc"]url='http://image.nmc.cn/product/'+year+'/'+month+'/'+day+'/STFC/medium/SEVP_NMC原创 2021-12-29 20:27:50 · 466 阅读 · 0 评论