TheTechGame Video Uploader 0.1 by Brian Leek.
This is a script created in Python with Selenium that downloads videos from YouTube and then uploads them to TheTechGame. This script only uploads one video at a time to respect TheTechGame rules and to prevent spamming.
- Download or clone the GitHub repo.
- Run
setup.sh
. This will install all the needed Python dependencies that are in requirements.txt file and setupconfig.py
for you. - That's it! Now run
python main.py
and enjoy.
Run main.py
then the script will ask you for the ID for the video on YouTube you would like to download. Example of a video ID looks like: dQw4w9WgXcQ
. Then a few things will happen after you input the ID:
- The script will use YouTube DL to download the video.
- After the script will go to TheTechGame.com and login with the set info.
- Then the script will open the submit video page and enter the required info.
- Submits the video and exits the script.
That's it! It isn't the fastest method or the best but it works.
By enabling headless mode you can run the script in the background well your doing other things with no broswer window in the way. To enable headless mode just open config.py
and find headless = False
and change it to True
. This really hasn't been tested.
By setting disable_images
to True
in config.py
the script will not load images on TheTechGame when it goes to login and submit a video. Keep in mind for the config.py
file to be created you need to run setup.sh
if this your first time running the script.
If you would like to use your own description for the video you are submitting to TheTechGame open config.py
and set custom_desc
to True
. After, set your descripion in video_desc_
and save. Now the script will use that descripion instead of the one from YouTube. Keep in mind for the config.py
file to be created you need to run setup.sh
if this your first time running the script.
If you would like to select a different video category for the video your are submitting to TheTechGame open config.py
and find ttg_html_video_cat_number
and change the number to the category you want. Keep in mind for the config.py
file to be created you need to run setup.sh
if this your first time running the script.
If you would like to set a custom broswer profile to keep you login to TheTechGame open config.py
and set custom_user_dir
to True
and set the path to the profile in browser_user_dir
. To stay signed in to TheTechGame run the script once with the profile to allow it to signin to TheTechGame then after set ttg_already_loggedin
to True
in config.py
. This will skip going to the signin page everytime the script runs. Keep in mind for the config.py
file to be created you need to run setup.sh
if this your first time running the script.
When you first setup the script with setup.sh
it will ask for your login info and uses that but if you want to update it after just open config.py
and find ttg_username
and ttg_password
and update your login there.
- Initial release
If you would like to contribute to this project in any way, feel free too. You will be credited for any work you do. Please make sure to test your code before submitting it. Thanks!