项目作者: andreiox

项目描述 :
Finds out which clips are most viewed from twitch and downloads them
高级语言: Python
项目地址: git://github.com/andreiox/twitch-scrapper.git
创建时间: 2019-06-07T14:12:10Z
项目社区:https://github.com/andreiox/twitch-scrapper

开源协议:

下载


twitch-scrapper

Description

Get most viewed clips on twitch and downloads them

Installation

Passo 1 - Create a virtualenv

  1. virtualenv --python=/usr/local/bin/python3.6 venv

Passo 2 - Activate the virtualenv

  1. source venv/bin/activate

Passo 3 - Install dependencies via requirements.txt

  1. pip install -r requirements.txt

Running

  1. source venv/bin/activate
  2. python main.py [period] [language]

Values for period: day, week, month, all

Some values for language: en, es, th

Example response

  1. [
  2. {
  3. "streamer": "xQcOW",
  4. "game": "Just Chatting",
  5. "views": 68966,
  6. "duration": 53.75,
  7. "clip_url": "https://clips-media-assets2.twitch.tv/AT-cm%7C471336223.mp4",
  8. "clip_path": "/home/andre/@/clips/AT-cm%7C471336223.mp4"
  9. },
  10. {
  11. "streamer": "Trainwreckstv",
  12. "game": "Just Chatting",
  13. "views": 68685,
  14. "duration": 26,
  15. "clip_url": "https://clips-media-assets2.twitch.tv/34435056512-offset-20324.mp4",
  16. "clip_path": "/home/andre/@/clips/34435056512-offset-20324.mp4"
  17. },
  18. {
  19. "streamer": "MethodJosh",
  20. "game": "World of Warcraft",
  21. "views": 66169,
  22. "duration": 10.65,
  23. "clip_url": "https://clips-media-assets2.twitch.tv/AT-cm%7C471227259.mp4",
  24. "clip_path": "/home/andre/@/clips/AT-cm%7C471227259.mp4"
  25. }
  26. ]

References