Adult Script Pro Community Forums

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.

#1 2011-06-22 15:31:57

asko
Member
Registered: 2011-05-11
Posts: 138

Command to run for a cron for mass embed?

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

#2 2011-06-22 21:22:48

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Command to run for a cron for mass embed?

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

#3 2011-06-22 22:39:26

MoFo
Member
Registered: 2011-06-21
Posts: 20

Re: Command to run for a cron for mass embed?

Tag for later

Offline

#4 2011-06-22 22:41:52

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Command to run for a cron for mass embed?

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

#5 2011-06-22 23:53:51

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Command to run for a cron for mass embed?

@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

#6 2011-06-23 00:38:51

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Command to run for a cron for mass embed?

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

#7 2011-06-23 01:20:49

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Command to run for a cron for mass embed?

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 sad

Last edited by thiva7 (2011-06-23 01:21:34)

Offline

#8 2011-06-23 02:24:01

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Command to run for a cron for mass embed?

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

#9 2011-06-23 02:32:24

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Command to run for a cron for mass embed?

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

#10 2011-06-23 12:22:34

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Command to run for a cron for mass embed?

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

#11 2011-06-23 12:48:52

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Command to run for a cron for mass embed?

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

#12 2011-06-23 13:20:50

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Command to run for a cron for mass embed?

ok sorry man...i just try to help sad

Offline

#13 2011-06-23 17:55:42

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Command to run for a cron for mass embed?

smile 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

#14 2011-07-29 21:34:33

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Command to run for a cron for mass embed?

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

#15 2011-11-15 14:52:57

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Command to run for a cron for mass embed?

both php files do not work for me sad


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#16 2011-11-16 12:43:27

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Command to run for a cron for mass embed?

works now thanks


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#17 2012-08-23 00:11:31

ptsguy
Member
Registered: 2012-08-06
Posts: 135

Re: Command to run for a cron for mass embed?

What did you do to get these working, I am interested in a couple of the sites on the embed list.

Offline

#18 2012-08-23 06:59:10

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Command to run for a cron for mass embed?

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

#19 2012-08-23 13:24:39

ptsguy
Member
Registered: 2012-08-06
Posts: 135

Re: Command to run for a cron for mass embed?

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

Board footer

Powered by FluxBB