Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
save a web page in %webpage
Forums
Active Threads
Search
Who's Online
Help
Print Thread
save a web page in %webpage
#
34476
06/07/03
06:36 PM
B
BORR
BORR
B
How can I store all the text on a web page in %webpage?
So when I start the script, mirc will automaticly open several web pages, copy all the text on those web pages and store that text in %webpage.
Is this possible?
Copy Link to Clipboard
Re: save a web page in %webpage
#
34477
06/07/03
06:41 PM
T
theRat
theRat
T
it's possible... If the sites are small enough, otherwise you'll get line too long error pretty soon...
Copy Link to Clipboard
Re: save a web page in %webpage
#
34478
06/07/03
06:49 PM
P
pheonix
pheonix
P
heres an example.
alias google.search {
.set %search $1-
sockopen google google.com 80
sockmark /search?hl=en&ie=UTF-8&oe=UTF-8&q= $+ %search
}
on 1:SOCKOPEN:GOOGLE:{
sockwrite -n $sockname GET $sock($sockname).mark HTTP/1.1
sockwrite -n $sockname accept: */*
sockwrite -n $sockname $crlf
}
on 1:SOCKREAD:GOOGLE:{
if ($sockerr > 0) { return }
sockread %s
.set %data %data $+ %s
}
Copy Link to Clipboard
Re: save a web page in %webpage
#
34479
07/07/03
07:25 AM
Joined:
Jan 2003
Posts: 2,973
New Hampshire, USA
K
KingTomato
Hoopy frood
KingTomato
Hoopy frood
K
Joined:
Jan 2003
Posts: 2,973
New Hampshire, USA
just an fyi, you may change
.set %search $1-
to
.set %search $replace($1-, $chr(32), +)
>:D
Copy Link to Clipboard
Re: save a web page in %webpage
#
34480
07/07/03
09:53 AM
P
pheonix
pheonix
P
completely forgot about that
Copy Link to Clipboard
Re: save a web page in %webpage
#
34481
07/07/03
11:16 AM
B
BORR
BORR
B
thnx for the help, I got it working now
Copy Link to Clipboard
Re: save a web page in %webpage
#
34482
07/07/03
11:33 AM
P
pheonix
pheonix
P
np
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage