Python爬虫实例之淘宝商品页面爬取(api接口)

可以使用Python中的requests和BeautifulSoup库来进行网页爬取和数据提取。以下是一个简单的示例:
import requests
from bs4 import BeautifulSoupdef get_product_data(url):# 发送GET请求,获取网页内容headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0;Win64) AppleWebkit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',}response = requests.get(url, headers=headers)if response.status_code == 200:# 使用BeautifulSoup解析网页内容soup = BeautifulSoup(response.text, 'html.parser')# 获取商品标题title = soup.select('.tb-main-title')[0].get_text().strip()# 获取商品价格price = soup.select('.tm-price')[0].get_text().strip()# 获取商品销量sales = soup.select('.tm-ind-panel .tm-count')[0].get_text().strip()# 返回提取的商品数据return {'title': title,'price': price,'sales': sales}else:print("请求失败!")if __name__ == '__main__':# 测试爬取商品数据product_url = 'https://item.taobao.com/item.htm?spm=a230r.1.14.9.183b70b2UDwRMA&id=636877355813'data = get_product_data(product_url)print(data)

在代码中,我们首先定义了一个get_product_data()函数,该函数接受一个淘宝商品的URL作为参数。然后,我们发送GET请求获取网页内容,并使用BeautifulSoup库解析网页。

我们通过CSS选择器定位DOM元素,提取商品的标题、价格和销量等数据,并将其存储在一个字典中。最后,我们打印出提取的商品数据。

请注意,为了模拟正常浏览器的请求,我们在请求头中添加了User-Agent。这是为了防止被网站屏蔽或拒绝访问。

在实际应用中,你可以根据需要进行数据的进一步处理和存储,例如存储到数据库或导出为CSV文件。

以下是api封装好的展示示例

 返回数据:

