Reptile Project (1): Artistic QR Code Production

《Python网络爬虫入门到实战》京东购买地址,这里讲解了大量的基础知识和实战,由本人编著:
https://item.jd.com/14049708.html


配套代码仓库地址:https://github.com/sfvsfv/Crawer

Art QR code production

Go to Zhishuyun https://data.zhishuyun.com/services, apply for the art QR code API, and you can try it 20 times for free: the
insert image description here
reference code is as follows, you only need to change the token to your own token:

import requests

url = "https://api.zhishuyun.com/qrart/generate?token=你自己的token"

headers = {
    "accept": "application/json",
    "content-type": "application/json"
}

payload = {
    "type": "link",
    "content": "https://chat.zhangsan.cloud/",
    "prompt": "mexican tacos",
    "pattern": "rd1",
    "preset": "vibrant-palette",
    "qrw": 2,
    "rawurl": True,
    "pa

おすすめ

転載: blog.csdn.net/weixin_46211269/article/details/132537579