一、twurl安装
1,安装软件管理包工具,在管理员身份打开的cmd中执行:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))%22 && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
2,choco install ruby
3,gem install twurl
4,gem install jq 格式化json
二、注册twitter开发者账号
https://developer.twitter.com/
三、获取用户最新发布(文档的Tweets下面):
Get Tweet timelines
Filter realtime Tweets standard api for free
Sample realtime Tweets
当您拥有使用者密钥及其秘密时,您将授权您的Twitter帐户使用该使用者密钥和秘密进行API请求。
twurl authorize --consumer-keykey\ --consumer-secret secret ...