The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Could you please tell me how to create cron job, what to write in cron command & files to create to make script mass embed automatically.
My host panel has an 'easy mode' for this, so no need to specify time&date with unix commands all i need is path to file, but what to write in this file?
For example get mass embed from xvideos 'http://www.xvideos.com/best/' ?
Last edited by asko (2011-06-22 23:27:12)
Offline
you cant i thing......the only ways to get videos from admin panel is upload,mass embed,embed,rss-csv ( sponsor only ) you can get i thing this way video
Offline
Tag for later
Offline
thiva7, the cron is set on server, not from admin, adltscriptpro programmer told me it was possible when i bought script, but we never went into details, but now i am ready, so need to know what to write in command line in server cron manager or what file to create or how ever it would be done for adltscriptpro. Then i will set cron jobs and automate site to grow on its own, surely i will have to check and eliminate bad videos, doubles and out dated site crawlers periodically. I think many would like to know how to do this as it can be very useful
I think symtab knows how
Last edited by asko (2011-06-22 23:24:26)
Offline
@asko i know how work cron....but im talkind about how ASP get videos from xvideo etc.
you can set cron to get videos from "all supported site" not from specific site.becuse i thing xvideo is not work well with embed videos ( the most is not have thumbs )
etc : /home/your-username/public_html/cron/video_feed.php
/home/your-username/public_html/cron/video_embed.php
you can add this directory
Offline
xvideos works nice for me .
i know that only embedable sites.
Can you explain in exact detail how do do for http://www.xvideos.com/best/ :
i think:
/home/your-username/public_html/cron/video_feed.php
/home/your-username/public_html/cron/video_embed.php
are already doing something else...
what would you put in file to get http://www.xvideos.com/best/ ?
I think symtab knows exactly how to do it all
Last edited by asko (2011-06-23 00:50:45)
Offline
this grab videos : /home/your-username/public_html/cron/video_feed.php
this embed videos :/home/your-username/public_html/cron/video_embed.php
do you want to see what doing? try this :
run this link in your browser
http://www.yourdomain.com/cron/video_embed.php
and thats will embed videos from supported sites.
and about to get videos only from "http://www.xvideos.com/best/" with cron i dont know
Last edited by thiva7 (2011-06-23 01:21:34)
Offline
maybe i need to know the rest of the url of the admin Video> MassEmbed once fields&url are filled in?
http://www.yourdomain.com/admin/index.php?q=grab
??? I only guessing, sure of nothing
Last edited by asko (2011-06-23 02:33:39)
Offline
These ar the 2 files you are talking about
video_feed.php:
<?php
define('_VALID', true);
define('_CONSOLE', true);
$base_dir = realpath(dirname(__FILE__).'/../');
require $base_dir.'/libraries/bootstrap.php';
set_time_limit(0);
$db = VF::factory('database');
$db->query("SELECT *
FROM #__video_feeds
WHERE status = '1'
ORDER BY last_updated ASC
LIMIT 1");
if ($db->affected_rows()) {
$options = $db->fetch_assoc();
$feed = VHelper::load('admin.rss.feed', TRUE);
$feed->set_options($options);
$feed->parse();
}
VF::close();
video_embed.php:
<?php
define('_VALID', true);
define('_CONSOLE', true);
$base_dir = realpath(dirname(__FILE__).'/../');
require $base_dir.'/libraries/bootstrap.php';
set_time_limit(0);
$php_cli_path = VF::cfg_item('php_cli_path');
$unique = time().'_'.mt_rand();
$gcfg = VF::cfg('module.grab');
foreach ($gcfg['urls'] as $name => $url) {
if ($url != '') {
$cmd = $php_cli_path.' '.ADMIN_DIR.'/modules/grab/scripts/grab.php '.$url.' '.$gcfg['user_id'].' '.$gcfg['category'].' 1 '.$unique;
exec(escapeshellcmd($cmd));
}
}
VF::close();
Last edited by asko (2011-06-23 02:34:23)
Offline
we should talk about video_embed.php file...... you want to get video from xvideo ( so only embed ) .
why you want only videos from xvideos?
Offline
Ok thiva7 i appreciate your help but, you don't seem to have an answer so please...i get the impression we are making empty talk, please wait for symtab to give an answer.
Last edited by asko (2011-06-23 18:01:52)
Offline
ok sorry man...i just try to help
Offline
smile ok sorry too, i'm going to need some pills if i have to look any longer for an answer, maybe that's the section that has to be filled, but i would not exactly know how for sure.
It does contain:
"$cmd = $php_cli_path.' '.ADMIN_DIR.'>>>>>>>>>>>>>>>>>>>>>/modules/grab/scripts/grab.php " THE PATH TO THE MASS EMBED MODULE
Last edited by asko (2011-06-29 17:29:10)
Offline
Try this to get all videos from youtube:
<?php
define('_VALID', true);
define('_CONSOLE', true);
$base_dir = realpath(dirname(__FILE__).'/../');
require $base_dir.'/libraries/bootstrap.php';
set_time_limit(0);
$php_cli_path = VF::cfg_item('php_cli_path');
$unique = time().'_'.mt_rand();
for ($page=1; $page <= 500; $page++) {
$url = 'http://www.redtube.com/?page='.$page;
$cmd = $php_cli_path.' '.ADMIN_DIR.'/modules/grab/scripts/grab.php '.$url.' 2 0 1 '.$unique;
exec(escapeshellcmd($cmd));
}
VF::close();
?>
Or if you want only the latest videos:
<?php
define('_VALID', true);
define('_CONSOLE', true);
$base_dir = realpath(dirname(__FILE__).'/../');
require $base_dir.'/libraries/bootstrap.php';
set_time_limit(0);
$php_cli_path = VF::cfg_item('php_cli_path');
$unique = time().'_'.mt_rand();
for ($page=1; $page <= 500; $page++) {
$url = 'http://www.redtube.com/?page='.$page;
$cmd = $php_cli_path.' '.ADMIN_DIR.'/modules/grab/scripts/grab.php '.$url.' 2 0 1 '.$unique;
exec(escapeshellcmd($cmd));
}
VF::close();
<?php
define('_VALID', true);
define('_CONSOLE', true);
$base_dir = realpath(dirname(__FILE__).'/../');
require $base_dir.'/libraries/bootstrap.php';
set_time_limit(0);
$php_cli_path = VF::cfg_item('php_cli_path');
$unique = time().'_'.mt_rand();
$cmd = $php_cli_path.' '.ADMIN_DIR.'/modules/grab/scripts/grab.php http://www.redtube.com 2 0 1 '.$unique;
exec(escapeshellcmd($cmd));
VF::close();
Same applies to all sites, you just need to change the URLs.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
What did you do to get these working, I am interested in a couple of the sites on the embed list.
Offline
In versions >= 1.0 you only need to add /path/to/path/php-cli-binary /where/script/is/installed/cron/cron.php to your php (daily) and edit config/cron.php. For mass embed also check Admin -> Extend -> Module -> Mass Embed.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
lets say I want to populate my site with a gangload of embeds and I want first 50 pages from every site listed in the modules... How would I go about doing this using this module?
Offline