HashtagTracker is tracking hashtags on social platforms(Twitter, Instagram etc.) and serving data on a socket real time. With this repository, you can track any hashtag on social platforms.
- set config file
- start server
- using any tcp client for connecting or design your own interface and show the data you have acquired over tcp.
- Twitter (need twitter api)
You can add any platform you want. Just create new class that extends ISource and send data with ISource's newData function.
- {"key":"password", "value": "YOUR socketAuthKey"} : After connecting to the socket, you must send this message for verification before the timeout period you specified.
- {"key":"close"} : Send this message to close the socket connection cleanly.
tcpHost: tcp host to listen
tcpPort: tcp port
socketAuthKey: password to be used during login for data security
socketLoginTimeout : login timeout
sources: You can set the hashtags and platforms you want to follow in this array.
sources: [
new Twitter("HASHTAG", {
consumer_key: 'YOUR TWITTER API CONSUMER KEY',
consumer_secret: 'YOUR TWITTER API CONSUMER SECRET',
access_token_key: 'YOUR TWITTER API ACCESS TOKEN',
access_token_secret: 'YOUR TWITTER API ACCESS TOKEN SECRET'
}),
new Instagram("HASHTAG", 1000)
]
{"platform":"Instagram","hashtag":"galatasaray","data":{"user":"SOME USER","text":"Bu gölü atabilecek arkadaşını etiketle.\n\n#millitakım #messi #neymar #mbappe #zlatanibrahimovic #hakançalhanoğlu #grizmann #cengizunder #galatasaray #ultraslan #gfb #fenerbahçe #beşiktaş #çarşı #falcao #muslera #kaanayhan #türkiye","timestamp":1580328451,"image":"there will be a link here"},"type":"data"}
HashtagTracker is licensed under the MIT license.