This tutorial details the main steps to create a simple bot in the Julia programming language. This bot can publish new content on behalf of your twitter account.
Requirements: Access to the twitter API and Julia v1.1 or latter.
Download the Code
Go to https://github.com/jmejia8/TeoBot.jl and download the source code of the TeoBot
The credentials for accessing to the twitter API can be requested here.
Save those credentials in ENV variables (see documentation).
Required values:
ENV["TWITTER_CKEY"]
ENV["TWITTER_CSEC"]
ENV["TWITTER_OTOK"]
ENV["TWITTER_OSEC"].
After that, download TeoBot and cd to this project, then in terminal (linux or similar) execute:
julia --project=./ --color=yes scripts/scripts.jl
In scripts/ you'll find some examples.
0 comments:
Post a Comment