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
Joined:
Mar 2003
Posts: 41
B
BORR
OP
Ameglian cow
OP
BORR
Ameglian cow
B
Joined:
Mar 2003
Posts: 41
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
Joined:
Dec 2002
Posts: 774
T
theRat
Hoopy frood
theRat
Hoopy frood
T
Joined:
Dec 2002
Posts: 774
it's possible... If the sites are small enough, otherwise you'll get line too long error pretty soon...
Code:
//if ( khaled isgod ) echo yes | else echo no
Copy Link to Clipboard
Re: save a web page in %webpage
#
34478
06/07/03
06:49 PM
Joined:
May 2003
Posts: 2,265
P
pheonix
Hoopy frood
pheonix
Hoopy frood
P
Joined:
May 2003
Posts: 2,265
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
}
new username: tidy_trax
Copy Link to Clipboard
Re: save a web page in %webpage
#
34479
07/07/03
07:25 AM
Joined:
Jan 2003
Posts: 3,012
New Hampshire, USA
KingTomato
Hoopy frood
KingTomato
Hoopy frood
Joined:
Jan 2003
Posts: 3,012
New Hampshire, USA
just an fyi, you may change
.set %search $1-
to
.set %search $replace($1-, $chr(32), +)
>:D
-KingTomato
Copy Link to Clipboard
Re: save a web page in %webpage
#
34480
07/07/03
09:53 AM
Joined:
May 2003
Posts: 2,265
P
pheonix
Hoopy frood
pheonix
Hoopy frood
P
Joined:
May 2003
Posts: 2,265
completely forgot about that
new username: tidy_trax
Copy Link to Clipboard
Re: save a web page in %webpage
#
34481
07/07/03
11:16 AM
Joined:
Mar 2003
Posts: 41
B
BORR
OP
Ameglian cow
OP
BORR
Ameglian cow
B
Joined:
Mar 2003
Posts: 41
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
Joined:
May 2003
Posts: 2,265
P
pheonix
Hoopy frood
pheonix
Hoopy frood
P
Joined:
May 2003
Posts: 2,265
np
new username: tidy_trax
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
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage