Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/loan-mgt/pyhashtag

python lib made to insert hashtag into text
https://github.com/loan-mgt/pyhashtag

hastag news pip python twitter

Last synced: about 2 months ago
JSON representation

python lib made to insert hashtag into text

Awesome Lists containing this project

README

        

## :hash: About
pyHashtag is a python lib made to insert hashtag into text. This lib was made originaly for [Twitter](twitter.com), but hashtag are fairly universal.

Here is a small exemple of what it does:

Clearest Shot of Mars ever taken from space.

to

Clearest Shot of #Mars ever taken from #Space.

## :computer: Install
Installing this python lib is as simple as runing this command in your terminal :

`pip install git+https://github.com/Qypol342/Hashtag-lib.git`

If you want to verify the install way succesfull you can do :

`pip show pyHashtag`

## :green_book: Help

Your help is welcome, you can help us to enlarge our database of usefull hashtag.

Here is the structure of the database:

`"" : "#",`

:warning: The word detection is not case sensitive

Here is a exemple of a line of the database

`"nasa" : "#NASA",`

You can edit de database [here](https://github.com/Qypol342/pyHashtag/edit/main/pyHashtag/hashtag_list.json)

## :bookmark_tabs: Code example
```
# importing pyHashtag
import pyHashtag

# add Hashtag to your text
pyHashtag.hashtag("Clearest Shot of Mars ever taken from space.")
# return "Clearest Shot of #Mars ever taken from #Space."

# update your local database from pulling directly from github
pyHashtag.update()

```