| import json | |
| import requests | |
| url = "http://192.168.5.103:8010/milvus/" | |
| headers = { | |
| "Content-Type": "application/json" | |
| } | |
| data = { | |
| "page":{ | |
| "pageSum":16, | |
| "totalCount":3077, | |
| "currentPageNo":1, | |
| "pageSize":200, | |
| "previousPageNo":1, | |
| "nextPageNo":2, | |
| "data":[ | |
| { | |
| "id":"article_0005686d604d1afa37210c851aa728c2", | |
| "createTime":"2024-10-2323:13:52", | |
| "updateTime":"2024-10-2319:24:09", | |
| "linkType":"", | |
| "classificationTags":"AsktheExperts", | |
| "tags":"RU-486,emergencycontraception,themorning-afterpill,medicationabortion,mifepristone,misoprostol,abortionpill", | |
| "paragraphTitle":"", | |
| "title":"Whathappensifyoutakeabortionpillswhenyou’renotpregnant?", | |
| "dataTime":"2023-04-26", | |
| "author":"Miriam", | |
| "readingDuration":"2min", | |
| "content":"No you shouldn't take RU-486 or mifepristone if you are not pregnant. These medications are used to terminate a pregnancy, and taking them when you are not pregnant can be harmful to your health.", | |
| "img":"https://www.plannedparenthood.org/uploads/filer_public_thumbnails/filer_public/5c/58/5c583737-d748-4022-8edc-6b0f22705977/ask_the_experts_grey.png__1200x900_q75_subsampling-2.jpg", | |
| "askName":"", | |
| "replyContent":"", | |
| "replyName":"", | |
| "link":"https://www.plannedparenthood.org/blog/what-happens-if-you-take-abortion-pills-when-youre-not-pregnant", | |
| "category1":"SexualHealth", | |
| "category2":"Pills", | |
| "tagType":"Female", | |
| "contentType":"Article", | |
| "origin":"PlannedParenthood", | |
| "module":"", | |
| "outline":"", | |
| "sort":0, | |
| "likeCount":0, | |
| "dislikeCount":0, | |
| "deleteStatus":0, | |
| "deployStatus":0 | |
| }, | |
| { | |
| "id":"article_0005686d604d1afa37210c851aa728c5", | |
| "createTime":"2024-10-2323:13:52", | |
| "updateTime":"2024-10-2319:24:09", | |
| "linkType":"", | |
| "classificationTags":"AsktheExperts", | |
| "tags":"RU-486,emergencycontraception,themorning-afterpill,medicationabortion,mifepristone,misoprostol,abortionpill", | |
| "paragraphTitle":"", | |
| "title":"Whathappensifyoutakeabortionpillswhenyou’renotpregnant?", | |
| "dataTime":"2023-04-26", | |
| "author":"Miriam", | |
| "readingDuration":"2min", | |
| "content":"These medications are used to terminate a pregnancy, and taking them when you are not pregnant can be harmful to your health.", | |
| "img":"https://www.plannedparenthood.org/uploads/filer_public_thumbnails/filer_public/5c/58/5c583737-d748-4022-8edc-6b0f22705977/ask_the_experts_grey.png__1200x900_q75_subsampling-2.jpg", | |
| "askName":"", | |
| "replyContent":"", | |
| "replyName":"", | |
| "link":"https://www.plannedparenthood.org/blog/what-happens-if-you-take-abortion-pills-when-youre-not-pregnant", | |
| "category1":"SexualHealth", | |
| "category2":"Pills", | |
| "tagType":"Female", | |
| "contentType":"Article", | |
| "origin":"PlannedParenthood", | |
| "module":"", | |
| "outline":"", | |
| "sort":0, | |
| "likeCount":0, | |
| "dislikeCount":0, | |
| "deleteStatus":0, | |
| "deployStatus":0 | |
| }, | |
| { | |
| "id":"article_0005686d604d1afa37210c851aa728c43", | |
| "createTime":"2024-10-2323:13:52", | |
| "updateTime":"2024-10-2319:24:09", | |
| "linkType":"", | |
| "classificationTags":"AsktheExperts", | |
| "tags":"RU-486,emergencycontraception,themorning-afterpill,medicationabortion,mifepristone,misoprostol,abortionpill", | |
| "paragraphTitle":"", | |
| "title":"Whathappensifyoutakeabortionpillswhenyou’renotpregnant?", | |
| "dataTime":"2023-04-26", | |
| "author":"Miriam", | |
| "readingDuration":"2min", | |
| "content":"and taking them when you are not pregnant can be harmful to your health.", | |
| "img":"https://www.plannedparenthood.org/uploads/filer_public_thumbnails/filer_public/5c/58/5c583737-d748-4022-8edc-6b0f22705977/ask_the_experts_grey.png__1200x900_q75_subsampling-2.jpg", | |
| "askName":"", | |
| "replyContent":"", | |
| "replyName":"", | |
| "link":"https://www.plannedparenthood.org/blog/what-happens-if-you-take-abortion-pills-when-youre-not-pregnant", | |
| "category1":"SexualHealth", | |
| "category2":"Pills", | |
| "tagType":"Female", | |
| "contentType":"Article", | |
| "origin":"PlannedParenthood", | |
| "module":"", | |
| "outline":"", | |
| "sort":0, | |
| "likeCount":0, | |
| "dislikeCount":0, | |
| "deleteStatus":0, | |
| "deployStatus":0 | |
| }, | |
| ] | |
| }, | |
| "type": "articleSpiderSyncMilVus", | |
| } | |
| json_str = json.dumps(data) | |
| response = requests.post(url=url, data=json_str, headers=headers) | |
| print(response.text) |