I changed my vps server recently, and I had to migrating my wordpress blog too. I found there are several trouble when I completed migrating, and the most serious trouble is some image in some posts was broken. so here come.
How to use
一、 Just run python:
二、 Input data:
1 2 3 4 5
wordpress path(example: /var/www/blog.dreamtobe.cn/html/): [your wordpress absolute path] domain(example: http://blog.dreamtobe.cn): [your wordpress blog domain] mysql user name: [your wordpress blog mysql user name] mysql password: [your wordpress blog mysql password] mysql blog database: [your wordpress blog mysql database name]
三、Auto find broken image
In this phase, will auto find break image by python and print all image url in posts. Just like: