RefreshCapcha

Author Topic: The Pirate Bay - Script Question  (Read 8677 times)

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
The Pirate Bay - Script Question
« on: March 28, 2009, 02:35:54 pm »
I noticed that The Pirate Bay has added a checkbox option for searching titles only.
It gives much better results.
I took a look to see about incorporating it into the Bit Che script, but can't figure out how they're passing it.
Checked or unchecked has no effect on the search URL, but it does alter the results significantly.

Can anyone figure out a way to work it into the script?  TPB's basic search method is virtually useless for getting a pertinent result.

It also appears that the file type searches (video, audio, etc.) no longer work in the script.

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: The Pirate Bay - Script Question
« Reply #1 on: April 10, 2009, 12:33:54 pm »
I found it using a socket logger. Its using a page redirect and a cookie to control "searchTitle"..


let me see if i can get this to work with bit che script... brb..




Send: Return Code: 0x00000000
GET /s/?q=2009&audio=on&searchTitle=on&page=0&orderby=99 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-silverlight, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Referer: http://thepiratebay.org/search/2009/0/99/100
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Zune 3.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Host: thepiratebay.org
Connection: Keep-Alive
Cookie: PHPSESSID=a132dbb5d555143e71a97efe194a1040; language=en_EN; searchTitle=1



Receive: Return Code: 0x00002733


Receive: Return Code: 0x00000000
HTTP/1.1 302 Found
Set-Cookie: searchTitle=1; expires=Sun, 11-Apr-2010 02:28:57 GMT; path=/
Location: /search/2009/0/99/100
Content-Encoding: gzip
Vary: Accept-Encoding
Content-type: text/html
Content-Length: 26
Date: Sat, 11 Apr 2009 02:28:57 GMT
Server: lighttpd
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: The Pirate Bay - Script Question
« Reply #2 on: April 10, 2009, 12:53:04 pm »
ok, i found a bug in Bit Che... when i have modified the search URL to that "/s/?q=%search%".. Bit Che will set a cookie, but it will not follow the 302 redirection that TPB gives to the actual search page...

so, until this can be fixed, i have updated the TPB script search URLs to working audio,apps,games, etc:

main=http://thepiratebay.org/search/%SEARCH%/0/99/0
audio=http://thepiratebay.org/search/%SEARCH%/0/99/100
video=http://thepiratebay.org/search/%SEARCH%/0/99/200
apps=http://thepiratebay.org/search/%SEARCH%/0/99/300
games=http://thepiratebay.org/search/%SEARCH%/0/99/400
  -  https://convivea.com  -   And...  boom goes the dynamite.