Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nealrs/hash
Input a URL & get back a list of relevant hashtags
https://github.com/nealrs/hash
Last synced: 1 day ago
JSON representation
Input a URL & get back a list of relevant hashtags
- Host: GitHub
- URL: https://github.com/nealrs/hash
- Owner: nealrs
- Created: 2015-01-31T06:41:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-07T01:26:05.000Z (almost 10 years ago)
- Last Synced: 2023-07-31T17:25:59.819Z (over 1 year ago)
- Language: Python
- Size: 104 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## hash.py
**What**
Input a URL & get back a list of relevant hashtags
**Why**
1. Better hashtags mean better engagement
2. Experimenting with the RiteTag & Textalytics APIs for potential inclusion in [25 Headlines](http://nealrs.github.io/25Headlines/).**How**
1. Sign up for [Textalytics](https://textalytics.com/personal_area) & [RiteTag](http://ritetag.com/developer/signup).
2. Add your API keys to `keys_ex.py` & rename it `keys.py`.
3. Install the dependencies:
`pip install requests requests_oauthlib click`
4. Go nutsUsage: `hash.py [OPTIONS]`
Options:
```
--url TEXT The URL you want to analyze [required]
--rel INTEGER Keyword relevancy threshold [default 70%]
--ent INTEGER (1) Extract named entities [default], (0) ignore
--con INTEGER (1) Extract concepts [default], (0) ignore
--help Show this message and exit.
```FYI, you _will_ get rate limited by RiteTag pretty quickly.
**Contribute**
If you think this is a cool idea, but kind of inefficient, please submit a PR and let's make this better.
© 2015, Neal Shyam · not sure on licensing yet, so suggest something?