Visit url

From Kolmafia
Revision as of 00:21, 6 October 2009 by 70.231.129.238 (talk)
Jump to navigation Jump to search

string/buffer visit_url( string page_to_visit )
Returns the HTML of the page selected.

For addresses inside of KoL, providing input on which server to access is not required; KoL Mafia will automatically retrieve the HTML source of the page you provide, for the server you are currently logged onto:

string messages_html = visit_url( "messages.php" );


For pages located outside of KoL, the full address must be provided:

string visit_info = visit_url( "http://wiki.kolmafia.us/index.php?title=Visit_url()" );

Will return all of the html. If you see just the words, it will return those, and also all the html code that surrounds it.