Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Scraping profile info from news.ycombinator.com
Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
INSTALL.md
LICENSE
README
hn-profile

README

NAME
    hn-profile - Hacker News Profile Dumper

USAGE
    hn-profile [options]

OPTIONS
    -h --help

            Print the help message

    -v --verbose

            An accumulating counter that starts at 0.  The higher the verbosity
            level, the more information that gets spit back at you. Note that
            this may get mixed in with the JSON output if you aren't sending it
            to a file.

    -f --file=FILE

            The file to dump the JSON to. By default, the JSON will be printed
            to STDOUT, so if you want to send it anywhere else, you'll have to
            use this option.

    -s --saved-articles

            Parse the 'saved articles' section of your Hacker News profile.

    -i --general-info

            Parse out the generic information from your HN profile (e.g. karma
            score, avg. rating, etc).

DESCRIPTION
    A command to extract the information from your Hacker News[1] user profile.
    It's especially useful for parsing out your 'saved articles' (aka the list
    of links that you've upvoted) because they are only displayed 30/page, and
    the 'next' link is seemingly auto-generated each time (and expires), so
    there is no easy way to extract this data without walking the list from
    most to least recent.

    Your user_id and password should be specified in your ~/.netrc file. Type
    'man netrc' for more information about the file format.

DEPENDENCY TREE
    hn-profile
    `-- JSON
    `-- Try::Tiny
    `-- WWW::Mechanize
    `-- DateTime

LICENSE
    See LICENSE

AUTHOR
    Brandon Sandrowicz <brandon@sandrowicz.org>

REFERENCES
    1. Hacker News, http://news.ycombinator.com
Something went wrong with that request. Please try again.