Convivea Home  -  Downloads  -  Donate!  -  IRC Chat!

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

Login with username, password and session length
Summer is approaching!! Smiley Smiley
Search:     Advanced search
19237 Posts in 1873 Topics by 28450 Members Latest Member: - lar46 Most online today: 50 - most online ever: 406 (February 03, 2008, 07:41:03 am)
Pages: [1]   Go Down
Print
Author Topic: Making a script for DidiDave.com & Revolutiontt.com  (Read 13661 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 12, 2006, 10:43:16 pm »

im trying to make a script for dididave.com
I have done this for beggining
Code:
[script]
name=dididave.com
home=http://www.dididave.com/
pwd=1
login=http://www.dididave.com/takelogin.php
form=username=%USER%&password=%PASS%&login=Log+in%21&returnto=%2Fbrowse.php
failed=<form method="post" action="takelogin.php">
failed2=/login.php?return
prelogin=http://www.dididave.com/login.php
referer=http://www.dididave.com/login.php
main=http://www.dididave.com/browse.php?c3=1&c4=1&c7=1&c8=1&c9=1&c10=1&c11=1&c12=1&c13=1&c14=1&c16=1&c18=1&c19=1&c21=1&incldead=0&search=%SEARCH%

I have take also from the QAD this:
Code:
q(0):
<tr>
<td align=center style='padding: 0px'><a href="browse.php?cat=16"><img class="mp3" border="0" src=/pic/blank2.gif alt="MP3s" /></a>

q(1):

<td align=left><a href="details.php?id=3778&amp;hit=1"><b>Eminem-The Re-Up[2006/mp3/192]</b></a><a class="index" href="download.php/3778/VA_Eminem_Presents_The_Re_Up_2006_RNS.torrent"><img style=border:none alt=download src=pic/download.gif align=right></a>

q(2):

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

q(3):

<td align="right"><b><a href="details.php?id=3778&amp;hit=1&amp;tocomm=1">86</a></b>

q(4):

<td align="center"><img src="pic/5.gif" border="0" alt="rating: 5.0 / 5" />

q(5):

<td align=center><nobr>2006-11-21<br />06:11:17</nobr>

q(6):

<td align=center>531<br>hours

q(7):

<td align=center>103.11<br>MB

q(8):

<td align=center>170<br>times

q(9):

<td align="right"><span class="green">3</span>

q(10):

<td align="right">0

and then im totally lost Smiley i dont understand the changes that i have to do to the script.
Logged
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2042



View Profile
« Reply #1 on: December 13, 2006, 08:23:58 am »

ok i just went over that and made a working script for DIDIDave.com but it was a little tricky because I realize that the HTML output from DIDIDave isn't correct, so in the script, I had to add a line to fix the HTML..  otherwise, it uses almost exactly the same script file as "IPTorrents.com"



Code:
<tr>
<td align=center style='padding: 0px'><a href="browse.php?cat=16"><img class="mp3" border="0" src=/pic/blank2.gif alt="MP3s" /></a></td>
<td align=left><a href="details.php?id=5278&amp;hit=1"><b>Top 40 UK Singles W/C 10-12-06</b></a><a class="index" href="download.php/5278/Top%2040%20Singles%2010-12-06.torrent"><img style=border:none alt=download src=pic/download.gif align=right></a></td>
<td align="right"><b><a href="details.php?id=5278&amp;hit=1&amp;filelist=1">40</a></b></td>
<td align="right"><b><a href="details.php?id=5278&amp;hit=1&amp;tocomm=1">23</a></b></td>
<td align="center">---</td>
<td align=center><nobr>2006-12-12<br />16:40:32</nobr></td>
<td align=center>25<br>hours</td>
<td align=center>299.89<br>MB</td>
<td align=center>40<br>times</td>
<td align="right"><span class="green">14</span></td>
<td align=right>5</td>   
<tr> <-----PROBLEM!!!: THERE IS NO </TR> TAG TO SIGNIFY THE END OF THE RESULT BLOCK
<td align=center style='padding: 0px'><a href="browse.php?cat=16"><img class="mp3" border="0" src=/pic/blank2.gif alt="MP3s" /></a></td>
<td align=left><a href="details.php?id=5208&amp;hit=1"><b>Eminem -Various [0/MP3/192]</b></a><a class="index" href="download.php/5208/Eminem.torrent"><img style=border:none alt=download src=pic/download.gif align=right></a></td>
see the line  <----PROBLEM!!! (above)



so the first line of DIDIDave.com script fixes this:

Code:
d=replace(d,<tr>,</tr><tr>)
x=h(x,d,Seeders</a></td>,/tr>,/tr>)    <---- the extra ,/tr> here is because the first line adds an extra </tr> to the HTML before the results start.. and we need to jump ahead of this extra one



also, i changed your script header block a little since it was using some unneeded tags (referrer, prelogin):


Code:
[script]
name=DIDIdave.com
home=http://www.dididave.com/
pwd=1
login=http://www.dididave.com/takelogin.php
form=username=%USER%&password=%PASS%
failed=<form method="post" action="takelogin.php">
failed2=/login.php?return
main=http://www.dididave.com/browse.php?c3=1&c4=1&c7=1&c8=1&c9=1&c10=1&c11=1&c12=1&c13=1&c14=1&c16=1&c18=1&c19=1&c21=1&incldead=0&search=%SEARCH%

Code:
d=replace(d,<tr>,</tr><tr>)
x=h(x,d,Seeders</a></td>,/tr>,/tr>)
z=i(x,d,</table>)
d=c(d,x,z)
d=replace(d,</table>,</tr></table>)
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.dididave.com/)
z=i(z,t,<b>)
1=x(t,z,>,</)
z=i(z,t,href=)
7=x(t,z,",",http://www.dididave.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
« Last Edit: December 13, 2006, 08:28:39 am 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 14, 2006, 07:40:20 am »

Code:
[script]
name=revolutiontt.net
home=http://www.revolutiontt.net
pwd=1
login=http://www.revolutiontt.net/login.php
form=username=%USER%&password=%PASS%
failed=action="login.php"
failed2=?returnto=
main=http://www.revolutiontt.net/browse.php?search=%SEARCH%&amp;page=-1

Code:
q(0):
<tr>
<td align=center style='padding: 0px'><a href="browse.php?cat=18"><img border="0" src="http://static.revolutiontt.net/pic/caticons/imdb250.jpg" alt="Movies/IMDB Top 250 XViD" /></a>

q(1):

<td align=left><a href="details.php?id=12237&amp;hit=1"><b>[248] - 21.Grams.Proper.Limited.DVDRiP.XviD-DEiTY</b></a><div align=right width=10><a href="download.php/12237/21.Grams.Proper.Limited.DVDRiP.XviD-DEiTY.torrent"><!--img src=http://static.revolutiontt.net/pic/download_new.gif border=0 alt=Download>--></a><!--<a href=bookmark.php?torrent=12237><img border=0 src=http://static.revolutiontt.net/pic/bookmark.gif alt=Bookmark title=Bookmark></a>--></div>


q(2):

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

q(3):

<td align="right"><b><a href="details.php?id=12237&amp;hit=1&amp;tocomm=1">10</a></b>

q(4):

<td align=center><nobr>2006-03-20<br />01:33:24</nobr>

q(5):

<td align=center>1.40<br>GB

q(6):

<td align=center>NA

q(7):

<td align=center><a href=viewsnatches.php?id=12237>184<br>times</a>

q(8):

<td align=right><b><a href=details.php?id=12237&amp;hit=1&amp;toseeders=1><font color=#000000>4</font></a></b>

q(9):

<td align="right">0

so far so good? Cheesy

For the name:
z=i(z,t,<'b>)
1=x(t,z,>,</)

then
z=i(z,t,href=)
7=x(t,z,",",http://www.revolutiontt.net/)

size:
t=array(q,5)

seeders i think:
t=array(q,8)

next:
z=i(z,t,<font color=)

leechers:
t=array(q,9)

this was supposed to be the script? Smiley
Code:
[script]
name=revolutiontt.net
home=http://www.revolutiontt.net
pwd=1
login=http://www.revolutiontt.net/login.php
form=username=%USER%&password=%PASS%
failed=action="login.php"
failed2=?returnto=
main=http://www.revolutiontt.net/browse.php?search=%SEARCH%&amp;page=-1


[code]
x=h(x,d,toseeders</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.revolutiontt.net/)
z=i(z,t,<'b>)
1=x(t,z,>,</)
z=i(z,t,href=)
7=x(t,z,",",http://www.revolutiontt.net/)
t=array(q,5)
t=replace(t,<br>, )
2=x(t,z,>,[-bc-])
t=array(q,8)
z=i(z,t,<font color=)
5=x(t,z,>,</)
t=array(q,9)
6=x(t,z,>,</)
aloop


1 = name
2 = size
3 = page
4 = [not used]
5 = seeds
6 = leeches
7 = url[/code]
« Last Edit: December 14, 2006, 07:56:44 am by Exoskeletor » Logged
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2042



View Profile
« Reply #3 on: December 14, 2006, 08:01:36 am »

yeah! that looks like its good!...  i cant test it because I dont have an account, but is that working for you?
« Last Edit: December 14, 2006, 08:04:51 am 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 #4 on: December 14, 2006, 08:07:03 am »

is everything ok with the seeders?
Logged
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2042



View Profile
« Reply #5 on: December 14, 2006, 08:14:04 am »

yeah that looks fine, the only thing I would maybe change if there's a chance that Seeders HTML code might change, such as if there are 0 seeds so the font changes, or whatever, as I've seen on some sites... 

I would maybe suggest just making it a little simpler:

t=array(q,8)
5=x(t,z,>,[-bc-])
t=array(q,9)
6=x(t,z,>,[-bc-])

since in the beginning you have done:
d=replace(d,</td>,[-bc-]</td>)

which puts a [-bc-] in front of each <'/td> (normally the end of the array line), making it easier for you to tell BC to extract that entire segment (from the end of the td> to the beginning of [-bc-])
Code:
<td align=right><b><a href=details.php?id=12237&amp;hit=1&amp;toseeders=1><font color=#000000>4</font></a></b>[-bc-]</td>

at which point, the x( function extracts:
Code:
<b><a href=details.php?id=12237&amp;hit=1&amp;toseeders=1><font color=#000000>4</font></a></b>

then removes any HTML tags in there, such as the <font, the <'b>, the <a href, etc  and the end result saved would just be the seeders # (or leechers #)..


but then again, if that seeder's HTML never changes, then the code as you have written would work fine!

great job Smiley
« Last Edit: December 14, 2006, 08:24:24 am 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 #6 on: December 14, 2006, 08:26:43 am »

something is not good. please check the source:(i have search for akis if this is helpfull):

* Revolution Search results for akis.rar (5.86 KB - downloaded 322 times.)
Logged
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2042



View Profile
« Reply #7 on: December 14, 2006, 08:29:43 am »

did you try stepping through it with the debugger? if so, what line does it last execute? or is it not processing results at all  ?


ok i see a problem right away on the first line:

Code:
'toseeders</a></td>'

isn't found in the HTML...   
« Last Edit: December 14, 2006, 08:34:43 am by chip! » Logged

  -  http://bitche.es  -   And...  boom goes the dynamite.
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2042



View Profile
« Reply #8 on: December 14, 2006, 08:33:35 am »

to start it off, try:


Code:
x=h(z,d,Seeders</FONT></A>,/tr>)
z=i(x,d,</table>)
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 #9 on: December 14, 2006, 09:20:09 am »

ive done that, not working still
Logged
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2042



View Profile
« Reply #10 on: December 14, 2006, 10:05:10 am »

Code:
[script]
name=Revolutiontt.net
home=http://www.revolutiontt.net
pwd=1
login=http://www.revolutiontt.net/takelogin.php
prelogin=http://www.revolutiontt.net/login.php
referer=http://www.revolutiontt.net/login.php
form=username=%USER%&password=%PASS%
failed=action=/login.php?returnto=
failed2=POS User Agent
main=http://www.revolutiontt.net/browse.php?search=%SEARCH%&amp;page=-1

[code]
x=h(z,d,Seeders</FONT></A>,/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.revolutiontt.net/)
z=i(z,t,<'b>)
1=x(t,z,>,</)
z=i(z,t,href=)
7=x(t,z,",",http://www.revolutiontt.net/)
t=array(q,5)
t=replace(t,<br>, )
2=x(t,z,>,[-bc-])
t=array(q,8)
5=x(t,z,>,[-bc-])
t=array(q,9)
6=x(t,z,>,[-bc-])
aloop
[/code]
Logged

  -  http://bitche.es  -   And...  boom goes the dynamite.
chip!
Bad Ass
Administrator
Unstoppable
*****

Karma: +617/-4
Offline Offline

Gender: Male
Posts: 2042



View Profile
« Reply #11 on: December 14, 2006, 10:09:44 am »

okkkkkkkkkkkk... this site was being a JERK about the UserAgent post request, and then I realized that it does require both a 'prelogin' (to set PHP cookies) and then also the 'referer' set for the actual 'takelogin.php' url...       but its working now, i've tested it.


if it doesnt work for you right away, its because you probably have cookies stored for your account that dont actually have the login cookies saved (something I need to fix about Bit Che).. but in any case:

1. Right click on the script:  Edit User Account
2. Change your name slightly, then change it back so that the 'Apply' button is enabled.
3. Press 'Apply'  (now your cookies are cleared)..
4. You might want to restart Bit Che at this point..  I'm not sure if theres another bug with Bit Che here about reading "referer/prelogin" updates to the script file, but I did see something funny happen temporarily while I was debugging the code/script.
5. You should be good...
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 #12 on: December 14, 2006, 04:30:52 pm »

it doesnt shows me anything but im not getting an error
Logged
Pages: [1]   Go Up
Print
Convivea Forums  |  Bit Che  |  Scripts & Development  |  Topic: Making a script for DidiDave.com & Revolutiontt.com
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.061 seconds with 18 queries.