Alright, so I've lurked on here long enough, here's a quick and dirty way to start an automated Video site using Wordpress, a simple plug-in and some simple PHP.
0. Decide what type of site you want to have (dumb people, music videos, car racing, etc), and, more importantly, what your income stream will be (adsense, affilate, etc).
1. Download and install Wordpress.
2. Install the TubePress plug-in.
3. Now, the TubePress plug-in has to be run manually, we're going to make it automated, here's how. Create a new php file somewhere on your server and pop this in it (don't forget to edit to reflect your particular site)
This script will login to your Wordpress install and run the Tubepress script for you with your selected Keyword and populate a Category. You can load this file directly and it will prompt you for the Keyword and Category you want to use for quick additions. But to automate:
5. In your CPanel, edit your cron jobs to add the following to run once or twice a day:
6. Install a nice wordpress theme that goes with your site topic (no death metal themes on a kitten site), and throw in some ads of your choice and you're all set.
0. Decide what type of site you want to have (dumb people, music videos, car racing, etc), and, more importantly, what your income stream will be (adsense, affilate, etc).
1. Download and install Wordpress.
2. Install the TubePress plug-in.
3. Now, the TubePress plug-in has to be run manually, we're going to make it automated, here's how. Create a new php file somewhere on your server and pop this in it (don't forget to edit to reflect your particular site)
PHP:
<?
if (!empty($_GET['wpcat'])) {
$wpcat = urlencode($_GET['wpcat']);
$keyword = urlencode($_GET['keyword']);
$url = 'http://YOURSITE.com/wp-login.php';
$url2 = urlencode('http://YOURSITE.com/wp-admin/admin.php?page=tubepress-tag.php');
$post = 'log=WORDPRESSLOGIN&pwd=WORDPRESSPASSWORD&testcookie=1&redirect_to='.$url2.'&submit=Login';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookies.txt");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 10);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
echo curl_exec($ch);
curl_close($ch);
$urlb = 'http://YOURSITE.com/wp-admin/admin.php?page=tubepress-tag.php';
$postb = 'tag='.$keyword.'&per_page=50&page=1&cat='.$wpcat.'&update_tp=Import+Videos+%C2%BB';
$chb = curl_init($urlb);
curl_setopt($chb, CURLOPT_COOKIEJAR, "/tmp/cookies.txt");
curl_setopt($chb, CURLOPT_COOKIEFILE, "/tmp/cookies.txt");
curl_setopt($chb, CURLOPT_FOLLOWLOCATION, 10);
curl_setopt($chb, CURLOPT_POSTFIELDS, $postb);
curl_setopt($chb, CURLOPT_RETURNTRANSFER, 1);
echo curl_exec($chb);
curl_close($chb);
} else {
?>
<html>
<head>
</head>
<body>
<form method="get">
<p>Category: <input type="test" name="wpcat"></p>
<p>Keyword:<input type="test" name="keyword"></p>
<input type="submit">
</form>
</body>
<? } ?>
5. In your CPanel, edit your cron jobs to add the following to run once or twice a day:
HTML:
curl --output=/dev/null "http://YOURSITE.COM/SCRIPTLOCATION.php?wpcat=WORDPRESSCATEGORY&keyword=KEYWORD"