Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/loan-mgt/pyhashtag
- Owner: loan-mgt
- Created: 2022-08-25T19:58:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T14:42:07.000Z (about 2 years ago)
- Last Synced: 2024-01-20T04:10:33.335Z (11 months ago)
- Topics: hastag, news, pip, python, twitter
- Language: Python
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()```