You have to login in order to post a reply to this topic.

2 replies [Last post]
baz
User offline. Last seen 37 weeks 1 day ago. Offline
Joined: 11/12/2009
Posts: 47

OK...well not quite autoblogging...but how about this...

Log into Hosting account, create a new account, install wordpress, install all the pinging services and plugins, activate them, create a 4 new pages by reading text docs, publish site.

Still playing and trying to find how far I can push this.

Can this be done?

Baz

 

codex
codex's picture
User offline. Last seen 18 weeks 18 hours ago. Offline
Joined: 11/12/2009
Posts: 161
Re: Auto Blogging

This question brings me back to... hm... February. Back then I wondered the exact same thing, so I have to reply to this :bigsmile:

 

I will start with a direct answer to your question:

 

Quote:
Can this be done?

The answer is: Yes!

 

Since I can recall how confusing it used to be for me to create an automation job in the beginning, I'll try to explain my thought process when I come up with a new challenge: a new task that needs to be automated. Since I don't know any of the specifics about your hosting provider, the interface that you are using, I will probably sound a bit vague, but if you have any specific questions just shoot and I'll answer them.

 

The first question that I ask myself is: "What resources will I need in order to automate this thing?". In other words, what data will my job need in order to fill the various forms, hit the appropriate buttons, make the correct choices. After I have answered to this question, I sit down and I write in an Excel file all the data that will be needed.

 

The second question is: "What are the manual steps required to automate the task?". In your example, what would I do manually in order to:

Quote:
Log into Hosting account, create a new account, install wordpress, install all the pinging services and plugins, activate them, create a 4 new pages by reading text docs, publish site
. What keystrokes need to be pressed and what mouse clicks need to be sent?

Notice that I'm not worried for things like "how will I make the script do this for ALL my sites?" yet.

 

The third question is: "what parts of the job will be different from site to site?". The most important thing that you need to realize, is that all the information that will be different from site to site have to be included somewhere (e.g. in the Excel file).

After you have answered successfully to all of these questions your course of action should look like this:
 

1) Create and Excel file with all the information that will be different from one site to another

2) Use the Macro Recorder to record what you do manually to complete the task (for one site)

3) Create a loop and paste the macro recorded actions inside the loop. This loop should iterate through all of the information of the Excel file.

4) Change the recorded parts that contain the information that change and make them get the information from the Excel file.

5) (*optional*) If needed some extra actions can be added (e.g. "Wait for Image" action) in order to make sure that the job will not run too fast or go too slow.

I can give you a more specific example if you can tell me a basic procedure that you would want to automate. This way all the things that I wrote above will start making more sense :bigsmile:

__________________

Error is not blindness, error is cowardice

__________________

Error is not blindness, error is cowardice

baz
User offline. Last seen 37 weeks 1 day ago. Offline
Joined: 11/12/2009
Posts: 47
Re: Auto Blogging

Great Reply.

Thanks for the tips on the excel sheet. I think this was the part of the process that was missing in my mind...the planning part.

 

Thanks Codex...once I get this straight in my mind, Im sure I'll be back for more.

 

All the best

 

Barry