Giter VIP home page Giter VIP logo

yt_dl_project's Introduction

yt_dl_project

SET UP BOTO3

  • Set up AWS credentials in AWSCredentials class in aws_helpers.py script.
  • Create and place the key file in the ./aws directory (where Boto3 checks, check documentation).

CONFIGURE INPUT FILE

  • Upload input.json from ./data to the S3 bucket named 'ytdlinput'.

FOR RUNNING LOCALLY

  • Install requirements from requirements.txt
  • Create and add ffmpeg in the ./dep directory (./dep/ffmpeg/bin/ffmpeg.exe).
  • Upload input.json from ./data to the S3 bucket named 'ytdlinput'.
  • Set RUN_LOCALLY=True and USE_RAY to True or False if you want to run it using Ray or sequentially.

FOR RUNNING ON AWS CLUSTER

  • For Windows, in WSL CLI run:
    • Create the cluster:
      ray up -y /mnt/c/Users/Stefan/Desktop/Personal/Projects/Soniox/yt_dl_project/ray/yt_dl_cluster.yaml
      
    • Forward ports locally:
      ray dashboard /mnt/c/Users/Stefan/Desktop/Personal/Projects/Soniox/yt_dl_project/ray/yt_dl_cluster.yaml
      
    • Submit task:
      RAY_ADDRESS='http://localhost:8265' ray job submit --runtime-env-json='{"working_dir": "./", "pip": ["boto3", "boto3-stubs[dynamodb]", "scrapetube", "youtube-transcript-api", "youtube-wpm"]}' -- python ./pipeline.py
      

yt_dl_project's People

Watchers

Stefan Borkovski avatar

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.