forked from Mondego/TubeKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.php
executable file
·146 lines (145 loc) · 10.8 KB
/
setup.php
1
<?php // TubeKit Beta 4 // http://www.tubekit.org // Author: Chirag Shah // Date: 10/22/2009 require_once("header.php");?> <form action="runsetup.php" method="post"> <table class="body" width=90%> <tr> <td valign=top> <fieldset><legend><b>Basic Configuration</b></legend> Name of the project <input type="text" size=15 name="project"/> Prefix <input type="text" size=4 name="prefix"/><br/> Directory to store the crawler <input type="text" name="cdirectory" size=30/><br/><!-- Path to Magpie RSS parser <input type="text" name="magpie" size=30/><br/> --> Path to youtube_dl <input type="text" name="ytdl" size=30/> (only required if you want to download flash videos)<br/> No. of videos per query (up to 1000) <input type="text" name="numvideos" size=4/> </fieldset> </td> <td valign=top> <fieldset><legend><b>Database Setup</b></legend> Host name <input type="text" name="dbhost" value="localhost"><br/> Name of the database <input type="text" name="dbname"> (should not already exist)<br/> User name <input type="text" name="dbusername"><br/> Password <input type="text" name="password"> </fieldset> </td> </tr> <tr> <td width=50%> <fieldset><legend><b>YouTube Setup</b></legend> <table class="body"> <tr> <td>Indicate how often each of these items should be crawled </td><td>Never </td><td>Once </td><td>Every time<td> </tr> <tr> <td colspan=4><hr></td> </tr> <tr bgcolor="#FFFFAA"> <td>Title </td><td align="center"><input type="radio" name="title" value="never"/></td><td align="center"><input type="radio" name="title" value="once" checked/></td><td align="center"><input type="radio" name="title" value="everytime"/></td> </tr> <tr> <td>Description </td><td align="center"><input type="radio" name="description" value="never"></td><td align="center"><input type="radio" name="description" value="once" checked/></td><td align="center"><input type="radio" name="description" value="everytime"></td> </tr> <tr bgcolor="#FFFFAA"> <td>Username </td><td align="center"><input type="radio" name="username" value="never"></td><td align="center"><input type="radio" name="username" value="once" checked/></td><td align="center"><input type="radio" name="username" value="everytime"></td> </tr> <tr> <td>Time when video added </td><td align="center"><input type="radio" name="upload_time" value="never"></td><td align="center"><input type="radio" name="upload_time" value="once" checked/></td><td align="center"><input type="radio" name="upload_time" value="everytime"></td> </tr> <tr bgcolor="#FFFFAA"> <td>Duration in seconds </td><td align="center"><input type="radio" name="duration" value="never"></td><td align="center"><input type="radio" name="duration" value="once" checked/></td><td align="center"><input type="radio" name="duration" value="everytime"></td> </tr> <tr> <td>Category </td><td align="center"><input type="radio" name="category" value="never"></td><td align="center"><input type="radio" name="category" value="once" checked/></td><td align="center"><input type="radio" name="category" value="everytime"></td> </tr> <tr bgcolor="#FFFFAA"> <td>Keywords </td><td align="center"><input type="radio" name="keywords" value="never"></td><td align="center"><input type="radio" name="keywords" value="once" checked/></td><td align="center"><input type="radio" name="keywords" value="everytime"></td> </tr> <tr> <td>Video-page URL </td><td align="center"><input type="radio" name="video_url" value="never"></td><td align="center"><input type="radio" name="video_url" value="once" checked/></td><td align="center"><input type="radio" name="video_url" value="everytime"></td> </tr> <tr bgcolor="#FFFFAA"> <td>Thumbnail URL </td><td align="center"><input type="radio" name="thumb_url" value="never"></td><td align="center"><input type="radio" name="thumb_url" value="once" checked/></td><td align="center"><input type="radio" name="thumb_url" value="everytime"></td> </tr> <tr> <td>Number of views </td><td align="center"><input type="radio" name="view_count" value="never"></td><td align="center"><input type="radio" name="view_count" value="once"></td><td align="center"><input type="radio" name="view_count" value="everytime" checked/></td> </tr> <tr bgcolor="#FFFFAA"> <td>Number of ratings </td><td align="center"><input type="radio" name="rating_count" value="never"></td><td align="center"><input type="radio" name="rating_count" value="once"></td><td align="center"><input type="radio" name="rating_count" value="everytime" checked/></td> </tr> <tr> <td>Average rating </td><td align="center"><input type="radio" name="rating_avg" value="never"></td><td align="center"><input type="radio" name="rating_avg" value="once"></td><td align="center"><input type="radio" name="rating_avg" value="everytime" checked/></td> </tr> <tr bgcolor="#FFFFAA"> <td>Number of comments </td><td align="center"><input type="radio" name="comment_count" value="never"></td><td align="center"><input type="radio" name="comment_count" value="once"></td><td align="center"><input type="radio" name="comment_count" value="everytime" checked/></td> </tr> <tr> <td>Number of video responses </td><td align="center"><input type="radio" name="response_count" value="never"></td><td align="center"><input type="radio" name="response_count" value="once"></td><td align="center"><input type="radio" name="response_count" value="everytime" checked/></td> </tr> <tr bgcolor="#FFFFAA"> <td>Number of times favorited </td><td align="center"><input type="radio" name="favorite_count" value="never"></td><td align="center"><input type="radio" name="favorite_count" value="once"></td><td align="center"><input type="radio" name="favorite_count" value="everytime" checked/></td> </tr> <tr> <td>Rank in the rank-list for a query </td><td align="center"><input type="radio" name="rank" value="never"></td><td align="center"><input type="radio" name="rank" value="once"></td><td align="center"><input type="radio" name="rank" value="everytime" checked/></td> </tr> <tr> <td>Related video for each URL </td><td align="center"><input type="radio" name="related_id" value="never"></td><td align="center"><input type="radio" name="related_id" value="once"></td><td align="center"><input type="radio" name="related_id" value="everytime" checked/></td> </tr> <tr> <td>InResponse video for each URL </td><td align="center"><input type="radio" name="inresponse" value="never"></td><td align="center"><input type="radio" name="inresponse" value="once"></td><td align="center"><input type="radio" name="inresponse" value="everytime" checked/></td> </tr> <tr> <td>Rating:Likes </td><td align="center"><input type="radio" name="likes" value="never"></td><td align="center"><input type="radio" name="likes" value="once"></td><td align="center"><input type="radio" name="likes" value="everytime" checked/></td> </tr> <tr> <td>Rating:DisLikes </td><td align="center"><input type="radio" name="dislikes" value="never"></td><td align="center"><input type="radio" name="dislikes" value="once"></td><td align="center"><input type="radio" name="dislikes" value="everytime" checked/></td> </tr> </table> </fieldset> </td> <td valign="top" width=50%><br/> <ul> <li>Make sure the directory that you choose to store the crawler in 'Basic Configuration' has recursive read+write access to your web-server.</li> <li>While giving the directory paths in 'Basic Configuration', do not put '/' at the end.</li> <li>Typical values for 'YouTube Setup' are already selected as the default.</li> <li>What's the difference between 'once' and 'everytime'?<br/>'Once' attributes are recorded only the first time when the video is encountered by the crawler. You want to do this for the attributes that don't change over the time, such as the title of a video.<br/>'Everytime' attributes are recorded everytime the crawler visits a video. You want to do this for the attributes that keep changing, such as the number of videos for a video.</li> <li>In 'Crawling Setup', use '*' as the value to ignore that parameter. For instance, if you want to run a process for every month of the year, put '*' in month. Once again, typical values are already given. Executing the queries and collecting 'once' attributes are scheduled to be executed at midnight (hour:0, min:0); collecting 'everytime' attributes are scheduled to be executed at 1am.</li> </ul> </td> </tr> <tr> <td colspan=2> <fieldset><legend><b>Crawling Setup</b></legend> <table class="body"> <tr> <td>Event </td><td> Month (1-12) </td><td> Day of month (1-31) </td><td> Day of week (0-6) </td><td> Hour (0-23) </td><td> Min (0-59) </td> </tr> <tr> <td colspan=6><hr></td> </tr> <tr> <td>Execute queries</td><td align=center><input type="text" size=2 name="qmo" value="*"></input></td><td align=center><input type="text" size=2 name="qdm" value="*"></input></td><td align=center><input type="text" size=2 name="qdw" value="*"></input></td><td align=center><input type="text" size=2 name="qho" value="0"></input></td><td align=center><input type="text" size=2 name="qmi" value="0"></input></td> </tr> <tr> <td>Crawl</td><td align=center><input type="text" size=2 name="cmo" value="*"></input></td><td align=center><input type="text" size=2 name="cdm" value="*"></input></td><td align=center><input type="text" size=2 name="cdw" value="*"></input></td><td align=center><input type="text" size=2 name="cho" value="1"></input></td><td align=center><input type="text" size=2 name="cmi" value="0"></input></td> </tr> <tr> <td>Download videos in Flash format</td><td align=center><input type="text" size=2 name="dmo" value="*"></input></td><td align=center><input type="text" size=2 name="ddm" value="*"></input></td><td align=center><input type="text" size=2 name="ddw" value="*"></input></td><td align=center><input type="text" size=2 name="dho" value="2"></input></td><td align=center><input type="text" size=2 name="dmi" value="0"></input></td> </tr> <tr> <td>Convert videos to MPEG</td><td align=center><input type="text" size=2 name="mmo" value="*"></input></td><td align=center><input type="text" size=2 name="mdm" value="*"></input></td><td align=center><input type="text" size=2 name="mdw" value="*"></input></td><td align=center><input type="text" size=2 name="mho" value="4"></input></td><td align=center><input type="text" size=2 name="mmi" value="0"></input></td> </tr> </table> </fieldset> </td> </tr> </table> <input type="submit" value="Run Setup"></input> </center> </body><?php require_once("footer.php");?></html>