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 & Textability APIs for potential inclusion in 25 Headlines.

How

  1. Sign up for Textability & RiteTag.
  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?

Built With

Share this project:
×

Updates