hn

A CLI and Python library for using the HNSearch API
Download

hn Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Zach Williams
  • Publisher web site:
  • http://zachwill.com

hn Tags


hn Description

hn is an easy-to-use CLI and Python library for HNSearch's API.InstallationThere are two ways of installing the library:pip install hnAlternatively, run the following from the command line:python setup.py installCLIUsage patterns for working with the hn CLI.SearchBasic search terms and querying. Allows for specifying number of results with n flag (maximum is 100), and starting ordinal position of results with the s flag.hn termhn multiple terms -n 100hn multiple terms -n 100 -s 100DateThe d flag allows for searchs filtered to a specific date (in YYYY-MM-DD or MM-DD-YY format).hn -d 03-16-12hn -d 2012-03-16hn github -d 2012-03-16HitsReturn the number of results encountered with the --hits flag.hn pg --hitshn zachwill --hitsSortingBy default, sorting will be descending (though both asc and desc can be used).hn github -S pointshn github -S username deschn -d 03-16-12 -S username asc -n 100TypeThe T flag allows filtering by specific types of items (comment or submission).hn zachwill -T commenthn zachwill -T submission -S points -n 100UsernameThe u or U flags allows filtering by a specific username.hn -U zachwillhn ycombinator -U pghn -U pg -T submission -S pointshn -U pg -T comment -S points ascProduct's homepage


hn Related Software