I try to find the best hashtags for my post on instagram. There are some grate web pages, but I wand a python package.
- Free software: MIT license
$ pip install besttags$ best-tags coding python programmer --fix fullstackhero
#fullstackhero #coding #programming #programmer #html #css #javascript #developer
#code #webdeveloper #coder #webdesign #webdevelopment #technology #php #java
#software #tech #python #computer #computerscience #development #codinglife
#linux #programmers #softwaredeveloper #bhfyp #web #webdesigner #cSee the help for more informations
$ python -m besttags --helpor
$ best-tags --helpThe simple one-liner. It will save the best hashtags for the given tags in a file.
from besttags import Manager
# The tags you are interested in.
tags = ['coder', 'programmers', 'python']
Manager()(tags).save('best_hashtags.txt')You can change the default settings and add additional tags and use print() to show the tags
Manager(limit=10, fix=['fullstackhero'])(tags).save('10_best_hashtags.txt')
print(Manager()(tags))Use the Manager to create an object, which you can use multiple times. It is callable and allows a list or single strings.
best = Manager(fix=['fullstackhero'])
best('computer', 'instagood')
best(['coder', 'programmers', 'python'])The result is a class, with some basic functions. So you can iterate it and get the length.
result = best('coder', 'programmers', 'python')
print(len(result))
for tag in result:
print(tag)
print(result)
result.save('best_hashtags.txt')