Convivea Home  -  Downloads  -  Donate!  -  IRC Chat!

*
*
Home
Help
Search
Login
Register
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 19, 2013, 06:27:33 pm

Login with username, password and session length
Summer is approaching!! Smiley Smiley
Search:     Advanced search
19231 Posts in 1871 Topics by 28442 Members Latest Member: - gelonniemoore Most online today: 59 - most online ever: 406 (February 03, 2008, 03:41:03 pm)
Pages: [1]   Go Down
Print
Author Topic: Greek-Tracker script almost perfect  (Read 5232 times)
0 Members and 1 Guest are viewing this topic.
Exoskeletor
Full Member
***

Karma: +37/-0
Offline Offline

Gender: Male
Posts: 190


Live And Let Die


View Profile
« on: December 15, 2006, 12:15:39 pm »

hell yeah. im getting all the results except the leechers because its in the form: q(10): <td class="row2" align=right>1

Code:
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:
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)
« Last Edit: December 15, 2006, 12:25:19 pm by Exoskeletor » Logged
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2040



View Profile
« Reply #1 on: December 15, 2006, 12:26:40 pm »

just change that last line to use the "[-bc-]" tag that got added with "d=replace(d,</td>,[-bc-]</td>)"

seems to be working Smiley  great job with the scripts!!

Code:
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:
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-]
« Last Edit: December 15, 2006, 12:29:12 pm by chip! » Logged

  -  http://bitche.es  -   And...  boom goes the dynamite.
Exoskeletor
Full Member
***

Karma: +37/-0
Offline Offline

Gender: Male
Posts: 190


Live And Let Die


View Profile
« Reply #2 on: December 15, 2006, 12:33:38 pm »

hell yeah now its working. i was so close Cheesy
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
Logged
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2040



View Profile
« Reply #3 on: December 15, 2006, 12:35:40 pm »

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 ..

Logged

  -  http://bitche.es  -   And...  boom goes the dynamite.
Exoskeletor
Full Member
***

Karma: +37/-0
Offline Offline

Gender: Male
Posts: 190


Live And Let Die


View Profile
« Reply #4 on: December 15, 2006, 12:38:39 pm »

so i have complete a script 99% then.. Smiley im going to upload it on the other thread
Logged
Pages: [1]   Go Up
Print
Convivea Forums  |  Bit Che  |  Scripts & Development  |  Topic: Greek-Tracker script almost perfect
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.036 seconds with 18 queries.