Share your idea on Twitter using Dash.jl
- Create an application on the Twitter's Developer Platform: https://developer.twitter.com/en
- Get CONSUMER_KEY(a.k.a API_KEY), CONSUMER_SECRET (a.k.a API_KEY_SECRET), ACCESS_TOKEN and ACCESS_TOKEN_SECRET from your dashboard of Twitter's Developer Platform.
- Store them above in
.env
file so that you can access these secrets fromENV
.
using DotEnv; DotEnv.config();
CONSUMER_KEY = ENV["CONSUMER_KEY"]
CONSUMER_SECRET = ENV["CONSUMER_SECRET"]
ACCESS_TOKEN = ENV["ACCESS_TOKEN"]
ACCESS_TOKEN_SECRET = ENV["ACCESS_TOKEN_SECRET"]
Install tweepy
via:
$ pip3 install tweepy
$ julia --project=@. -e 'using Pkg; Pkg.instantiate()'
$ julia --project=@. app.jl
You may access the webserver from the browser using http://127.0.0.1:8050. Then you'll see something like below:
I hope you like it.