Skip to content

Ry0/Audacious-Tweet-Nowplaying

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntuの音楽プレイヤーAudaciousでTwitterに#nowplayingをツイートするためのPythonスクリプト

Audaciousのインストール

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get install audacious

このレポジトリをクローン

git clone https://github.com/Ry0/Audacious-Tweet-Nowplaying.git

必要なPythonライブラリをインストール

cd Audacious-Tweet-Nowplaying
sudo pip install -r requirements.txt

TwitterAPIとLast.fm APIの取得

TwitterからAPIを取得してください

TwitterDevelopers
https://dev.twitter.com/apps

Create API account
http://www.last.fm/api/account/create

そしてこのレポジトリにaud-nowplaying.confというファイル名で認証情報を作成

cd Audacious-Tweet-Nowplaying
gedit aud-nowplaying.conf
[twitter_params]
consumer_key = abcdefghijklmnopqrstuvwxy
consumer_secret = ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx
access_token_key = 123456789-ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNO
access_token_secret = abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrst

[lastfm_params]
api_key = abcdefghijklmnopqrstuvwxyzABCDEF

こんな感じで作成.

ツイートしてみる

Audaciousで音楽再生中に実行する

python aud-nowplaying.py

img

img

Releases

No releases published

Packages

No packages published

Languages