Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsquire/hn_check
A simple Ruby script to check if a URL has been submitted to HN.
https://github.com/gsquire/hn_check
Last synced: 30 days ago
JSON representation
A simple Ruby script to check if a URL has been submitted to HN.
- Host: GitHub
- URL: https://github.com/gsquire/hn_check
- Owner: gsquire
- License: mit
- Created: 2015-03-13T21:36:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-20T03:42:48.000Z (over 8 years ago)
- Last Synced: 2023-04-10T02:34:40.467Z (over 1 year ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hn_check
A simple Ruby script to check if a URL has been submitted to HN.It uses the HN Search API provided by Algolia. The documentation for the API
can be found [here](https://hn.algolia.com/api).To run the script:
```sh
ruby hn_check.rb URL
```URL is the single URL you wish to check to see if it has been submitted to HN.
The search is restricted to URL matching only. The URL is properly encoded and
does not need to be quoted.This script was created for others to check against duplicate submissions on
HN.**Enjoy!**