Convivea

Bit Che => Scripts & Development => Topic started by: Exoskeletor on December 15, 2006, 04:15:39 am

Title: Greek-Tracker script almost perfect
Post by: Exoskeletor on December 15, 2006, 04:15:39 am
hell yeah. im getting all the results except the leechers because its in the form: q(10): <td class="row2" align=right>1

Code: [Select]
q(0):
<tr>
<td align=center style='padding: 0px'><a href="browse.php?cat=5"><img border="0" src="pic/cat_musicvideos_video.gif" alt="Video Clips" /></a>

q(1):

<td class="row2" align="left"><a href="details.php?id=12450&amp;hit=1"><b>Nightwish[Wish I Had An Angel]</b></a><a class="index" href="download.php/12450/Nightwish_-_Wish_I_Had_An_Angel.avi.torrent"><img style=border:none alt=download src=pic/download.gif align=right></a><td class="row2" align=center><nobr>None</nobr>

q(2):



q(3):

<td class="row2" align="right"><b><a href="details.php?id=12450&amp;hit=1&amp;filelist=1">1</a></b>

q(4):

<td class="row2" align="right"><b><a href="details.php?id=12450&amp;hit=1&amp;tocomm=1">7</a></b>

q(5):

<td class="row2" align=center><nobr>2006-12-07<br />17:31:44</nobr>

q(6):

<td class="row2" align=center>195<br>hours

q(7):

<td class="row2" align=center>80.19<br>MB

q(8):

<td class="row2" align=center><a href=viewsnatches.php?id=12450>28<br>times</a>

q(9):

<td class="row2" align="right"><span class="green">1</span>

q(10):

<td class="row2" align=right>1

[script]
name=Greek-Tracker.com
home=http://www.greek-tracker.com
pwd=1
login=http://www.greek-tracker.com/takelogin.php
form=username=%USER%&password=%PASS%
failed=action="takelogin.php"
failed2=?returnto=
main=http://www.greek-tracker.com/browse.php?

c14=1&c13=1&c16=1&c15=1&c7=1&c8=1&c10=1&c11=1&c9=1&c12=1&c4=1&c2=1&c1=1&c3=1&c5=1&in

cldead=0&search=%SEARCH%


Code: [Select]
x=h(x,d,Seeders</a></td>,/tr>)
z=i(x,d,</table>)
d=c(d,x,z)
d=replace(d,</td>,[-bc-]</td>)
r=split(d,</tr>)
start
q=split(r,</td>,3)
t=array(q,1)
z=i(z,t,href=)
3=x(t,z,",",http://www.greek-tracker.com/)
z=i(z,t,<b>)
1=x(t,z,>,</)
z=i(z,t,href=)
7=x(t,z,",",http://www.greek-tracker.com/)
t=array(q,7)
t=replace(t,<br>, )
2=x(t,z,>,[-bc-])
t=array(q,9)
z=i(z,t,<span)
5=x(t,z,>,</)
t=array(q,10)
6=x(t,z,>, )
aloop

everything else works perfect

(remind me how is enter in vb6. ctrf something like that)
Title: Re: Greek-Tracker script almost perfect
Post by: chip! on December 15, 2006, 04:26:40 am
just change that last line to use the "[-bc-]" tag that got added with "d=replace(d,</td>,[-bc-]</td>)"

seems to be working :)  great job with the scripts!!

Code: [Select]
x=h(x,d,Seeders</a></td>,/tr>)
z=i(x,d,</table>)
d=c(d,x,z)
d=replace(d,</td>,[-bc-]</td>)
r=split(d,</tr>)
start
q=split(r,</td>,3)
t=array(q,1)
z=i(z,t,href=)
3=x(t,z,",",http://www.greek-tracker.com/)
z=i(z,t,<b>)
1=x(t,z,>,</)
z=i(z,t,href=)
7=x(t,z,",",http://www.greek-tracker.com/)
t=array(q,7)
t=replace(t,<br>, )
2=x(t,z,>,[-bc-])
t=array(q,9)
z=i(z,t,<span)
5=x(t,z,>,</)
t=array(q,10)
6=x(t,z,>,[-bc-])
aloop


if you do any changing to the HTML (such as with the replace( function) its definitely easier to look at the 'Q' array display from inside the debugger to look at the changes in real time:

Code: [Select]
q Array: 11 items)

q(0):
/tr>
<tr>
<td align=center style='padding: 0px'><a href="browse.php?cat=3"><img border="0" src="pic/cat_music_music.gif" alt="Music - Other" /></a>[-bc-]

q(1):

<td class="row2" align="left"><a href="details.php?id=12529&amp;hit=1"><b>Armin van Buuren-ASOT 278[2006/MP3/192]</b></a><a class="index" href="download.php/12529/Armin%20van%20Buuren%20-%20A%20State%20of%20Trance%20278.torrent"><img style=border:none alt=download src=pic/download.gif align=right></a><td class="row2" align=center><nobr>None</nobr>[-bc-]

q(2):

[-bc-]

q(3):

<td class="row2" align="right"><b><a href="details.php?id=12529&amp;hit=1&amp;filelist=1">1</a></b>[-bc-]

q(4):

<td class="row2" align="right"><b><a href="details.php?id=12529&amp;hit=1&amp;tocomm=1">2</a></b>[-bc-]

q(5):

<td class="row2" align=center><nobr>2006-12-08<br />14:39:02</nobr>[-bc-]

q(6):

<td class="row2" align=center>174<br>hours[-bc-]

q(7):

<td class="row2" align=center>167.00<br>MB[-bc-]

q(8):

<td class="row2" align=center><a href=viewsnatches.php?id=12529>15<br>times</a>[-bc-]

q(9):

<td class="row2" align="right"><span class="green">2</span>[-bc-]

q(10):

<td class="row2" align=right>1[-bc-]
Title: Re: Greek-Tracker script almost perfect
Post by: Exoskeletor on December 15, 2006, 04:33:38 am
hell yeah now its working. i was so close :D
for ratio im getting whatever im getting for seeders also. which line is responsible for ratio? i though bit che was generate it from s/l
Title: Re: Greek-Tracker script almost perfect
Post by: chip! on December 15, 2006, 04:35:40 am
yeah it is auto calculated.. but  if you have 2 seeders and 1 leechers, then the ratio is 2 (same as seeders).. because  (2/1)=2 ..

Title: Re: Greek-Tracker script almost perfect
Post by: Exoskeletor on December 15, 2006, 04:38:39 am
so i have complete a script 99% then.. :) im going to upload it on the other thread