当前位置:网站首页>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())边栏推荐
- Alibaba cloud OOS file upload
- Detailed explanation of findloadedclass
- In depth learning
- Mysql database table export and import with binary
- Leetcode problem solving summary, constantly updating!
- Mysql database
- MySQL帶二進制的庫錶導出導入
- Judge whether the date time exceeds 31 days
- Oauth2.0 - use database to store client information and authorization code
- Difference between shortest path and minimum spanning tree
猜你喜欢

深入解析kubernetes controller-runtime

Synthetic keyword and NBAC mechanism

Es remote cluster configuration and cross cluster search

Bio, NiO, AIO details

Oauth2.0 - explanation of simplified mode, password mode and client mode

23 design models

Tabbar settings

Deep learning, thinking from one dimensional input to multi-dimensional feature input

ThreadLocal的简单理解

Alibaba cloud OOS file upload
随机推荐
Oauth2.0 - explanation of simplified mode, password mode and client mode
Cesium 点击获三维坐标(经纬度高程)
Kubesphere - Multi tenant management
技术管理进阶——你了解成长的全貌吗?
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
【系统设计】邻近服务
About the difference between count (1), count (*), and count (column name)
Decision tree of machine learning
Es remote cluster configuration and cross cluster search
The most responsible command line beautification tutorial
Kubernetes notes (III) controller
Detailed explanation of contextclassloader
Bio, NiO, AIO details
Leetcode solution - 01 Two Sum
Kubernetes notes (V) configuration management
项目总结--04
PMP notes
23 design models
JMeter performance automation test
Difference between shortest path and minimum spanning tree