It is possible to normalize / standardize the URLs returned by this API?
Sometimes the URLs are returned correctly with the correct format:
https://<some_domain>/...
But sometimes the https
schema is missing, an example of this is this request:
Response:
{
"result": {
"seller": {
"shop_title": "",
"shop_url": "//store.taobao.com/shop/view_shop.htm?user_number_id=2874228018",
"seller_id": 2874228018,
"user_type": "0"
},
"status": {
"code": 200,
"execution_time": 0.2251,
"msg": "success"
},
"delivery": {
"from": "美国"
},
"item": {
"detail_url": "//item.taobao.com/item.htm?id=623049270837",
"num_iid": 623049270837,
"price": 36414,
"total_sales": "0",
"images": [
"//img.alicdn.com/bao/uploaded/i1/2874228018/O1CN01CY78GZ296IGWtgepC_!!0-item_pic.jpg"
],
"title": "Maurice Lacroix/男士手表自动机械防水50米 MP6428-SS001-11E",
"promotion_price": 36414
}
}
}
As you can see, many urls has a missing https:
Приєднуйтесь до обговорення — додайте повідомлення нижче: