chatGPT

블로그 자동화에 대한 대답 | CHATGPT

경빈아범 2023. 2. 13. 22:01
728x90
SMALL

 

 

import json

 

# Input the title, author, and body of the post

title = input("Enter the title of the blog post: ")

author = input("Enter the author of the blog post: ")

body = input("Enter the body of the blog post: ")

 

# Store the data in a dictionary

post = {"title": title, "author": author, "body": body}

 

# Convert the dictionary to a JSON string

post_json = json.dumps(post)

 

# Write the JSON string to a file

with open("blog_post.json", "w") as f:

f.write(post_json)

 

This code will allow you to input the title, author, and body of a blog post, store it in a dictionary, convert the dictionary to a JSON string, and write the string to a file named blog_post.json. You can then use this JSON file as a starting point for further automation, such as publishing the post to a website or converting it to a different file format.

 

블로그 자동화 어떻게 하냐고 물어봤을때 chatGPT 대답이었습니다.

 

코딩을 몰라서 잘모르겠네요. 이게 맞는건가요???

 

#CHATGPT #챗지피티 #GPT #블로그 #자동화 #블로그자동화 #파이썬

 

728x90
LIST