I'm making about manga download program
actually most of pages already finished
but i can't do anything some left pages which have password
all of those pages have same password
qndxkr
For example the first is manga that doesn't have password
http://wasabisyrup.com/archives/63956
Spoiler Code: Select all
#NoEnv
#SingleInstance Force
FileEncoding, UTF-8
URL = http://wasabisyrup.com/archives/63956
Dir0 = %A_workingDIR%/1.html
FileCreateDir,1
FileDelete,%Dir0%
_download_to_file(URL,Dir0,URL )
Lencount = 0
FileEncoding,
loop, Read, %A_workingDIR%/1.html
{
IfInString, A_LoopReadLine, /storage/gallery/
{
StringSplit,MangaDetailAddressnumber,A_LoopReadLine,=
StringTrimLeft,MangaDetailAddressnumber,MangaDetailAddressnumber4,2
StringTrimRight,MangaDetailAddressnumber,MangaDetailAddressnumber,2
Lencount += 1
Type = JPG
Dir2 =%A_WorkingDir%/1/%LenCount%.%Type%
URL2 = http://wasabisyrup.com/%MangaDetailAddressNumber%
IfExist,%Dir2%
return
_download_to_file(URL2, Dir2, URL)
}
}
return
_download_to_file(u,s,a=""){
static r:=false,request:=comobjcreate("WinHttp.WinHttpRequest.5.1")
if(!r||request.option(1)!=u)
request.open("GET",u)
if (a<>NULL)
request.SetRequestHeader("Referer",a)
;request.SetProxy(2, "XXX.XXX.XXX.XXX:PORT") ; IF YOU NEED TO SET YOUR PROXY
request.send()
request.WaitForResponse()
if(request.responsetext="failed"||request.status!=200||comobjtype(request.responsestream)!=0xd)
return false
p:=comobjquery(request.responsestream,"{0000000c-0000-0000-C000-000000000046}")
f:=fileopen(s,"w")
loop{
varsetcapacity(b,8192)
r:=dllcall(numget(numget(p+0)+3*a_ptrsize),ptr,p,ptr,&b,uint,8192, "ptr*",c)
f.rawwrite(&b,c)
}until (c=0)
objrelease(p)
f.close()
return request.responsetext
}
and this is the manga that has password
http://wasabisyrup.com/archives/cBv0OKkDj3A
password is the "qndxkr"
I really don't know how can i download that....
how can i send the password then extract the HTML file
just this is the what i want to kno
how to send the password then how can i extract it with HTML file