I'm sure what the HN-specific settings are, but you are also probably going to trip the throttling functionality of news.arc (which runs HN) with this script. If you make more than N requests in M seconds, it marks your IP as a bot/script and throttles your requests after that.