{"item": {"num_iid": "705459759835","title": "SYT气质女神 自制款短袖连衣裙女夏季新款高品质紧身显瘦包臀长裙","desc_short": "","price": 158,"total_price": "","suggestive_price": "","orginal_price": 158,"nick": "1112tx","num": 200,"detail_url": "https://item.taobao.com/item.htm?id=705459759835","pic_url": "https://img.alicdn.com/bao/uploaded/i2/870481044/O1CN01gnu7gX1JaCJNOFZBu_!!870481044.jpg","brand": null,"brandId": "","rootCatId": "","cid": 50010850,"desc": "<div>\n   \n  </div>\n  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\n   <tbody>\n    <tr>\n     <td >\n      <div class=\"hlg_list_56200259\">\n       <div> \n        <img src=\"http://img.alicdn.com/imgextra/i4/870481044/O1CN01a0DbR71JaCM2XV3Y3_!!870481044.jpg\"  alt=\"好价节\" usemap=\"#hlgCustomMap_0qtou_1690380522294\" /> \n        <map name=\"hlgCustomMap_0qtou_1690380522294\">   </map> \n       </div> \n      </div></td>\n    </tr>\n   </tbody>\n  </table>\n  <div>\n   \n  </div>\n  <div>\n   \n  </div>\n  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\n   <tbody>\n    <tr>\n     <td >\n      <div class=\"hlg_list_55894473\">\n       <div> \n        <img src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN01pPm6Iv1JaCLaSZl2w_!!870481044.jpg\"  alt=\"八宫格关联\" usemap=\"#hlgCustomMap_vjkwnn_1688380124621\" /> \n        <map name=\"hlgCustomMap_vjkwnn_1688380124621\">         </map> \n       </div> \n      </div></td>\n    </tr>\n   </tbody>\n  </table>\n  <div>\n   \n  </div>\n  <p><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/870481044/O1CN01Nr0Tdv1JaCJCYLA3c_!!870481044.gif\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN01i8wUET1JaCJKx5w4t_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/870481044/O1CN01Mttxra1JaCJGav13f_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/870481044/O1CN0165KAmi1JaCJEiYbp0_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/870481044/O1CN01yO0uW41JaCJATADqT_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/870481044/O1CN01m3vYox1JaCKkfmnff_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/870481044/O1CN01MD3psB1JaCJsgaIRl_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/870481044/O1CN01vo3UXH1JaCJqGGdCn_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN011eNZnC1JaCJKsGHrs_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/870481044/O1CN01CSoJQu1JaCJPbfFCg_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i3/870481044/O1CN01Pu53uc1JaCJJllu1h_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/870481044/O1CN01IHwzDv1JaCJGWCLsF_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i1/870481044/O1CN01JfXRK21JaCJHG4ASe_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN01vVxjgg1JaCJAThihP_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/870481044/O1CN01l7875s1JaCJJlmm8M_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/870481044/O1CN01af3eH01JaCJJLlj6r_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/870481044/O1CN01eJo1x11JaCJGWDMHT_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN016RyiTn1JaCJKsHxrZ_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN01BuQuRb1JaCJJPM0wJ_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN01CeSlXu1JaCJFAqLJS_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/870481044/O1CN01CotmK51JaCJLICxqi_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/870481044/O1CN01GIzmgP1JaCJJLkzO6_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN01BiNWYi1JaCJNu8SDs_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i2/870481044/O1CN01oAxHNi1JaCJLIB1Hi_!!870481044.jpg\"  /><img align=\"absmiddle\" src=\"http://img.alicdn.com/imgextra/i4/870481044/O1CN015SHHl71JaCJGWEIY8_!!870481044.jpg\"  /></p>\n  <div class=\"hlg_rand_1098560249\" >\n   1910990958\n  </div><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-1.64c2146d8bc80&p=1032056188&k=84479&t=1690440815\" style=\"display:none\" />","item_imgs": [{"url": "https://img.alicdn.com/bao/uploaded/i2/870481044/O1CN01gnu7gX1JaCJNOFZBu_!!870481044.jpg"},{"url": "https://img.alicdn.com/imgextra/i4/870481044/O1CN01kc82x31JaCJJupFIy_!!870481044.jpg"},{"url": "https://img.alicdn.com/imgextra/i2/870481044/O1CN01bx1B4u1JaCJLp0kh8_!!870481044.jpg"},{"url": "https://img.alicdn.com/imgextra/i2/870481044/O1CN01t1uYxH1JaCJCYfNBn_!!870481044.jpg"},{"url": "https://img.alicdn.com/imgextra/i2/870481044/O1CN01W3PfUh1JaCJFhNE43_!!870481044.jpg"}],"item_weight": "","post_fee": "5.00","freight": "","express_fee": "","ems_fee": "","shipping_to": "","video": {"url": "http://cloud.video.taobao.com/play/u/p/1/e/6/t/1/399400641694.mp4"},"sample_id": "","props_name": "20509:28314:尺码:S;20509:28314:尺码:S;20509:28314:尺码:S;20509:28314:尺码:S;20509:28314:尺码:S;20509:28314:尺码:S;20509:28314:尺码:S;20509:28315:尺码:M;20509:28315:尺码:M;20509:28315:尺码:M;20509:28315:尺码:M;20509:28315:尺码:M;20509:28315:尺码:M;20509:28315:尺码:M;20509:28316:尺码:L;20509:28316:尺码:L;20509:28316:尺码:L;20509:28316:尺码:L;20509:28316:尺码:L;20509:28316:尺码:L;20509:28316:尺码:L;20509:28317:尺码:XL;20509:28317:尺码:XL;20509:28317:尺码:XL;20509:28317:尺码:XL;20509:28317:尺码:XL;20509:28317:尺码:XL;20509:28317:尺码:XL;1627207:28320:颜色分类:白色;1627207:28327:颜色分类:酒红色;1627207:3232479:颜色分类:深紫色;1627207:28341:颜色分类:黑色;1627207:28335:颜色分类:绿色;1627207:30155:颜色分类:杏色;1627207:30226:颜色分类:浅粉色;1627207:28320:颜色分类:白色;1627207:28327:颜色分类:酒红色;1627207:3232479:颜色分类:深紫色;1627207:28341:颜色分类:黑色;1627207:28335:颜色分类:绿色;1627207:30155:颜色分类:杏色;1627207:30226:颜色分类:浅粉色;1627207:28320:颜色分类:白色;1627207:28327:颜色分类:酒红色;1627207:3232479:颜色分类:深紫色;1627207:28341:颜色分类:黑色;1627207:28335:颜色分类:绿色;1627207:30155:颜色分类:杏色;1627207:30226:颜色分类:浅粉色;1627207:28320:颜色分类:白色;1627207:28327:颜色分类:酒红色;1627207:3232479:颜色分类:深紫色;1627207:28341:颜色分类:黑色;1627207:28335:颜色分类:绿色;1627207:30155:颜色分类:杏色;1627207:30226:颜色分类:浅粉色","prop_imgs": {"prop_img": [{"properties": "1627207:28320","url": "//gd3.alicdn.com/imgextra/i4/870481044/O1CN01kc82x31JaCJJupFIy_!!870481044.jpg"},{"properties": "1627207:28327","url": "//gd4.alicdn.com/imgextra/i2/870481044/O1CN01t1uYxH1JaCJCYfNBn_!!870481044.jpg"},{"properties": "1627207:3232479","url": "//gd4.alicdn.com/imgextra/i3/870481044/O1CN01Hy2bEg1JaCJ3euABW_!!870481044.jpg"},{"properties": "1627207:28341","url": "//gd3.alicdn.com/imgextra/i2/870481044/O1CN01W3PfUh1JaCJFhNE43_!!870481044.jpg"},{"properties": "1627207:28335","url": "//gd4.alicdn.com/imgextra/i2/870481044/O1CN01r6sBzb1JaCJMajq8y_!!870481044.jpg"},{"properties": "1627207:30155","url": "//gd4.alicdn.com/imgextra/i3/870481044/O1CN01MgARg51JaCJKma7hO_!!870481044.jpg"},{"properties": "1627207:30226","url": "//gd2.alicdn.com/imgextra/i1/870481044/O1CN01nreksE1JaCJmGgaY4_!!870481044.jpg"}]},"props_imgs": {"prop_img": [{"properties": "1627207:28320","url": "//gd3.alicdn.com/imgextra/i4/870481044/O1CN01kc82x31JaCJJupFIy_!!870481044.jpg"},{"properties": "1627207:28327","url": "//gd4.alicdn.com/imgextra/i2/870481044/O1CN01t1uYxH1JaCJCYfNBn_!!870481044.jpg"},{"properties": "1627207:3232479","url": "//gd4.alicdn.com/imgextra/i3/870481044/O1CN01Hy2bEg1JaCJ3euABW_!!870481044.jpg"},{"properties": "1627207:28341","url": "//gd3.alicdn.com/imgextra/i2/870481044/O1CN01W3PfUh1JaCJFhNE43_!!870481044.jpg"},{"properties": "1627207:28335","url": "//gd4.alicdn.com/imgextra/i2/870481044/O1CN01r6sBzb1JaCJMajq8y_!!870481044.jpg"},{"properties": "1627207:30155","url": "//gd4.alicdn.com/imgextra/i3/870481044/O1CN01MgARg51JaCJKma7hO_!!870481044.jpg"},{"properties": "1627207:30226","url": "//gd2.alicdn.com/imgextra/i1/870481044/O1CN01nreksE1JaCJmGgaY4_!!870481044.jpg"}]},"property_alias": "","props": [{"name": "品牌","value": "other/其他"},{"name": "适用年龄","value": "25-29周岁"},{"name": "尺码","value": "S M L XL"},{"name": "图案","value": "纯色"},{"name": "风格","value": "通勤"},{"name": "通勤","value": "复古"},{"name": "领型","value": "方领"},{"name": "腰型","value": "高腰"},{"name": "衣门襟","value": "拉链"},{"name": "颜色分类","value": "白色 酒红色 深紫色 黑色 绿色 杏色 浅粉色"},{"name": "袖型","value": "常规"},{"name": "组合形式","value": "单件"},{"name": "裙型","value": "包臀裙"},{"name": "适用季节","value": "夏季"},{"name": "年份季节","value": "2023年夏季"},{"name": "袖长","value": "短袖"},{"name": "裙长","value": "长裙"},{"name": "流行元素/工艺","value": "抽褶 褶皱 波浪 拉链"},{"name": "廓形","value": "A型"},{"name": "材质成分","value": "其他材质"}],"total_sold": "1000","skus": {"sku": [{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28314;1627207:28320","properties_name": "20509:28314:尺码:S;1627207:28320:颜色分类:白色","quantity": 200,"sku_id": "4958597356171"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28314;1627207:28327","properties_name": "20509:28314:尺码:S;1627207:28327:颜色分类:酒红色","quantity": 200,"sku_id": "4958597356174"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28314;1627207:3232479","properties_name": "20509:28314:尺码:S;1627207:3232479:颜色分类:深紫色","quantity": 200,"sku_id": "4958597356177"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28314;1627207:28341","properties_name": "20509:28314:尺码:S;1627207:28341:颜色分类:黑色","quantity": 200,"sku_id": "4958597356180"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28314;1627207:28335","properties_name": "20509:28314:尺码:S;1627207:28335:颜色分类:绿色","quantity": 200,"sku_id": "5136958387148"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28314;1627207:30155","properties_name": "20509:28314:尺码:S;1627207:30155:颜色分类:杏色","quantity": 200,"sku_id": "4964918757567"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28314;1627207:30226","properties_name": "20509:28314:尺码:S;1627207:30226:颜色分类:浅粉色","quantity": 200,"sku_id": "5150786423327"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28315;1627207:28320","properties_name": "20509:28315:尺码:M;1627207:28320:颜色分类:白色","quantity": 200,"sku_id": "4958597356172"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28315;1627207:28327","properties_name": "20509:28315:尺码:M;1627207:28327:颜色分类:酒红色","quantity": 200,"sku_id": "4958597356175"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28315;1627207:3232479","properties_name": "20509:28315:尺码:M;1627207:3232479:颜色分类:深紫色","quantity": 200,"sku_id": "4958597356178"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28315;1627207:28341","properties_name": "20509:28315:尺码:M;1627207:28341:颜色分类:黑色","quantity": 200,"sku_id": "4958597356181"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28315;1627207:28335","properties_name": "20509:28315:尺码:M;1627207:28335:颜色分类:绿色","quantity": 200,"sku_id": "5136958387149"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28315;1627207:30155","properties_name": "20509:28315:尺码:M;1627207:30155:颜色分类:杏色","quantity": 200,"sku_id": "4964918757568"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28315;1627207:30226","properties_name": "20509:28315:尺码:M;1627207:30226:颜色分类:浅粉色","quantity": 200,"sku_id": "5150786423328"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28316;1627207:28320","properties_name": "20509:28316:尺码:L;1627207:28320:颜色分类:白色","quantity": 200,"sku_id": "4958597356173"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28316;1627207:28327","properties_name": "20509:28316:尺码:L;1627207:28327:颜色分类:酒红色","quantity": 200,"sku_id": "4958597356176"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28316;1627207:3232479","properties_name": "20509:28316:尺码:L;1627207:3232479:颜色分类:深紫色","quantity": 200,"sku_id": "4958597356179"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28316;1627207:28341","properties_name": "20509:28316:尺码:L;1627207:28341:颜色分类:黑色","quantity": 200,"sku_id": "4958597356182"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28316;1627207:28335","properties_name": "20509:28316:尺码:L;1627207:28335:颜色分类:绿色","quantity": 200,"sku_id": "5136958387150"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28316;1627207:30155","properties_name": "20509:28316:尺码:L;1627207:30155:颜色分类:杏色","quantity": 200,"sku_id": "4964918757569"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28316;1627207:30226","properties_name": "20509:28316:尺码:L;1627207:30226:颜色分类:浅粉色","quantity": 200,"sku_id": "5150786423329"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28317;1627207:28320","properties_name": "20509:28317:尺码:XL;1627207:28320:颜色分类:白色","quantity": 200,"sku_id": "4964551985973"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28317;1627207:28327","properties_name": "20509:28317:尺码:XL;1627207:28327:颜色分类:酒红色","quantity": 200,"sku_id": "4964551985975"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28317;1627207:3232479","properties_name": "20509:28317:尺码:XL;1627207:3232479:颜色分类:深紫色","quantity": 200,"sku_id": "4964551985977"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28317;1627207:28341","properties_name": "20509:28317:尺码:XL;1627207:28341:颜色分类:黑色","quantity": 200,"sku_id": "4964551985976"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28317;1627207:28335","properties_name": "20509:28317:尺码:XL;1627207:28335:颜色分类:绿色","quantity": 200,"sku_id": "5136958387151"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28317;1627207:30155","properties_name": "20509:28317:尺码:XL;1627207:30155:颜色分类:杏色","quantity": 200,"sku_id": "4964918757570"},{"price": 158,"total_price": 0,"orginal_price": 158,"properties": "20509:28317;1627207:30226","properties_name": "20509:28317:尺码:XL;1627207:30226:颜色分类:浅粉色","quantity": 200,"sku_id": "5150786423330"}]},"seller_id": "870481044","sales": 1000,"shop_id": "110507099","props_list": {"20509:28314": "尺码:S","20509:28315": "尺码:M","20509:28316": "尺码:L","20509:28317": "尺码:XL","1627207:28320": "颜色分类:白色","1627207:28327": "颜色分类:酒红色","1627207:3232479": "颜色分类:深紫色","1627207:28341": "颜色分类:黑色","1627207:28335": "颜色分类:绿色","1627207:30155": "颜色分类:杏色","1627207:30226": "颜色分类:浅粉色"},"seller_info": {"nick": "1112tx","item_score": 4.77514,"score_p": 4.81006,"delivery_score": 4.83294,"shop_type": "","user_num_id": "870481044","sid": "110507099","title": "","zhuy": "https://shop110507099.taobao.com","cert": null,"open_time": "9年老店","credit_score": "tb-rank-crown:2","shop_name": "SEE YOU TOMORROW"},"tmall": false,"error": "","location": "广东深圳","data_from": "Ha","has_discount": "false","is_promotion": "false","promo_type": null,"props_img": {"1627207:28320": "//gd3.alicdn.com/imgextra/i4/870481044/O1CN01kc82x31JaCJJupFIy_!!870481044.jpg","1627207:28327": "//gd4.alicdn.com/imgextra/i2/870481044/O1CN01t1uYxH1JaCJCYfNBn_!!870481044.jpg","1627207:3232479": "//gd4.alicdn.com/imgextra/i3/870481044/O1CN01Hy2bEg1JaCJ3euABW_!!870481044.jpg","1627207:28341": "//gd3.alicdn.com/imgextra/i2/870481044/O1CN01W3PfUh1JaCJFhNE43_!!870481044.jpg","1627207:28335": "//gd4.alicdn.com/imgextra/i2/870481044/O1CN01r6sBzb1JaCJMajq8y_!!870481044.jpg","1627207:30155": "//gd4.alicdn.com/imgextra/i3/870481044/O1CN01MgARg51JaCJKma7hO_!!870481044.jpg","1627207:30226": "//gd2.alicdn.com/imgextra/i1/870481044/O1CN01nreksE1JaCJmGgaY4_!!870481044.jpg"},"format_check": "ok","desc_img": ["http://img.alicdn.com/imgextra/i4/870481044/O1CN01a0DbR71JaCM2XV3Y3_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN01pPm6Iv1JaCLaSZl2w_!!870481044.jpg","http://img.alicdn.com/imgextra/i3/870481044/O1CN01Nr0Tdv1JaCJCYLA3c_!!870481044.gif","http://img.alicdn.com/imgextra/i2/870481044/O1CN01i8wUET1JaCJKx5w4t_!!870481044.jpg","http://img.alicdn.com/imgextra/i1/870481044/O1CN01Mttxra1JaCJGav13f_!!870481044.jpg","http://img.alicdn.com/imgextra/i3/870481044/O1CN0165KAmi1JaCJEiYbp0_!!870481044.jpg","http://img.alicdn.com/imgextra/i3/870481044/O1CN01yO0uW41JaCJATADqT_!!870481044.jpg","http://img.alicdn.com/imgextra/i1/870481044/O1CN01m3vYox1JaCKkfmnff_!!870481044.jpg","http://img.alicdn.com/imgextra/i1/870481044/O1CN01MD3psB1JaCJsgaIRl_!!870481044.jpg","http://img.alicdn.com/imgextra/i3/870481044/O1CN01vo3UXH1JaCJqGGdCn_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN011eNZnC1JaCJKsGHrs_!!870481044.jpg","http://img.alicdn.com/imgextra/i1/870481044/O1CN01CSoJQu1JaCJPbfFCg_!!870481044.jpg","http://img.alicdn.com/imgextra/i3/870481044/O1CN01Pu53uc1JaCJJllu1h_!!870481044.jpg","http://img.alicdn.com/imgextra/i1/870481044/O1CN01IHwzDv1JaCJGWCLsF_!!870481044.jpg","http://img.alicdn.com/imgextra/i1/870481044/O1CN01JfXRK21JaCJHG4ASe_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN01vVxjgg1JaCJAThihP_!!870481044.jpg","http://img.alicdn.com/imgextra/i4/870481044/O1CN01l7875s1JaCJJlmm8M_!!870481044.jpg","http://img.alicdn.com/imgextra/i4/870481044/O1CN01af3eH01JaCJJLlj6r_!!870481044.jpg","http://img.alicdn.com/imgextra/i4/870481044/O1CN01eJo1x11JaCJGWDMHT_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN016RyiTn1JaCJKsHxrZ_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN01BuQuRb1JaCJJPM0wJ_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN01CeSlXu1JaCJFAqLJS_!!870481044.jpg","http://img.alicdn.com/imgextra/i4/870481044/O1CN01CotmK51JaCJLICxqi_!!870481044.jpg","http://img.alicdn.com/imgextra/i4/870481044/O1CN01GIzmgP1JaCJJLkzO6_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN01BiNWYi1JaCJNu8SDs_!!870481044.jpg","http://img.alicdn.com/imgextra/i2/870481044/O1CN01oAxHNi1JaCJLIB1Hi_!!870481044.jpg","http://img.alicdn.com/imgextra/i4/870481044/O1CN015SHHl71JaCJGWEIY8_!!870481044.jpg"],"shop_item": [],"relate_items": []},

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/11379.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

前端CryptoJS-AES加解密 对应php的AES-128-CBC加解密踩坑(java也相同加解密)

前端部分注意看填充是pkcs7 有个前提&#xff0c;要看前端有没有转成hex格式&#xff0c;如果没转&#xff0c;php那边就不需要调用特定函数转hex格式的 const keyStr 5hOwdHxpW0GOciqZ;const iv 0102030405060708;//加密function Encrypt(word) {let key CryptoJS.enc.Ut…

今天你做代码检查了吗?

当下&#xff0c;各行各业都在寻找可以降本增效的效率途径&#xff0c;AI人工智能、机器学习等概念也被广泛应用至业务中&#xff1b;而广州云标局推出了一款智能ide代码工具——codigger&#xff0c;不仅项目体检能为开发项目提供快速代码检测&#xff0c;主要检测维度包括bug…

【Spring框架】Spring读取与存储综合练习

练习 在 Spring 项⽬中&#xff0c;通过 main ⽅法获取到 Controller 类&#xff0c;调⽤ Controller ⾥⾯通过注⼊的⽅式调⽤ Service 类&#xff0c;Service 再通过注⼊的⽅式获取到 Repository 类&#xff0c;Repository 类⾥⾯有⼀个⽅法构建⼀个 User 对象&#xff0c;返…

抖音账号矩阵系统开发源码

一、技术自研框架开发背景&#xff1a; 抖音账号矩阵系统是一种基于数据分析和管理的全新平台&#xff0c;能够帮助用户更好地管理、扩展和营销抖音账号。 部分源码分享&#xff1a; ic function indexAction() { //面包屑 $breadcrumbs [ [tit…

虚拟机 RHEL8 安装 MySQL 8.0.34

目录 安装步骤一、清除所有残留的旧MySQL二、安装MySQL 报错问题1. 提示未找到匹配的参数&#xff1a; mysql-community-server2. 公钥问题 安装步骤 一、清除所有残留的旧MySQL 1. 关闭MySQL [rootlocalhost /]# service mysqld stop Redirecting to /bin/systemctl stop …

线程池与ThreadLocal同时使用读取到脏数据

问题&#xff1a;当线程池与ThreadLocal共用时&#xff0c;ThreadLocal读取数据出现错乱。 问题验证&#xff1a; public static void main(String[] args) {ExecutorService executorService Executors.newFixedThreadPool(2);final ThreadLocal<String> threadLocal…

【导入外部jar包到maven项目中--亲测可行】

若项目为springweb项目&#xff0c;则先将jar放到WEB-INF/lib 目录下选中对应的jar包&#xff0c;右键选项 add-lirrary &#xff1b;成功加入之后的jar包是一个项目的目录结构&#xff1a; 至此&#xff0c;项目能够正常运行&#xff0c;在代码周也能够进行导包 转折点&…

windows下若依vue项目部署

下载若依项目&#xff0c;前端后端项目本地启动前端打包&#xff0c;后端打包配置nginx.conf 需要注意的是&#xff1a;路径别用中文&#xff0c;要不然报错 #前台访问地址及端口80&#xff0c;在vue.config.js中可查看server {listen 80;server_name localhost; #后台…

一文谈谈Git

"And if forever lasts till now Alright" 为什么要有git&#xff1f; 想象一下&#xff0c;现如今你的老师同时叫你和张三&#xff0c;各自写一份下半年的学习计划交给他。 可是你的老师是一个极其"较真"的人&#xff0c;发现你俩写的学习计划太"水&…

QT:当登录成功时,关闭登录界面,跳转到新的界面中

1> 继续完善登录框&#xff0c;当登录成功时&#xff0c;关闭登录界面&#xff0c;跳转到新的界面中 widget.h #include "widget.h" //#include "ui_widget.h"Widget::Widget(QWidget *parent): QWidget(parent)//, ui(new Ui::Widget) {//ui->setu…

使用python部署chineseocr_lite

使用python部署chineseocr_lite 简介安装报错解决python调用结果 简介 项目地址&#xff1a;https://github.com/DayBreak-u/chineseocr_lite chineseocr_lite 是一个开源项目&#xff0c;用来实现中文的文字识别&#xff0c;支持竖排文字识别、繁体识别&#xff0c;总模型只…

机器学习分布式框架ray运行TensorFlow实例

使用Ray来实现TensorFlow的训练是一种并行化和分布式的方法&#xff0c;它可以有效地加速大规模数据集上的深度学习模型的训练过程。Ray是一个高性能、分布式计算框架&#xff0c;可以在集群上进行任务并行化和数据并行化&#xff0c;从而提高训练速度和可扩展性。 以下是实现…

java调用Groovy动态代码

感谢作者&#xff1a;https://www.ab62.cn/article/36028.html 我的使用 场景&#xff1a;参数转换&#xff08;适配上下游&#xff09; public static void main(String[] args) {String scriptText script();GroovyClassLoader classLoader new GroovyClassLoader();Clas…

某制造企业基于 KubeSphere 的云原生实践

背景介绍 随着业务升级改造与软件产品专案的增多&#xff0c;常规的物理机和虚拟机方式逐渐暴露出一些问题&#xff1a; 大量服务部署在虚拟机上&#xff0c;资源预估和硬件浪费较大&#xff1b;大量服务部署在虚拟机上&#xff0c;部署时间和难度较大&#xff0c;自动化程度…

Linux chmod

chmod 首先chmod 用于修改文件权限&#xff0c;使用命令 ll 查看文件列表&#xff0c;或者使用stat文件名 可以查看其相应的权限 显示的形式为例如 rwx r- - r-- &#xff0c;即所有者拥有读写执行的权限 &#xff0c;同组人员和其他人都只拥有读的权限 一般修改权限为三部分…

加利福尼亚大学|3D-LLM:将3D世界于大规模语言模型结合

来自加利福尼亚大学的3D-LLM项目团队提到&#xff1a;大型语言模型 (LLM) 和视觉语言模型 (VLM) 已被证明在多项任务上表现出色&#xff0c;例如常识推理。尽管这些模型非常强大&#xff0c;但它们并不以 3D 物理世界为基础&#xff0c;而 3D 物理世界涉及更丰富的概念&#xf…

SQL关于having用法及与where的区别

having后面只能接聚合函数 因为having的存在本来就是为了解决&#xff1a;where后面不能接聚合函数&#xff0c;这个问题。 与where的异同&#xff1a; 相同之处&#xff1a; 1.作用都是筛选 2.都可以使用比较运算符&#xff1a;in&#xff0c;between and&#xff0c;lik…

Mybatis 新增/批量新增, 拿到返回的自增主键ID

单个新增 &#xff1a; /** * 插入菜单 * param menuInfo * return */ int insertMenuInfo(MenuInfo menuInfo); xml&#xff1a; <insert id"insertMenuInfo" parameterType"com.XXXX..MenuInfo" keyProperty"id&quo…

GoogleLeNet V2 V3 —— Batch Normalization

文章目录 Batch Normalizationinternal covariate shift激活层的作用BN执行的位置数据白化网络中的BN层训练过程 BN的实验效果MNIST与GoogleLeNet V1比较 GoogleLeNet出来之后&#xff0c;Google在这个基础上又演进了几个版本&#xff0c;一般来说是说有4个版本&#xff0c;之前…

《蛤蟆先生去看心理医生》--- 有感

概述 蛤蟆先生是一个原生家境十分优裕的人&#xff0c;在一定程度上他也将上一代的财富和地位给继承了下来。但其原生家庭中父亲对他要求过于严厉&#xff0c;导致他从小养成了一种讨好型人格&#xff0c;到上一代人去世后性格仍然没有得到成长&#xff0c;以至于最近一段时间他…