Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 nuts

Usage: `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?