Bit Che > Scripts & Development
OLD -- Re: Bit Che - Scripts (current scripts & submit new)
CuF:
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: ---[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]
--- End code ---
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'.
chip!:
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: ---[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
--- End code ---
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?
CuF:
--- Quote from: chip! 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: ---[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
--- End code ---
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?
--- End quote ---
I hadn't noticed the scrape. Cool.
AsianDVD log emailed.
That's good about special. I don't even know what the
--- Code: ---img_src=freecap.php
id_name=freecap
check_name=word
--- End code ---
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).
Bovski:
--- Quote from: chip! on January 27, 2013, 11:46:28 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.
--- End quote ---
LOL 200? why would you do that? 50
--- Code: ---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]
--- End code ---
--- Quote from: chip! on January 27, 2013, 06:04:58 pm --- if you can also send me the logs generated by Bit Che (either build 38 or 39).
--- End quote ---
Where are builds 38 or 39 posted ?
chip!:
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version