한국어로 읽기
This program reformats post contents to fit the Tistory Editor and uploads it to the Tistory Blog when you provide Naver Blog posting link.
I created this program to automate the process of migrating from Naver Blog to Tistory Blog.
- Naver Blog HTML crawling and image saving
- Upload to the Tistory Blog in a public state
- Currently supported formats include:
- Text (+ alignment, + bold/tilt/underline/strikethrough)
- Table
- Picture with caption
- Quotation
- Horizontal dividers
- Source code
- Links
JDK 17 is required to run this program.
Please install it after checking the JDK installation method for your operating system from the link.
This program can be run as follows:
Download and unzip the zip file from this link. There are 3 files in the zip file: N2T.jar(or N2T.exe), /config/tistory.json, and list.txt
Next, put the value in the configuration file.
/config/tistory.json contains environment setting value used by this program.
- APP_ID: App ID set in Tistory Open API
- SECRET_KEY : Secret Key set in Tistory Open API
- BLOG_NAME : The name of the blog to post (xxx part of xxx.tistory.com)
You can obtain App ID and Secret Key as follows: Link
Example) /config/tistory.json
{
"APP_ID" : "de3...",
"SECRET_KEY" : "de3...",
"USER_ID" : "hyelie"
}
list.txt contains link of Naver Blog post to be moved to Tistory Blog.
Separate the Naver Blog post links you want to move to Tistory Blog with the new line.
Note - Private posts cannot be read. Please make your post public.
Example) list.txt
https://blog.naver.com/jhi990823/222848946415
https://blog.naver.com/jhi990823/222848946416
https://blog.naver.com/jhi990823/222848946417
If you downloaded the .jar file, navigate to the unzipped directory and run the following command.
java -jar N2T.jar
If you downloaded the .exe file, execute the N2T.exe file in the unzipped folder.
For the CODE
appears during execution, enter xxx part from the 'code=xxx' URL that appears in the window where you clicked the 'allow' button.
JDK 17
- Linux First, install JDK 17 using the following command.
sudo apt install openjdk-17-jdk
Set up the Java development environment in Visual Studio Code as shown in the following link.
- Windows
Install Java SE 17 on the following link.
After cloning the repository, build the project in the Naver2Tistory folder.
git clone https://github.com/hyelie/Naver2Tistory.git
cd Naver2Tistory
// build
- 1.0.0
- Naver Blog HTML crawling and image saving
- Upload to the Tistory Blog in a public state
- Currently supported formats are:
- Text with alignment
- Table
- Picture with caption
- Quotation
- Horizontal dividers
- Source code
- Links
- 1.0.1
- (Fixed) URL recognition error resolved
- (Fixed) Fixed an issue where posts would not be uploaded if there were <, >, ", & symbols in the post.
- (Changed) uploaded to the Tistory blog in a private state
- 1.0.2
- (Fixed) Fixed an issue where posts would not be uploaded if there were << EOF symbols in the code block.
- 1.0.3 (Current)
- (Feat) Added bold/tilt/underline/strikeout feature to text format.
- (Removed) Removed image saving feature.
- 1.1.0
- According to the font size on the Naver Blog, classifictaion function which classify headline, middle title, small title on Tistory Blog will be added.
- 1.2.0
- Category selection function will be added.
hyelie - Jeong Hyeil - hyelie@postech.ac.kr
See the list of contributors who participated in this project.
- Fork this repository on link https://github.com/hyelie/Naver2Tistory/fork
- Create a new branch using command
git checkout -b feature/featureName
. - Commit using command
git commit -am 'Add some feature'
. - Push to branch using command
git push origin feature/featureName
- Send a pull request.
Naver2Tistory is available under the MIT license. See the License file for more info.