当前位置:网站首页>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())边栏推荐
- Creating postgre enterprise database by ArcGIS
- Simple solution of small up main lottery in station B
- Leetcode problem solving summary, constantly updating!
- JMeter performance automation test
- Understand the first prediction stage of yolov1
- Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
- Zhiniu stock project -- 05
- Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)
- BeanDefinitionRegistryPostProcessor
- Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
猜你喜欢

SQL实现将多行记录合并成一行

Simple handwritten ORM framework

Code generator - single table query crud - generator

GPS坐标转百度地图坐标的方法

Kubernetes cluster environment construction & Deployment dashboard

Kubernetes notes (I) kubernetes cluster architecture

Selenium ide installation recording and local project maintenance

技术管理进阶——你了解成长的全貌吗?

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

Detailed explanation of contextclassloader
随机推荐
Oauth2.0 - use database to store client information and authorization code
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
1. Sum of two numbers
【C#/VB.NET】 将PDF转为SVG/Image, SVG/Image转PDF
Get a screenshot of a uiscrollview, including off screen parts
Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)
Pytorch builds the simplest version of neural network
Alibaba cloud Alipay sandbox payment
1. Somme des deux nombres
Maximum likelihood estimation, divergence, cross entropy
项目总结--01(接口的增删改查;多线程的使用)
Kubernetes notes (IV) kubernetes network
ruoyi接口权限校验
Phpstudy setting items can be accessed by other computers on the LAN
Kubernetes cluster environment construction & Deployment dashboard
Migrate data from Mysql to tidb from a small amount of data
Cesium 点击获取模型表面经纬度高程坐标(三维坐标)
What's the difference between using the Service Worker Cache API and regular browser cache?
Understand the first prediction stage of yolov1
Core principles and source code analysis of disruptor