GithubHelp home page GithubHelp logo

wanghaisheng / tiktoka-studio-uploader Goto Github PK

View Code? Open in Web Editor NEW
234.0 11.0 46.0 293.44 MB

Schedule and Publish contents erverywhere.Bulk auto video upload and Scheduling & Publishing Effortless for You & Your Entire Team. batch headless upload all major social networks using this ultimate social media scheduler. Fret less, save time, and generate more leads!

Home Page: https://www.tiktokastudio.com

License: MIT License

Python 98.40% Shell 0.24% JavaScript 1.36%
youtube video content automation tiktok python

tiktoka-studio-uploader's Introduction

Update 2023-12-06

1.rename package to upload pypi for easy install due to old tsup is not allowed to use anymore

USAGE

if there's anything you don't understand, submit an issue or cantact me

for those beginner

checkout the GUI version.

New version you can check www.tiktokastudio.com for more infos.

I can also assist you to run script in your own server(Paid)

youtube

check how to upload youtube videos

tiktok

check how to upload tiktok videos

Tiktoka Studio Uploader

Release version PyPi Donate Sponsors

Supported Sites License: Unlicense Commits Last Commit

Last Year During COVID I was shutdown at home without walking out the door for 2 months and more.at that time I was running 2 shopify store and heavily need the social media tools to auto post mateirals prepared.I also modify object-engine to a ace attorney video bot.Back to topic,After a lot search over this social media schedule post topic,I decided to learn some programming magic and write a one for myself.The reason? we should spend time on more meaningful things instead of waiting to click next page and filling kinds of infos by bare hands. First selenium version code is heavily borrowed from the thanks to part below,later on the playwright version is all by my own.Next big picture would be support mobile platform since all social platform has spam detection and we should take each account seriously and use phone definitely much better than web browser for sure.

Tiktoka Studio - one in all toolbox for social media video publish | Product Hunt


This project aims to automate the Videos upload process for social media platform such as YouTube . Since videos can only be publicly uploaded through the YouTube Data API by using a Google Workspaces Account (not free!YouTube counts 1600 credits per upload. ), I decided to figure out a headless uploader using Selenium and Playwright. This approach also bypasses API restrictions (e.g. Rate Limits/Endcards can't be set through the API).There are tons of library existing but not for me .

AS a code dummy, I do accept any advice because my only purpose is to get things working

if you are a selenium guy, pls check main branch, if not, just use this playwright branch.

rewrite it with microsoft playwright

  1. speed is much faster than selenium version

  2. you don't have to worry about browser driver any more

  3. more like category setting, subtitle upload etc are considered

Methods

youtube

  • we use playwright and selenium automation testing framework to act like as a human user to hand over the video uploading process to save your time for coffee.

tiktok

  • we use playwright and selenium automation testing framework to act like as a human user to hand over the video uploading process to save your time for coffee.

  • we develop an api based on official openapi documentations to support 2b partners to batch upload video from their mobile app or application.

  • we use sessionId and cracked uploading endpoint api to finish video uploading processing.

features YOU MAY NEED

profile support

use firefox profile instead of cookie file can avoid hints such as your browser is insecure

1. proxy support

auto detect whether need a proxy. you can use socks5 too.

2. auto cookie export without any browser extension/plugins

see script for [youtube] (examples/save-youtube-Cookie.py) see script for tiktok

for those with multiple channels under the one Google account,you need each cookie file for each channel.

3. schedule time publish

you can explictly specify a date and time for each video or you can set publish policy and daily public count, for example, daily count is 4, you got 5 videos, then first 4 will be published 1 day after the upload date, the other 1 will be 2 days after the upload date

4. fix Google account verify

if auto verify is not working, you need to manually input verification code into your browser

5. bulk videos and batch videos support

check files_in_excel_youtube.py to load video meta from a excel template

check files_in_folder_youtube.py to monitor videos in specific folder

GUI Version

I have released one draft version of a GUI version to make the usage for those non-coding people that want a one click easy solution. It's been tested by about 5 friends. You can check it out if you sponsor me. You can get the exe version on Windows

please DM me at [email protected] after sponsor, I have not find a proper way to automatically to send the package yet

Get the early bird version. Please sponsor me here

or click any link you find in the repo

proposed features in future version gui

image

The more modern web technology cross platform GUI is being delayed Since my computer broken during the last 20 days, I would add some features to old tkinter version

In the future I plan to add more features like invisible watermark to protect your copyright from theft and cross platform publish that you may post videos not only on Youtube.

how to use video demo

English version detailed intro and demo

https://youtu.be/tp69CzU1y7s

https://youtu.be/IXaEQG1BCkw

https://youtu.be/Sqj0uO9VCy4


features included in the GUI version

  • → no limit of video counts

you may got hundreds of historical videos or prepare 200+ video for new product.

1000+ is possible especially for archive or backup usage as private

does this uploader (gui version specifically) bypass the youtube upload limit of 100 uploads per day? could it do 10k uploads in a day?

No.be aware of that this is automation instead of crack thing. If it can be done,definitely would be flagged as spam and you lost your account ,that is not the price you want to pay all of automation task are meant to act like regular user operations but ease your boring hand work

image

Hi YouTube Developer,

We're writing to let you know about a change to the YouTube API Services.

To ensure safety at YouTube, we've limited how many videos a channel can upload in a 24-hour period via the YouTube Data API. This change aligns the YouTube Data API upload experience with the limits already in place for desktop and mobile uploads.

  • → you don't have to edit all metadata one by one

Full description combine from prefix, suffix and video filename tags combine from preferred tags and AI based generated topic related tags publish time can automatically set without any effort

  • → auto generate thumbnail from video highlight

you can using these as starting point to add overlay text to make it more click-bait to get traffic

  • → auto generate Tags from AI It can detect keywords search and existing video gaps in your niche and generate suggestions.

  • → auto add Free copyright music some music is the secret weapon to traffic, you need dig it by yourself.and also not to share with others

  • → invisible watermark at some day if you got viral someone will steal your content to re-post over other platform, cut off your logo or other visible watermark,with this invisible/hidden watermark technology, you can hardly lost the battle

  • → multi-account and multi-channel under one account as a newbie you will not want to be limited to only using one account. It will save your time to success

  • → auto set schedule time to public for each video bulk publish. it seems no other lib supports this feature yet you can explicitly specify a date and time for each video or you can set publish policy and daily public count, for example, daily count is 4, you got 5 videos, then first 4 will be published 1 day after the upload date, the other 1 will be 2 days after the upload date

  • → video upload in batch for those who want a one click setting and went to bed ,get jobs all done after wake up in th morning all you need is choose the video directory

  • → Installed on PC, access from PC and mobile

We'd love to hear your feedback on our new feature! 😊

THANKS TO

supported sites

https://github.com/wanghaisheng/tiktoka-studio-uploader/blob/playwright/supportedsites.md

you can submit an issue too

community/Support

Join discord

https://discord.gg/mSCMS3jv5V

Join lark for debugging your issues with me

Star History

Star History Chart

tiktoka-studio-uploader's People

Contributors

abhishekmj303 avatar benjamesando avatar stevezheng avatar wanghaisheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiktoka-studio-uploader's Issues

upload from android or iphone

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ts-up version 2023.08.24 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

No response

Description

if we can use real phone or stimulator to do this

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

YouTube Visibility Public and Unlist not clickable

Checklist

Question

In youtube_upload.py, around line 848, the button name should be "PUBLIC" instead of "Public".

Secondly, the button click does not work, even "page.get_by_role("radio", name="PUBLIC").is_visible()" is True.

Could you please help resolve this problem? I wonder if this is observed by other users. Thanks in advance!

it stuck at the next button it should have one more

did this under it is good?
try:
self.log.debug("Trying to set video visibility to public...")
public_main_button = modal.find_element_by_name(PUBLIC_BUTTON)
public_main_button.find_element_by_id(RADIO_LABEL).click()

    except:
        pass
    else:
        self.click_next(modal) #in here it click the next and the program continues
        self.log.debug("Trying to set video visibility to public...")
        public_main_button = modal.find_element_by_name(PUBLIC_BUTTON)
        public_main_button.find_element_by_id(RADIO_LABEL).click()

selenium能打开火狐浏览器(版本94),但在填写“说明”时报错如下:

image

File "C:\Users\Administrator\miniconda3\envs\my_exercise\lib\site-packages\opplast\upload.py", line 123, in upload
container = modal.find_element_by_xpath(DESCRIPTION_CONTAINER)
File "C:\Users\Administrator\miniconda3\envs\my_exercise\lib\site-packages\selenium\webdriver\remote\webelement.py", line 351, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\Administrator\miniconda3\envs\my_exercise\lib\site-packages\selenium\webdriver\remote\webelement.py", line 659, in find_element
{"using": by, "value": value})['value']
File "C:\Users\Administrator\miniconda3\envs\my_exercise\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "C:\Users\Administrator\miniconda3\envs\my_exercise\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\miniconda3\envs\my_exercise\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: /html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[1]/ytcp-video-metadata-editor/div/ytcp-video-metadata-editor-basics/div[2]/ytcp-mention-textbox/ytcp-form-input-container/div[1]/div[2]/ytcp-mention-input

