mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Re: Simple Web Grabber. [Re: Riamus2] #188667 27/10/07 05:00 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Depending on the site you are on HTML 1.0 sometimes does not pull data, if i come across a site ill pm it to you one day vs. 1.1


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: Simple Web Grabber. [Re: Lpfix5] #188669 27/10/07 08:39 PM
Joined: Oct 2007
Posts: 10
M
Moptop650 Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Oct 2007
Posts: 10
Ok Im back, one more question-

I am grabbing

Code:
<html>
Blah blah
more words
maybe some more
and more words
</html>


But its only sending back the first line?

Edit: And it is saying

"(First word in the line) Unknown Command"

In the status window.

Last edited by Moptop650; 27/10/07 09:00 PM.
Re: Simple Web Grabber. [Re: Moptop650] #188670 27/10/07 09:18 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Can you update me with the link of the data your trying to get? because from yesterday I get your Price: : 6,000gp - 8,000gp


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: Simple Web Grabber. [Re: Lpfix5] #188671 27/10/07 09:22 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Im sorry replace this sockread script your using :

Code:
on 1:sockread:home:{
  if ($sockerr > 0) return 
  var %x | sockread -fn %x
  if ($regex(%x,/(Content-|X-Powered|Server:|Date:|HTTP/1)/g) == 1) { return }
  elseif ($nhtml(%x) == $null) { return }
  else {
    echo -a %x
  }
}


Just replace that sockread part.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: Simple Web Grabber. [Re: Lpfix5] #188676 27/10/07 10:50 PM
Joined: Oct 2007
Posts: 10
M
Moptop650 Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Oct 2007
Posts: 10
That works, thanks! smile

Re: Simple Web Grabber. [Re: Moptop650] #188677 27/10/07 11:01 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
yw


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Page 2 of 2 1 2