《Python网络爬虫入门到实战》京东购买地址,这里讲解了大量的基础知识和实战,由本人编著:
https://item.jd.com/14049708.html
配套代码仓库地址:https://github.com/sfvsfv/Crawer
艺术二维码制作
到知数云https://data.zhishuyun.com/services ,申请艺术二维码API,可免费体验20次:
参考代码如下,你只需要修改token为你自己的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