insert #6

Merged
v4l3n71n merged 60 commits from insert into master 2023-04-11 21:29:54 +00:00
Showing only changes of commit d96d38e508 - Show all commits

View File

@ -117,7 +117,7 @@ if __name__ == '__main__':
print("Article ajoute : {0}".format(result["title"]["raw"]))
print(comment_post)
for i in comment_post:
data = {"post": result["id"], "content": i["content"], "date": i["date"]}
data = {"post": result["id"], "content": i["content"], "date": i["date"], "author_name": i["author"]}
page = requests.post("http://localhost:8080/wp-json/wp/v2/comments", auth=basic, data=data)
print(page.status_code)
if page.status_code == 201: