当前位置:网站首页>Request weather interface format, automation
Request weather interface format, automation
2022-07-03 06:15:00 【Bobo AI leaves work】
import requests
import json
url = 'http://apis.juhe.cn/simpleWeather/query'
headers={
"Content-Type": "application/x-www-form-urlencoded",
"charset":"UTF-8"
}
data = {
"city": "%E4%B8%8A%E6%B5%B7",
"key":"bef2ae20fc12a6dd10ebc30e0c4ac659"
}
res = requests.post(url=url, data=data,headers=headers)
print(res.json())边栏推荐
- Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
- SVN分支管理
- MySQL帶二進制的庫錶導出導入
- 【C#/VB.NET】 将PDF转为SVG/Image, SVG/Image转PDF
- Reinstalling the system displays "setup is applying system settings" stationary
- Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
- Maximum likelihood estimation, divergence, cross entropy
- Deep learning, thinking from one dimensional input to multi-dimensional feature input
- Introduction to software engineering
- Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide
猜你喜欢

Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow

深入解析kubernetes controller-runtime

表达式的动态解析和计算,Flee用起来真香

Cesium 点击获取模型表面经纬度高程坐标(三维坐标)

Kubernetes cluster environment construction & Deployment dashboard

Analysis of Clickhouse mergetree principle

Code generator - single table query crud - generator

Migrate data from Mysql to tidb from a small amount of data

Merge and migrate data from small data volume, sub database and sub table Mysql to tidb

How to scan when Canon c3120l is a network shared printer
随机推荐
Judge whether the date time exceeds 31 days
Jackson: what if there is a lack of property- Jackson: What happens if a property is missing?
Kubernetes notes (10) kubernetes Monitoring & debugging
从小数据量分库分表 MySQL 合并迁移数据到 TiDB
Detailed explanation of findloadedclass
1. 兩數之和
CKA certification notes - CKA certification experience post
88. Merge two ordered arrays
有意思的鼠標指針交互探究
项目总结--2(Jsoup的基本使用)
The mechanical hard disk is connected to the computer through USB and cannot be displayed
【系统设计】邻近服务
What's the difference between using the Service Worker Cache API and regular browser cache?
SVN分支管理
Alibaba cloud OOS file upload
Kubernetes notes (VII) kuberetes scheduling
JMeter performance automation test
YOLOV3学习笔记
Analysis of Clickhouse mergetree principle
Exportation et importation de tables de bibliothèque avec binaires MySQL