Comments (9)
i'll try to explain with a example :
if the result page contain this text :
<html>
<video>very cool video</video>
<video>dude fall from tree</video>
<video>very funny</video>
</html>
wee saw that each result began with "<video>"
so i'll use the following code :
while(p=c.indexOf("<video>",p)+1){
so each time we encounter the string "<video>", it mean that the page contain a
video, so we can try to parse the line (extract description/title etc...), and
add it to the Go!Tube result list (the parsing code is inside the while)
Original comment by [email protected]
on 4 Jan 2011 at 4:38
from gotube.
Ok i get it..so its an indicator of the start of where to ext, and i just
choose a string from beginning of result...yes?
Also what is required to be parsed, could i just ext title + desc, or does it
need all info?
I may post a half done script for your input.
Thanks for helping btw
Original comment by [email protected]
on 5 Jan 2011 at 11:36
from gotube.
exactly ;) , the difficulty is to find a string that appear ONLY before video
(not before any fake ads video etc...)
and all property are optional, you can push a result in the list without any
preoperty, you will just get a list of empty "block"
Original comment by [email protected]
on 6 Jan 2011 at 3:34
from gotube.
Good, so thumb and title only is an option.
Do completed sripts just get placed is SITE folder?
I keep getting .js load error when starting GT, problem with script?
Original comment by [email protected]
on 6 Jan 2011 at 11:00
from gotube.
yep place your .js in site folder, and if you get an error :
comment your whole script, then, uncomment the line progressively after each
testing.
Original comment by [email protected]
on 7 Jan 2011 at 12:13
from gotube.
This is what i came up with...i guess video.url is wrong but dont know fix
waiting your input
----------------
var Sexyandfunny = new Object();
Sexyandfunny.rev = 1;
Sexyandfunny.SearchDesc =
Sexyandfunny.Name = "Sexyandfunny";
Sexyandfunny.Search = function (keyword, page){
var result = new Object();
result.bypage = 14;
result.start = (page-1)*result.bypage+1;
c=GetContents('http://www.sexyandfunny.com/search_'+page+'/'+escape(keyword)+'.html'){
result.total = -1;
result.VideoInfo = new Array();
while(p=c.indexOf('<div class=PostRight>',p)+1){
video = new Object();
video.Title = ext('href="/watch_video/','_');
video.id = ext('_','.html');
video.ThumbnailURL = ext('<img src="','width');
video.URL = 'GetContents("http://www.sexyandfunny.com/watch_video/'+video.Title+'_'+video.id+'.html")';
result.VideoInfo.push(video);
}
result.end = result.start-1+result.VideoInf.length;
return result;
}
SiteList.push(Sexyandfunny);
----------------------------
heres the source
------------
<div style="float:left;">
<table cellpadding="0" cellspacing="0">
<tr><td><a href="/watch_video/kami-strips-on-the-stairs_74935.html" target="_blank"><img src="http://www.sexyandfunny.com/_oddity_media/thumbs/img4d19ecdb4c2aa.jpg" width="100" height="75" border="0" style="padding-bottom:0px;"></a></td></tr>
</table>
</div>
<div class=PostText>
<div class=Title><a href="/watch_video/kami-strips-on-the-stairs_74935.html" style="text-decoration:none;" "target="_blank">Kami Strips on the Stairs</a></div>
<div class=PostBody>One of the cutest redheads ever does a quick strip at the top of the stairs. There's a lot of fun to be had on the stairs!</div>
</div>
<div class=PostRight>
<div align="left"><div style="float:right;" align="right"><img src="/images/testheart.gif" height="10" width="13" alt="favorites" border="0" /> 10 </div><div align="left" style="float:left"><a style="text-decoration:none" href="/watch_video/kami-strips-on-the-stairs_74935.html#COMMENTS"><img src="/images/bullet.gif" height="10" width="13" alt="comments" border="0" /> 0 Comments</a></div></div><br />
<table cellpadding="0" cellspacing="0" style="padding-top:2px;">
<tr>
<td style="vertical-align: middle; padding-right:6px;">
Sexy: </td>
<td style="vertical-align: middle;">
<span class="inline-rating">
<ul id="74935_sexy" class="star-rating small-star">
<li id="rate_74935_sexy" class="current-rating" style="width:72%;"></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="one-star">1</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="two-stars">2</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="three-stars">3</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="four-stars">4</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="five-stars">5</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="six-stars">6</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="seven-stars">7</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="eight-stars">8</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="nine-stars">9</a></li>
<li><a href="javascript: var xxx=null;" onclick="javascript: nomember();" class="ten-stars">10</a></li>
</ul>
</span>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align: middle;">
</td>
</tr>
</table>
<div style="padding-top:3px"></div>
<div class=Categories><a href=/sexy-videos_1.html>Sexy Videos</a>, <a href="/tags/kami.html">Kami</a>, <a href="/tags/redhead.html">redhead</a>, <a href="/tags/topless.html">topless</a>, <a href="/tags/stairs.html">stairs</a>, <a href="/tags/thong.html">thong</a>, <a href="/tags/stockings.html">stockings</a></div>
</div>
<div class=clear></div>
</div>
</div>
</div><div class=PostGray>
<div class=PostTop>
<div class=PostBottom>
<div class=clear></div>
Original comment by [email protected]
on 8 Jan 2011 at 10:55
from gotube.
while(p=c.indexOf('<div style="float:left;">
',p)+1){
fix, typo above
Original comment by [email protected]
on 9 Jan 2011 at 7:04
from gotube.
you should try just with description, i can't test now :
while(p=c.indexOf('<div class=PostRight>',p)+1){
video = new Object();
video.Description = ext('<div class=PostBody>');
result.VideoInfo.push(video);
}
Original comment by [email protected]
on 12 Jan 2011 at 8:51
from gotube.
Original comment by [email protected]
on 6 Mar 2011 at 2:00
- Changed state: Done
from gotube.
Related Issues (20)
- youtube.js stopped working HOT 1
- GoTube Help!!!! HOT 1
- Patch for /trunk/biscotte/DailyMotion.js
- Black and White screen problem!
- Playing videos
- WE NEED NEW YOUTUBE SCRIPT! HOT 38
- Dailymtion anyone can fix it for 5.50 gen d3 pls help me and make any pakistani site tune.pk etc pls bros i need your help!!!!!!!!
- Enter one-line summary
- So Thee "So-Called" "Gotube" has the "So-Called" "Youtube.js" outdated i want a new file HOT 3
- youtube problem HOT 2
- 132!!!! :Made a new Go-Tube Script!!! HOT 14
- Please update the gotube or make the dailymotion working on psp 2000 6.61 system
- UPDATE THE DAILYMOTION FOR 6.61 SYSTEM TIMMER 00:00 BLACK SCREEN HOT 1
- Youtube first slot shows Support of Device HOT 2
- !Experimental! : try this script i made, tell me if it works or not! HOT 19
- Device Support HOT 2
- We have some known issues with hg repositories. (gotube 1.3?)
- Can't get ever youtube result list
- psp Crashes on gotube loading screen
- I could try to make a homebrew but I need people
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotube.