Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
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 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 <email@example.com> REFERENCES 1. Hacker News, http://news.ycombinator.com