RefreshCapcha

Author Topic: OLD -- Re: Bit Che - Scripts (current scripts & submit new)  (Read 101660 times)

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #15 on: January 27, 2013, 04:39:07 pm »
Instead could we allow a special character for dummy seed/leeches?  Something like # or -1 so you can tell from the results that the real number is unknown?

Attached is Torrentzone (a site that couldn't work with v1) and Karagarga.

I have one more site I still want to convert to v2, and then there are a handful of 'problem' scripts left.
After that I'll probably do some requests.

There are something like a dozen more scripts left in my v1 folder (some are duplicates or variations) that have no v2 equivalent.  I have no idea if there is interest or in fact if those sites sill exist.  I don't recall using them.

Edit: Maybe not =code($page,#) for each item, but perhaps a way to pull multiple pieces of data during the initial search using the same code2.

Something like:

Code: [Select]
[code1]
...
$torrent=code($page,2)
$date=code($page,2)
$seeds=code($page,2)
$leeches=code($page,2)
aloop
[/code1]

[code2]
u=find(u,@data,`Download torrent`)
$torrent=extract(u,@data,`"`,`"`,@home)
u=find(u,@data,`Posted on`)
$date=extract(u,@data,`>",`<`)
u=find(u,@data,`Seeding`)
$seeds=extract(u,@data,`>",`<`)
u=find(u,@data,`Leeching`)
$leeches=extract(u,@data,`>",`<`)
[/code2]

The problem is at the moment code2 isn't read until you attempt to grab the .torrent file.  Using it for anything else won't trigger code2.
Then you're only looking at 1 additional page for each result... put that's still kind of a lot.

Okay, now this is the late night talking, but allow the above code, but don't actually fetch the results on the initial search.
The results page would show something like an * in place of the data, and then you could add a context option to get the additional data on a single basis.

Like 'View Torrent Details' but 'View additional info'.
« Last Edit: January 27, 2013, 05:09:44 pm by CuF »

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #16 on: January 27, 2013, 06:04:58 pm »
thanks.. got those scripts included.

i see what you're saying about viewing extra info after the initial search.. I might bake that into 'View Torrent Details'.. actually that would probably be pretty easy.   BUT, what is better than that is using the 'Scrape' button on 'View Torrent Details' to fetch the actual seeders/leechers from the tracker itself (new to Bit Che 2).

for AsianDVD, i got your PM and that is helpful to see the valid response, but now I just need to see what Bit Che is sending & receiving... I'm pretty sure I can figure out whats wrong now that I have the successful HTTP request if you can also send me the logs generated by Bit Che (either build 38 or 39).

for HDBits, and others, the [special] section is no longer needed.. just use the [login] part like the others..

so for thebox.bz, this can be removed:
Code: [Select]
[special]
page=http://www.thebox.bz/login.php
post=http://www.thebox.bz/login.php
img_src=freecap.php
id_name=freecap
check_name=word

for special, all it needs is:

[scripts]
pwd=1
special=1

and

[login]
login=URL
failed=
failed2=


i'll have to write up better script header info this week.

oh, but for HDBits, I wonder if a normal login will work with b38/39.. is that 'lol' variable random or can you put anything as that when you submit the login?    also, can you successfully login using 'special' for hdbits? like can you login and then go to the browse page inside of the special window?
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #17 on: January 28, 2013, 02:50:42 am »
thanks.. got those scripts included.

i see what you're saying about viewing extra info after the initial search.. I might bake that into 'View Torrent Details'.. actually that would probably be pretty easy.&nbsp; &nbsp;BUT, what is better than that is using the 'Scrape' button on 'View Torrent Details' to fetch the actual seeders/leechers from the tracker itself (new to Bit Che 2).

for AsianDVD, i got your PM and that is helpful to see the valid response, but now I just need to see what Bit Che is sending & receiving... I'm pretty sure I can figure out whats wrong now that I have the successful HTTP request if you can also send me the logs generated by Bit Che (either build 38 or 39).

for HDBits, and others, the [special] section is no longer needed.. just use the [login] part like the others..

so for thebox.bz, this can be removed:
Code: [Select]
[special]
page=http://www.thebox.bz/login.php
post=http://www.thebox.bz/login.php
img_src=freecap.php
id_name=freecap
check_name=word

for special, all it needs is:

[scripts]
pwd=1
special=1

and

[login]
login=URL
failed=
failed2=


i'll have to write up better script header info this week.

oh, but for HDBits, I wonder if a normal login will work with b38/39.. is that 'lol' variable random or can you put anything as that when you submit the login?&nbsp; &nbsp; also, can you successfully login using 'special' for hdbits? like can you login and then go to the browse page inside of the special window?

I hadn't noticed the scrape.  Cool.

AsianDVD log emailed.

That's good about special.  I don't even know what the
Code: [Select]
img_src=freecap.php
id_name=freecap
check_name=word
stuff meant.  :)

And yes, I can browse the torrents inside the Special window for HDBits.
And the LoL code seems to change each time you refresh the login page.  I assume that's a security measure.

More scripts: MySpleen and SDBits (sister site to HDBits, but not as tricky to script).

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #18 on: January 28, 2013, 04:37:26 am »
looks like we got all these updated in the script pack.. thanks CuF and Bovski!

oh, and if we did =code($page,#) for seeds, leeches and dates would be kinda obnoxious because it would fetch multiple pages per request on the initial search.. meaning for 50 results you could have 200+ additional HTTP requests from the 1 single search HTTP request...   to me, i think its best to just force dummy data if its not available.

LOL 200? why would you do that? 50
Code: [Select]
t=code($page,2)
[code2]
x=findh(i,@data,`>Uploader</font></a></td>`,`</tr>`,`>`,`</tr>`,`>`,)
z=find(x,@data,`</table>`)
@data=crop(@data,x,z)
g=split(@data,`</td>`,2)
$torrent=array(g,2)
$date=extract(@i,t,`<nobr>`,`<br />`)
$size=array(q,6)
$seeds=array(q,8)
$leeches=array(q,9)
[/code2]


if you can also send me the logs generated by Bit Che (either build 38 or 39).
Where are builds 38 or 39 posted ?
« Last Edit: January 28, 2013, 04:54:59 am by Bovski »

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #19 on: January 28, 2013, 06:24:45 am »
b39 is here:  http://convivea.com/forums/index.php?topic=2131.msg19943#msg19943

was for testing only.. working on exploring a specific login bug before posting another beta to the main thread.
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #20 on: January 28, 2013, 06:42:46 am »
Tough fight, but here is AsianDVDClub.

Edit: And of limited interest, MouseBits

RuTracker seems to work MOST of the time.  Still a problem where it gets confused if you do a search then log in with your browser and then try to use BitChe again.  

It's otherwise fine, I don't know if we'd consider it ready for release though.
Its sister site Pornolab seems to be even more cranky.

HDBits is whatever that's about and that's really the end of my list.

Btw, I'd love to add bit-hdtv.com to Bit Che if I had an invite.  ;)
One of the few sites where I let an account lapse and really regretted it.

Edit2: Attached MouseBits script updated to fix garbage result for 0 hits.
« Last Edit: January 29, 2013, 05:11:38 pm by CuF »

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #21 on: January 29, 2013, 06:16:01 am »
Quick update for TorrentZone.  It stopped working for me at first because the failed1 was actually text that appeared if you were logged in as well.

After fixing it it still didn't work for a while... and then it did.  (After logging in properly BC wasn't giving an error, but it wasn't searching either).

Seems to be okay atm.  If anyone has problems chime in.

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #22 on: January 29, 2013, 05:13:14 pm »
More updates:
MouseBits Uh, a fix for the fix.  Not sure what I did there, works now.
Fulldls Fix for bad date results.

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #23 on: February 02, 2013, 12:12:53 pm »
didn't know if I was supposed to add the script here or just to git

Same script just the site changed

Would be clearer if we could have in-line maths
Code: [Select]
start
@q=split(@r,`</td>`,2)
t=array(@q,3)
o=find(@i,t,`./viewtopic.php`)
if (o>0)
a=put(3)
b=put(8)
c=put(9)
d=put(12)
e=put(13)
else
a=put(5)
b=put(10)
c=put(11)
d=put(14)
e=put(15)
end if

t=array(@q,a)
@i=find(@i,t,`href`)
$page=extract(@i,t,`"./`,`"`,@home)
$name=extract(@i,t,`>`,`</a>`)
t=array(@q,b)
@i=find(@i,t,`href`)
$torrent=extract(@i,t,`"./`,`"`,@home)
$size=array(@q,c)
$seeds=array(@q,d)
$leeches=array(@q,e)
aloop
[/code1]

would have been shorter as
Code: [Select]
start
@q=split(@r,`</td>`,2)
t=array(@q,3)
o=find(@i,t,`./viewtopic.php`)
if (o>0)
d=put(-2)
end if

t=array(@q,5+d)
@i=find(@i,t,`href`)
$page=extract(@i,t,`"./`,`"`,@home)
$name=extract(@i,t,`>`,`</a>`)
t=array(@q,10+d)
@i=find(@i,t,`href`)
$torrent=extract(@i,t,`"./`,`"`,@home)
$size=array(@q,11+d)
$seeds=array(@q,14+d)
$leeches=array(@q,15+d)
aloop
[/code1]

or even a third argument to the array command to do the add would be gr8
Code: [Select]
t=array(@q,5,d)
« Last Edit: February 02, 2013, 12:40:23 pm by Bovski »

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #24 on: February 03, 2013, 02:18:38 pm »
More updates:
MouseBits Uh, a fix for the fix.  Not sure what I did there, works now.
Fulldls Fix for bad date results.

Quoting myself because this Fulldls update should be added.  Every time there's an autoscript update I get garbage dates again.

@Bovski: I don't use the git myself.  I'm happy to see the scripts posted here.
« Last Edit: February 03, 2013, 02:26:34 pm by CuF »

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #25 on: February 05, 2013, 04:49:21 pm »
Okay, a roll up of all the scripts that seem to be working in my dev folder but aren't in the default script pack:

AsianDVDClub, HDBits.org (thanks Chip, the prelogin is great), MouseBits, MySpleen, RuTracker & SDBits.
« Last Edit: February 13, 2013, 09:16:04 am by CuF »

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #26 on: February 13, 2013, 09:12:34 am »
Rutracker updated in previous post
Page link was missing a slash because the home url was http://rutracker.org/forum not http://rutracker.org/forum/.
« Last Edit: February 13, 2013, 09:17:39 am by CuF »

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #27 on: February 13, 2013, 10:08:41 am »
Rutracker updated in previous post
Page link was missing a slash because the home url was http://rutracker.org/forum not http://rutracker.org/forum/.

 >:D  sorry!   we'll get those updated and added here soon.  thank you!  ;D
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #28 on: February 16, 2013, 12:30:01 pm »
Okay, a roll up of all the scripts that seem to be working in my dev folder but aren't in the default script pack:

AsianDVDClub, HDBits.org (thanks Chip, the prelogin is great), MouseBits, MySpleen, RuTracker & SDBits.

Added to default script pack thanks CuF

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
Re: OLD -- Re: Bit Che - Scripts (current scripts & submit new)
« Reply #29 on: February 17, 2013, 10:13:14 am »
Done some more scripts mainly private ones that currently have open signups and some requests.

attached as backup :)