Automated Tube Pornsite Guide
Automated Tube Pornsite Guide
Automated Tube Pornsite Guide
What you must know for now about XML-RPC is that you can post articles consisting of
title, thumbnail, categories, keywords and, of course, embed codes programmatically on any
Wordpress website. This way you just have to worry about keeping your server up and
running and whenever needed, upgrade it or get more space to host the images or support a
larger database. Once you start generating revenue it'll pay for itself and from my experience
this kind of website pays for itself from the first month.
I'll leave you a little script at the end of this guide which will automatically post videos
for you immediately after setting up your website.
Now, where do you get the videos which you will automatically post?
There are a lot of sites nowadays offering their entire database of videos which you
can parse and post on your own website but parsing an entire database takes time and CPU
power, plus adding too many videos at a time doesn't look too good from a search engine's
point of view. It's best to stick with the latest added videos of a website.
I found http://x-vids.eu/ which gives you exactly that. It provides JSON object arrays of
the last added videos globally or based on category. The downside to it is that it has a whole
fuckload of categories and you have to filter out the most updated ones. I always choose
Amateur, Anal, Fetish, Japanese and all the other mainstream ones. Sticking to the
globally latest added is also a good idea as they add videos quite often and checking once
every hour or so for new videos usually gets at least 5 new ones from different categories.
On http://x-vids.eu/en/webmasters you will find links to the public JSON files which you
can use to parse using any programming language. What they provide is the title, link,
thumbnail, embed code, description and categories of videos. This is perfect for all tube porn
websites and the script I'll provide will use their latest videos JSON file to post to your
Wordpress website.
Now how do you monetize your site?
I mostly use popup ads as they have the highest CPM payout rate. CPM is what I go
for as it's the easiest way to get revenue. Advertisers just want you to send traffic, they don't
care if the user does any action on the advertised pages or not, which is perfect as users
usually just browse away or keep the page open in the background while they watch their
favorite piece of porn. The best networks I've worked with are the following (use my ref links
and it won't cost you extra):
https://www.popads.net (ref link: https://www.popads.net/users/refer/54703)
http://www.clickadu.com/ (ref link: http://www.clickadu.com/?rfd=kWT)
http://popcash.net/ (ref link: http://popcash.net/register/39221)
Register to each of these and either put them up in a script rotator or put all of them at
once in your website. It won't hurt too much to have the user close more windows until jerking
off.
Once you have the website automatically populated and ready to generate revenue it's
time to start getting some visits. The first thing you want to do is give your site visible to
search engines. The fast way to do this is by checking out all of the free backlink / ping miniservices which you can find on this list: http://www.crawlist.net/2014/03/Easily-get-26500-freebacklink-for-your-website.html. Some of the providers are down but you'll find some good
ones on there. Just enter your homepage URL and leave the pages in the background for a
couple of hours.
Now the second thing you need is a twitter account where you'll post links to the
videos. Make sure your website's theme is twitter-ready by tweeting a test URL and check if
the card is correctly visible. Get an If This Then That (https://ifttt.com/) account, authenticate
your twitter account and add a RSS to Twitter recipe. Wordpress automatically generates
RSS feeds (http://example.com/feed/) which IFTTT will use to post new pages to your twitter
account. Once your recipe starts posting you can expect a constant traffic flow to your
website.
And that's all about it! You now have a fully functional, automated tube porn website
which will definitely generate a constant income for you. How much, that depends on the time
you put into your marketing campaigns, tuning your website, how well your server keeps up
with the growing website, how well your on-site SEO is and so on. But all of these are another
story which you can find about just by googling and chatting with other website owners.
Good luck!
Here you have the PHP Wordpress auto-poster which fetches videos from X-Vids's latest
JSON list.
What you need to do is go to your hosting account and find the file manager.
On hostinger you will find it under Files in the host manager. There you will find the folder
named public_html. Go in there and you should see your Wordpress files. Click on the New
File button and create the wp-porn-poster.php file containing all the code you have
highlighted below, including the <?php and ?> enclosures.
Edit the wp_url, wp_user and wp_pass constants to match your setup, save and let's make it
run once every hour.
Hostinger free accounts have a max execution time set to 30 seconds so you will need to
change that constant too. Also having this 30 seconds limit will only give you time to post one
video at a time.
Go back to the host manager and under Advanced you can find Cron Jobs. Choose the
Once an hour common option and under Command to run add wp-porn-poster.php next to
/usr/bin/wget http://yoursite.com/
<?php
// Your WP credentials
define('wp_url', 'http://yoursite.com');
define('wp_user', 'your_username');
define('wp_pass', 'your_password123');
// Your WP credentials
define('max_exec_time', 30);
ini_set('max_execution_time', max_exec_time);
define('history_file', sprintf(
'%s/wp-porn-poster.history.log',
dirname(__FILE__)
));
function curlRequest($request) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
curl_setopt($ch, CURLOPT_URL, rtrim(wp_url, '/').'/xmlrpc.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$results = curl_exec($ch);
curl_close($ch);
return $results;
}
function wpPostXMLRPC($title, $body, $categories, $keywords, $image=false) {
$title = htmlentities($title);
$params = [0, wp_user, wp_pass, [
'post_status' => 'publish',
'post_type' => 'post',
'post_title' => $title,
'post_content' => $body,
'terms_names' => [
'category' => $categories,
'post_tag' => $keywords
]
]];
$newPostId = xmlrpc_decode(curlRequest(
xmlrpc_encode_request(
'wp.newPost', $params
)
));
if($newPostId && $image) {
$file = file_get_contents($image);
xmlrpc_set_type($file, 'base64');
$params = [0, wp_user, wp_pass, [
'name' => time().'.jpg',
'type' => 'image/jpeg',
'bits' => $file,
'overwrite' => true,
'post_id' => $newPostId
]];
$newImage = xmlrpc_decode(curlRequest(
xmlrpc_encode_request(
'wp.uploadFile', $params
)
));
if($newImage) {
if(array_key_exists('id', $newImage)) {
xmlrpc_decode(curlRequest(xmlrpc_encode_request(
'wp.editPost', [0, wp_user, wp_pass, $newPostId, [
'post_thumbnail' => $newImage['id']
]]
)));
}
}
}
return $newPostId;
}
function alreadyPosted($url) {
if(!file_exists(history_file)) {
return false;
}
$fhandle = fopen(history_file, 'r');
if(!$fhandle) {
return false;
}
while(!feof($fhandle)) {
$line = trim(fgets($fhandle));
if($url == $line) {
return true;
}
}
fclose($fhandle);
return false;
}
$items_json = file_get_contents('http://x-vids.eu/en/latest/json');
$items = json_decode($items_json, true);
foreach($items as $item) {
if(alreadyPosted($item['link'])) {
continue;
}
$_ = explode(' ', $item['title']);
$_ = array_unique(array_map(function($kw) {
$kw = preg_replace('/[^a-z0-9]/is', '', $kw);
if($kw) {
return strtolower($kw);
}
}, $_));
asort($_);
$keywords = $_;