查阅报错中的最后一句代码:

selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: /html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[1]/ytcp-video-metadata-editor/div/ytcp-video-metadata-editor-basics/div[2]/ytcp-mention-textbox/ytcp-form-input-container/div[1]/div[2]/ytcp-mention-input

发现是constant.py 文件中的 DESCRIPTION_CONTAINER 值。不知是不是这个原因?该如何修改?
6be5b7edc713d3bb1dba2ca5ce4bf53

support submit first comment on your new video

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

https://www.youtube.com/shorts/

Description

many creator want to use the first comment to drive more traffic to their website, so they need this feature

  1. upload video to youtube or tiktok
  2. submit prepared comment to this video after upload is done

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

ModuleNotFoundError: No module named 'redis'

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running ytb_up version 0.1.15 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

I'm using Python version 3.10.0.
Redis 3.5.3 Installed

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\youtube\tiktoka-studio-uploader\examples\onefile-example_tiktok_sessionid.py", line 1, in
from tsup.tiktok.sessionId.uploader import upload2TiktokSessionId
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tsup-0.1.16-py3.10.egg\tsup_init_.py", line 25, in
from tsup.youtube.youtube_upload import YoutubeUpload
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tsup-0.1.16-py3.10.egg\tsup\youtube\youtube_upload.py", line 12, in
from tsup.utils.webdriver import (
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tsup-0.1.16-py3.10.egg\tsup\utils\webdriver_init_.py", line 10, in
from tsup.utils.webdriver.playwright_driver_async import PlaywrightAsyncDriver
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tsup-0.1.16-py3.10.egg\tsup\utils\webdriver\playwright_driver_async.py", line 28, in
from tsup.utils import tools
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tsup-0.1.16-py3.10.egg\tsup\utils\tools.py", line 44, in
import redis
ModuleNotFoundError: No module named 'redis'

zzbot like fast google drive upload

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

New zealand

Example URLs

Hey there i saw bot which uploads videos so fast would love to see id you build something like that thanks

Description

Youtube bot zzbot like fast google drive upload

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

thumbnail auto gen

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

https://shots.so/

Description

1.fully auto
2.manual import template and meta gen

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

when internet is slow it goes title function and before the browser shows it

when internet is slow it goes to upload function it uploads but the internet doesnt goes fast and the title function occur .Because it doesnt find title the function is stopped and it goes like this again and again.i tried to delay the title function to occur by doing a sleep.(60) when it uploads the video but it still goes like this.can you provide a solution ?

It can upload a video to a playlist (if not found, it will be created)

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

youtube

Description

It can upload a video to a playlist (if not found, it will be created)

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Add handling of 2FA enabled accounts

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

fawazahmed0/youtube-uploader#101

Description

Print 2FA code to press on phone if account has google play services auth enabled

Ask for code through user input if code was sent via SMS

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Failed to upload Video

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running ytb_up version 0.1.15 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

[00:40:12] ←[92mAuthenticating browser with cookies←[0m [00:40:12] Create a firefox browser instance [00:40:53] Authenticating browser with cookies [00:40:56] Posting C:\Users\Administrator\Desktop\tiktok-uploader\tiktok-uploader\video.mp4 with description: This is a video I just downloaded [00:40:56] Navigating to upload page [00:40:58] Uploading video file [00:41:03] Removing split window [00:41:08] Split window not found or operation timed out [00:41:08] Setting interactivity settings [00:41:10] Setting description [00:41:11] Clicking the post button [00:42:12] Failed to upload C:\Users\Administrator\Desktop\tiktok-uploader\tiktok-uploader\video.mp4 [00:42:12] Message: Stacktrace: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:507:5 dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:132:16

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

KeyError: 'Result'

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running ytb_up version 0.1.15 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

python examples/onefile-example_tiktok_sessionid_command.py

File "C:\Users\Administrator\Desktop\py\social-uploader\examples\onefile-example_tiktok_sessionid_command.py", line 26, in
upload2TiktokSessionId(args.session_id, args.path, args.title, args.tags, args.users, args.url_server, args.schedule_time)
File "C:\Users\Administrator\Desktop\py\social-uploader.venv\Lib\site-packages\upgenius\tiktok\sessionId\uploader.py", line 70, in upload2TiktokSessionId
video_id = uploadToTikTok(video, session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\py\social-uploader.venv\Lib\site-packages\upgenius\tiktok\sessionId\util.py", line 146, in uploadToTikTok
upload_node = r.json()["Result"]["InnerUploadAddress"]["UploadNodes"][0]
~~~~~~~~^^^^^^^^^^
KeyError: 'Result'

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

chrome and user data dir

Checklist

Question

Chrome can't launch itself with a User Profile folder, it must launch from a User Data folder. If you want a specific profile, you can set a profile as your default Chrome profile and then copy the new User Data folder elsewhere for your application (or use original User Data folder).

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

youtube feature collect

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

https://github.com/tokland/youtube-upload

Description

https://github.com/tokland/youtube-upload/issues

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Posting to tiktok on selenium fails

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running ytb_up version 0.1.15 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

Hello! I am trying to post a number of videos using selenium:

[22:30:18] Authenticating browser with cookies
[22:30:18] Uploading 15 videos
[22:30:18] Create a chrome browser instance in headless mode

DevTools listening on ws://127.0.0.1:29910/devtools/browser/de884051-44c0-410f-ba9a-b92fed806da7
[22:30:20] Authenticating browser with cookies
[22:30:23] Posting E:\BrainRot\mmep1\s1e01\s1e01_clip_01.mp4
               with description: Malcolm in The Middle Season 1 Episode 1 Part 1
Z:\rollingHashtags.txt
[22:30:23] Navigating to upload page
[29552:29004:1231/223023.618:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[22:30:24] Uploading video file
[29552:29004:1231/223025.208:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[29552:29004:1231/223025.602:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[29552:29004:1231/223026.133:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
'upload_in_progress'
[29860:29864:1231/223258.671:ERROR:device_event_log_impl.cc(192)] [22:32:58.670] USB: usb_service_win.cc:104 SetupDiGetDeviceProperty({{A45C254E-DF1C-4EFD-8020-67D146A850E0}, 6}) failed: Element not found. (0x490)
Message:
Stacktrace:
        GetHandleVerifier [0x00506EE3+174339]
        (No symbol) [0x00430A51]
        (No symbol) [0x00146FF6]
        (No symbol) [0x00179876]
        (No symbol) [0x00179C2C]
        (No symbol) [0x001ABD42]
        (No symbol) [0x00197054]
        (No symbol) [0x001AA104]
        (No symbol) [0x00196DA6]
        (No symbol) [0x00171034]
        (No symbol) [0x00171F8D]
        GetHandleVerifier [0x005A4B1C+820540]
        sqlite3_dbdata_init [0x006653EE+653550]
        sqlite3_dbdata_init [0x00664E09+652041]
        sqlite3_dbdata_init [0x006597CC+605388]
        sqlite3_dbdata_init [0x00665D9B+656027]
        (No symbol) [0x0043FE6C]
        (No symbol) [0x004383B8]
        (No symbol) [0x004384DD]
        (No symbol) [0x00425818]
        BaseThreadInitThunk [0x7553FCC9+25]
        RtlGetAppContainerNamedObjectPath [0x77347C6E+286]
        RtlGetAppContainerNamedObjectPath [0x77347C3E+238]
        (No symbol) [0x00000000]

I'm not entirely sure what is causing this error, but it is preventing me from uploading the videos. I installed the library by pip install upgenius. Thank you so much for any help!

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

donebutton wont click

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

microsoft/playwright-python#1944

PWDEBUG =1 and provide a short video for this
https://youtu.be/3-anQ7XSpIY
https://youtu.be/DhybEFFKbMo

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

怎么pip安装呢,没看见什么命令文档啥的

Checklist

Question

标题

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Changing the publishpolicy to 0 for "PRIVATE", not working.

Hi,

I used your code to upload a basic video, works fine for me. But I wanted it to default upload to "PRIVATE" instead of "PUBLIC", so I searched around your code.
I found publishpolicy:str = 0 in the upload.py, I changed it to '0' and just 0 to make it default PRIVATE.

But I got an error.

Following was the debug log:

DEBUG: Firefox is now running
DEBUG: Trying to upload "**" to YouTube...
DEBUG: Found YouTube upload Dialog Modal
DEBUG: Trying to set "My YouTube Title - Testing ytb" as title...
DEBUG: Trying to set "My YouTube Description" as description...
DEBUG: Trying to set "
" as thumbnail...
DEBUG: Trying to set video to "Not made for kids"...
DEBUG: Trying to set "these,are,my,tags" as tags...
DEBUG: Trying to set video visibility to public...
Traceback (most recent call last):
File "e:\TwitchToYT-Test\Upload_yt.py", line 9, in
was_uploaded, video_id = upload.upload(
File "E:\TwitchToYT-Test\venv\lib\site-packages\opplast\upload.py", line 164, in upload
public_main_button = modal.find_element_by_name(PUBLIC_BUTTON)
File "E:\TwitchToYT-Test\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 209, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "E:\TwitchToYT-Test\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 658, in find_element
return self._execute(Command.FIND_CHILD_ELEMENT,
File "E:\TwitchToYT-Test\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "E:\TwitchToYT-Test\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "E:\TwitchToYT-Test\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [name="PUBLIC"]

Error: waiting for selector "[class="progress-label style-scope ytcp-video-upload-progress"]"

Environment: Windows 10
Issue frequency: Not frequent.
Error Details:

clear existing tags
filling new tags
Traceback (most recent call last):
File "C:\nft\youtube-auto-upload-playwright\upload.py", line 39, in
was_uploaded, upload_video_id = upload.upload(
File "C:\nft\youtube-auto-upload-playwright\ytb_up\upload.py", line 316, in upload
wait_for_processing(page,process=False)
File "C:\nft\youtube-auto-upload-playwright\ytb_up\utils.py", line 95, in wait_for_processing
'[class="progress-label style-scope ytcp-video-upload-progress"]').text_content()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\sync_api_generated.py", line 13452, in text_content
self._sync(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_sync_base.py", line 88, in _sync
return task.result()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_locator.py", line 455, in text_content
return await self._frame.text_content(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_frame.py", line 517, in text_content
return await self._channel.send("textContent", locals_to_params(locals()))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 39, in send
return await self.inner_send(method, params, False)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 63, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.Error: Error: strict mode violation: "[class="progress-label style-scope ytcp-video-upload-progress"]" resolved to 2 elements:
1) <span class="progress-label style-scope ytcp-video-upl…>Checking 0% aka playwright.$("#video-result-0 >> text=Checking 0%")
2) <span class="progress-label style-scope ytcp-video-upl…>Checking 0% ... 5 minutes left aka playwright.$("text=Checking 0% ... 5 minutes left")

=========================== logs ===========================
waiting for selector "[class="progress-label style-scope ytcp-video-upload-progress"]"
Error: strict mode violation: "[class="progress-label style-scope ytcp-video-upload-progress"]" resolved to 2 elements:
1) <span class="progress-label style-scope ytcp-video-upl…>Checking 0% aka playwright.$("#video-result-0 >> text=Checking 0%")
2) <span class="progress-label style-scope ytcp-video-upl…>Checking 0% ... 5 minutes left aka playwright.$("text=Checking 0% ... 5 minutes left")

============================================================
PS C:\nft\youtube-auto-upload-playwright\video> node:events:368
throw er; // Unhandled 'error' event
^

Error: EPIPE: broken pipe, write
at Socket._write (node:internal/net:55:25)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at Socket.Writable.write (node:internal/streams/writable:334:10)
at PipeTransport.send (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\site-packages\playwright\driver\package\lib\protocol\transport.js:54:21)
at DispatcherConnection.dispatcherConnection.onmessage (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\site-packages\playwright\driver\package\lib\cli\driver.js:63:57)
at DispatcherConnection.sendMessageToClient (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\dispatcher.js:187:10)
at BrowserContextDispatcher._dispatchEvent (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\dispatcher.js:108:22)
at FFBrowserContext. (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\browserContextDispatcher.js:114:19)
at FFBrowserContext.emit (node:events:390:28)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4047,
syscall: 'write',
code: 'EPIPE'
}

how to

hi, please can make a short how-to video or screenshots to install and use this script correctly? this is hard to understand beginners.

proposed video metajson for youtube

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

youtube.com

Description

{
"title": "my test title",
"description": "my test description",
"tags": ["test tag1", "test tag2"],
"privacyStatus": "private",
"madeForKids": false,
"embeddable": true,
"license": "creativeCommon",
"publicStatsViewable": true,
"publishAt": "2017-06-01T12:05:00+02:00",
"categoryId": "10",
"recordingdate": "2017-05-21",
"playlistIds": ["xxxxxxxxxxxxxxxxxx", "yyyyyyyyyyyyyyyyyy"],
"playlistTitles": ["my test playlist"],
"language": "fr",
"monetization": {"allowed": true},
"location": {
"latitude": 48.8584,
"longitude": 2.2945
},
"locationDescription": "Eiffel Tower",
}

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

It seems to have stopped working after the new tiktok UI.

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running ytb_up version 0.1.15 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

It seems that there has been an update to the TikTok UI and Selenium has stopped working.

Captura

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Add handling of 2FA enabled accounts

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

fawazahmed0/youtube-uploader#101

Description

Print 2FA code to press on phone if account has google play services auth enabled

Ask for code through user input if code was sent via SMS

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

youtube.py", line 284, in upload hint=await page.locator('#error-short style-scope ytcp-uploads-dialog').text_content()

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

youtube.py", line 284, in upload
hint=await page.locator('#error-short style-scope ytcp-uploads-dialog').text_content()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for selector "#error-short style-scope ytcp-uploads-dialog"

System:
OS:
ubuntu 18.04,
windows 10

=========================== ===========================

usr/lib/python3.7/asyncio/unix_events.py:878: RuntimeWarning: A loop is being detached from a child watcher with pending handlers
RuntimeWarning)
Traceback (most recent call last):
File "onefile.py", line 153, in
scheduletopublish_7dayslater()
File "onefile.py", line 145, in scheduletopublish_7dayslater
publish_date=publish_date
File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
return future.result()
File "/mnt/emaker/utils/youtube_auto/ytb_up/youtube.py", line 284, in upload
hint=await page.locator('#error-short style-scope ytcp-uploads-dialog').text_content()
File "/home/skygui/.local/lib/python3.7/site-packages/playwright/async_api/_generated.py", line 13592, in text_content
await self._impl_obj.text_content(timeout=timeout)
File "/home/skygui/.local/lib/python3.7/site-packages/playwright/_impl/_locator.py", line 471, in text_content
**params,
File "/home/skygui/.local/lib/python3.7/site-packages/playwright/_impl/_frame.py", line 534, in text_content
return await self._channel.send("textContent", locals_to_params(locals()))
File "/home/skygui/.local/lib/python3.7/site-packages/playwright/_impl/_connection.py", line 44, in send
lambda: self.inner_send(method, params, False)
File "/home/skygui/.local/lib/python3.7/site-packages/playwright/_impl/_connection.py", line 387, in wrap_api_call
return await cb()
File "/home/skygui/.local/lib/python3.7/site-packages/playwright/_impl/_connection.py", line 78, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for selector "#error-short style-scope ytcp-uploads-dialog"

Posts are not published on tiktok.

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running ytb_up version 0.1.15 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

Since December 18, for some reason Tiktok videos are not published on any of my 4 accounts. As you can see in the snapshot, although it says "Published Succefully", when I go to the Tiktok account the video does not appear published.
Is there a way to leave a log, to understand what may be happening?
Sin título

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

i found a bug

in cookie.py,line 110 Robotcookie is not defined,i don't know how to fix it.

cookie editing getting error on upload

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

hey there i am getting this error on upload

Youtube 0 views

Checklist

Question

As you can see, my first 2 videos had more than 100 and 500 views, but then the others had 0 views (1 view was mine). The only thing I see that is different is in Restrictions it says "Shorts policy" in those that have visualizations. Has this happened to anyone else?

Captura

support Antidetect browsers

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

to avoid got banned, Antidetect Browser list:

Description

Lalicat

VMLogin

GoLogin

AdsPower

Incogniton

MuLogin

AntBrowser

MBBrowser

VMMask

BitBrowser

Maskfog

Hubstudio

SimplesLogin

Undetectable

Dolphin {anty}

ClonBrowser

Indigo

https://github.com/wanghaisheng/huobi_primelist_multiaccount_with_adspower

https://github.com/razeb-in-sec/adspower-mass-voting-snapshot/tree/main

https://github.com/ZavodVenture/adspower/blob/main/creator/create.py

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

what is "has_cookies_for_current_website" method in driver object?

when i execute Upload.upload,

occur error in upload.py line 95
elif self.driver.has_cookies_for_current_website():
AttributeError: 'Firefox' object has no attribute 'has_cookies_for_current_website'

what is "has_cookies_for_current_website" method in driver object?
and also i can not found "load_cookies" method in 96 line

support all filed of youtube

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running ytb-up version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

youtube.com

Description

for example, category,playlist,video language, endcard etc

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

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.