diff --git a/.env.template b/.env.template index 1a1bf74..48057d6 100644 --- a/.env.template +++ b/.env.template @@ -4,8 +4,6 @@ REDDIT_CLIENT_SECRET="" REDDIT_USERNAME="" REDDIT_PASSWORD="" -TIKTOK_EMAIL="" -TIKTOK_PASSWORD="" TIKTOK_TAGS="#AskReddit" # If no, it will ask you a thread link to extract the thread, if yes it will randomize it. Default: "no" diff --git a/Dockerfile b/Dockerfile index 1f68ea0..647f754 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ RUN mkdir /app ADD . /app WORKDIR /app RUN pip install -r requirements.txt +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ + && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list +RUN apt-get update && apt-get -y install google-chrome-stable # tricks for pytube : https://github.com/elebumm/RedditVideoMakerBot/issues/142 # (NOTE : This is no longer useful since pytube was removed from the dependencies) diff --git a/README.md b/README.md index fb314ed..fb7b870 100644 --- a/README.md +++ b/README.md @@ -27,21 +27,17 @@ The only original thing being done is the editing and gathering of all materials ## Disclaimers 🚨 -Please use chromedriver.exe provided as its source code has been edited to avoid bot detection on tiktok website. - Use only tiktok accounts that can be accessed through email password on browser, OAuth2.0 may not work, slightly probable. - Do not spam upload videos as tiktok will most likely ban you after this or during the act. I am not responsible/ liable for any damages or problems or resulting effects you face using this tool or in relation with this tool, use at own risk. -Webdriver selected classes that are most likely not going to change in a while, looking for alternatives. - ## Requirements - Python 3.6+ - Playwright (this should install automatically in installation) -- Sox +- Sox (optional) +- Google Chrome installed ## Installation 👩‍💻 @@ -62,6 +58,12 @@ Webdriver selected classes that are most likely not going to change in a while, 7. Enjoy 😎 (Note if you got an error installing or running the bot try first rerunning the command with a three after the name e.g. python3 or pip3) + +## Changing background videos + +1. Open the [background.py](/video_creation/background.py) file +2. Add or remove videos with the background_options variable + ## Video https://user-images.githubusercontent.com/66544866/173453972-6526e4e6-c6ef-41c5-ab40-5d275e724e7c.mp4 diff --git a/main.py b/main.py index 7f756f7..a5b6732 100755 --- a/main.py +++ b/main.py @@ -37,8 +37,6 @@ client_secret = getenv("REDDIT_CLIENT_SECRET") username = getenv("REDDIT_USERNAME") password = getenv("REDDIT_PASSWORD") reddit2fa = getenv("REDDIT_2FA") -tiktok_email = getenv("TIKTOK_EMAIL") -tiktok_password = getenv("TIKTOK_PASSWORD") tiktok_tags = getenv("TIKTOK_TAGS")