it cannot be accessed by programs if it is marked as 'not public', even if you provide your login and want to access your scratchpad.
Wanna bet? :) (replace 'xxxxxx' in below code with your homenode id)
use LWP::Simple;
use XML::Simple;
my $home_id = 'xxxxxx';
my $f = XMLin(get
'http://www.perlmonks.org/index.pl?node_id=' .
$home_id . '&displaytype=xml'
);
print $f->{data}{field}{scratchpad}{content};
Update, moments after posting this reply: I am too tired. My eyes read "it cannot be accessed by programs even if it is marked as 'not public'". I still maintain that you can get the scratchpad contents of a non-public scratchpad. Simply parse the textarea from the edit user information page. Also, why do you mention that as a bad side effect of scratchpads? You can't access the personal nodelet in any special outside manner either...
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|