Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pyohei/oshogatsu

πŸŽŒπŸŒ…Tweet the days for next New Year! 🎍🍢
https://github.com/pyohei/oshogatsu

newyear python27 python36 twitter

Last synced: about 16 hours ago
JSON representation

πŸŽŒπŸŒ…Tweet the days for next New Year! 🎍🍢

Awesome Lists containing this project

README

        

# oshogatsu

Tweet remaining days for next New Year days.
This tweet inspired Japanese song, which starts from γ€Œγ‚‚γƒΌγ„γγ€γ­γƒΌγ‚‹γ¨γƒΌγ€γŠγ—γ‚‡γƒΌγŒγ€γ€γ€‚

## Python version

I checked the below version,

* 2.7.10
* 3.6.1

## Usage

You set twitter consumer key and access key in environment values.
The below is sample.

```bash
export TWITTER_COMSUMER_KEY=xxxxxx
export TWITTER_CONSUMER_SECRET=xxxxxxx
export TWITTER_ACCESS_KEY=xxxxxxxx
export TWITTER_ACCESS_SECRET=xxxxxxxx
```

After setting, you can tweet as follows,

```python
python2.7 tweet.py
```

## Attention

If you tweet twice in same day, Twitter API return error.
So you have to delete previous tweet.

## Licence

MIT