Giter VIP home page Giter VIP logo

pytwitcasting's Introduction

PyTwitcasting

PyTwitcastingはTwitcastingのAPIv2(β)を使うためのライブラリ

インストール

pipでインストール

pipenv install pytwitcasting

GitHubからクローンしてインストール

git clone https://github.com/tamago324/PyTwitcasting.git
cd PyTwitcasting
pipenv run python3 setup.py install

使用例

まずは、 https://twitcasting.tv/developernewapp.php でアプリの作成を行う

例)ユーザー名の表示

from pytwitcasting.auth import TwitcastingApplicationBasis
from pytwitcasting.api import API

client_id = 'ClientID'
client_secret = 'ClientSecret'
app_basis = TwitcastingApplicationBasis(client_id=client_id,
                                        client_secret=client_secret)

api = API(application_basis=app_basis)

print(api.get_user_info('twitcasting_jp').name)
# ツイキャス公式

ドキュメント

ドキュメントは http://pytwitcasting.readthedocs.io/ja/latest/

ライセンス

MIT

pytwitcasting's People

Contributors

tamago324 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pytwitcasting's Issues

Read the Docsで正しく表示されない

https://readthedocs.org/projects/pytwitcasting/builds/7535244/

Running Sphinx v1.7.6

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/pytwitcasting/envs/latest/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 303, in main
    args.warningiserror, args.tags, args.verbosity, args.jobs)
  File "/home/docs/checkouts/readthedocs.org/user_builds/pytwitcasting/envs/latest/local/lib/python2.7/site-packages/sphinx/application.py", line 163, in __init__
    confoverrides or {}, self.tags)
  File "/home/docs/checkouts/readthedocs.org/user_builds/pytwitcasting/envs/latest/local/lib/python2.7/site-packages/sphinx/config.py", line 163, in __init__
    raise ConfigError(CONFIG_SYNTAX_ERROR % err)
ConfigError: There is a syntax error in your configuration file: invalid syntax (conf.py, line 186)

Configuration error:
There is a syntax error in your configuration file: invalid syntax (conf.py, line 186)

テストする

テストが無いコードはレガシーコードと呼ばれる。テストがないコードはどんなにきれいでもだめなコード!!

リトライを実装する

リクエストのリトライを実装する
なぜリトライが必要なのかも理解しておこう

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.