https://api.qrserver.com/v1/create-qr-code/?size=150%C3%97150&data=lozn
https://minico.qq.com/qrcode/get?type=2&r=1&size=300&b=&text=https://lozn.top
text 是网址
size 尺寸
type 未知,必须且只能填2
b 未知,非必填,填miniapp中间会有小logo
r 样式,1是方形,2是圆形
https://qun.qq.com/qrcode/index?data=https://www.qq.com&size=300
公网ip
txt格式
https://api64.ipify.org/?format=txt
https://ipinfo.io/ip
json格式
https://api64.ipify.org/?format=json
带有城市地区的json数据
https://ipinfo.io/json
Python3获取IP地址代码片段
#!/usr/bin/python3
import requests
from requests.structures import CaseInsensitiveDict
ip = requests.get('https://checkip.amazonaws.com').text.strip()
网友评论