Hey folks. I am new to MT and trying to take a backend feed and some templating and auto generate and publish new blog entries from it. I am using MT 4.x and have played a bit with just interacting directly with the URLs I see using firebug. But there seem to be odd sequencing and maybe permission problems with this approach. So basically, any suggestions to accompish this auto-publishing are greatly appreciated.
Peace,
David S.
Reported on Movable Type 4.25

Hi David,
What is your goal?
Would you like to have posts scheduled to go live at given times?
If that is the case, then you could create new entries and schedule them to be published at various times in the future.
Then you could create a cron job which to run the "run-periodic-tasks" script.
More details from:
http://www.movabletype.org/documentation/administrator/setting-up-run-periodic-taskspl.html
Kind Regards,
Mihai Bocsaru
----------------------------------
Daily Movable Type Consultant
Web Development
Movable Type Consulting
Six Apart Partner
http://www.pro-it-service.com/
----------------------------------
Movable Type Demo
http://www.movabletypedemo.org/
----------------------------------
Open Melody Demo
http://www.openmelodydemo.org/
Thanks for your answer. I actually want to generate the entries themselves from a template and a data feed. That results in a text file in markdown format. I want to then programatically import that file and have it published. No human intervention at all. Just a recurring scheduled job.
Thanks for any more help.
Then you would have a code a plugin which to do that.
I've done this for a different scope, which was to feed a blog from an XML document.
Thanks again for the advice. I have 1 last question about this other approach I was trying:
From a simple Python script I can login and import an entry, but it does not actually get published though it says it is published.
I figured I would just hack it to republish everything but despite have the right cookies and magic_token in the params *and* the same user credentials that I use to publish from a browser, I get 'No permissions'.
Solved. I found tools/rebuild_pages and used that to inform the Rebuild stage. Easier than I thought actually. Didn't realize I could just pass credentials in the params for each call.
Thanks much!
Below is some Python code using the requests library.
You're welcome! Congratulations for this.
If you check also the other tools, you would see they are very useful for various actions.