Bit Che > Scripts & Development
Trying to make a script for scarywater
Quantum:
So, I give my first serious crack at making a script and I get stuck just trying to put the search URL in ::)
Site: http://a.scarywater.net/
I try searching for 'Death note' and this is the URL I get: http://a.scarywater.net/search ???
Help appreciated, I'd still like to give this script a go, so if you'd let me finish it off I would be rather happy.
deckkeeper:
Try using http://a.scarywater.net/search?query=%SEARCH%
important source code:
--- Code: ---<div class="smallbutton">
<form method="post" class="form" enctype="multipart/form-data" action="/search">
<div>
<input type="hidden" name="type" value="search"></input>
<input type="text" size="15" maxlength="50" name="query"></input><br />
<input type="submit" name="Search" value="Search"></input>
</div>
</form>
</div>
--- End code ---
The search form uses "http://a.scarywater.net/search" and gives it the value of variable "query". To do it manually, add ?, then the variable name, then the value. Example: to search for "hellsing", do "http://a.scarywater.net/search?query=hellsing".
Quantum:
Ahh cool thank ;D
Been along time since I messed about in the realms of HTML
chip!:
ahhhhhhhhhhh something i forgot to document?!
ok for POST type searches, if the standard "GET" request doesnt work (depends on how strict the site is about the search request), put "POST" in front of the search url.. so in this case, try:
POSThttp://a.scarywater.net/search?type=search&query=%SEARCH%
edit: well I guess the standard "GET" does work for this site.. but for other sites it might not (like "TodoTorrents.com").. It all depends on how the site reads the search parameters.. but yeah, I guess you dont need to use "POST" in this case :P
chip!:
anyway, how's this going?
Navigation
[0] Message Index
[#] Next page
Go to full version