GithubHelp home page GithubHelp logo

mynameiscarsten / beatstars-upload Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 113 KB

Python script for handling the beat upload to beatstars.com

Python 100.00%
beat beats beatstars instrumentals upload selenium tkinter

beatstars-upload's Introduction

Beatstars Upload Bot

GUI

Description

Python app for handling the beat upload to beatstars.com and creating two video files (full video and short) for uploading your beats to YouTube.

This app saves time and helps automate the beat upload.

Requirements

Install the required packages by running the following command in your terminal:

pip install -r .\requirements.txt

How to use

The app is run by excuting GUI.py.

However, please read through the following sections to properly set up the app.

Beat naming

My beats are all named in a specific way: [0001] C-Minor 100BPM Beat-Name (Prod. by MyName)

The script will use this naming convention to grab the BPM, key and beat title. The specific beat is identified by its number, here "0001".

# Define which beat number should be selected
number = 0001

Note: The spelling needs to be identical to these examples:

  • A-Flat-Minor
  • A-Flat-Major
  • A-Minor
  • A-Major
  • A-Sharp-Minor
  • A-Sharp-Major
  • B-Flat-Minor
  • B-Flat-Major
  • B-Minor
  • B-Major
  • C-Flat-Major
  • C-Minor
  • C-Major
  • C-Sharp-Minor
  • C-Sharp-Major
  • D-Flat-Major
  • D-Minor
  • D-Major
  • D-Sharp-Minor
  • E-Flat-Major
  • E-Minor
  • E-Major
  • F-Minor
  • F-Major
  • F-Sharp-Minor
  • F-Sharp-Major
  • G-Flat-Major
  • G-Minor
  • G-Major
  • G-Sharp-Minor

Set-Up (with GUI)

(Note: Please input the path to your WAV-Files in the file file_path.py under:

dir_path = "D:\Dropbox\Beats\ProfessionalStuff\Beatstars\\1! Wav Files")

The newer version of this app features a GUI. You can now conveniently input the necessary information.

Note: When choosing a folder, you won't see any files. This is correct. The app will identify your beat based on the input number.

The clip_path, vid_path and driver_path are set within GUI.py. Change these to your preferred locations.

Create .env-File for login credentials

In order for the script to work, you will need to create a file called ".env".

.env-File

Open it with a normal text editor and copy this code:

DEVICE_USERNAME="username"
DEVICE_PASSWORD="password"

Now, insert you Beatstars username and password.

Video locations

(Everything is located within the create_video-function)

First, define the location of the image for your video.

Note: The image should have a 1920px x 1080px dimension.

# Define path for Image
clip_path = r"D:\Dropbox\Youtube Uploads\next.png"

Second, define the location for saving the video

# Define path to save video in
vid_path = fr"C:\Users\Carsten\Downloads\{tags[0]} - {name}.mp4"
# Define path for saving shorts in
shorts_path = fr"D:\Dropbox\Youtube Uploads\Shorts\{tags[0]} - {name} - Short.mp4"

Tag generator

I have created an Excel file (not part of this project) that I use for creating the YouTube text and tags. The "tag_generator.py" module inserts the beat title and 2 of the 3 artist names into this Excel. You can comment out this function in "main.py".

After execution

After you have run the script, you will need to manually choose an upload date and publish your upload on the opened Chrome window.

Technologies

The app is based on:

  • Moviepy
  • Opencv
  • Selenium

beatstars-upload's People

Contributors

mynameiscarsten avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wavvdev

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.