Visit url: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>StDoodle
mNo edit summary
Line 10: Line 10:


Will return <i><b>all</b></i> of the html. If you see just the words, it will return those, and also all the html code that surrounds it.
Will return <i><b>all</b></i> of the html. If you see just the words, it will return those, and also all the html code that surrounds it.
{{Format}}

Revision as of 21:41, 8 March 2010

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.

Formatting Needed