Monotirg / youtube-upload

Asynchronous uploading of videos to YouTube without utilizing YouTube APIv3 using Playwright
MIT License
7 stars 2 forks source link

video upload limit has been reached without any upload activity on newly account verified #3

Open bugbounted opened 1 month ago

bugbounted commented 1 month ago

Hello again Monotirg, refer:https://github.com/Monotirg/youtube-upload/issues/2 my account is verified at https://youtube.com/verify & also newly created without any video upload ... Exactly crashed & get that error before title of video typed please test it on windows to see same error at runtime

my code is :


import asyncio
import datetime as dt
import yt_upload as yt 
import logging

async def main():
    # Set up basic logging
    logging.basicConfig(level=logging.INFO)
    logger = logging.getLogger('yt_upload')

    # Configure your channel details with correct paths
    channel = yt.Channel(
        user_data_dir="C:\\Users\\bugbounted\\AppData\\Local\\Google\\Chrome\\User Data\\",  # Update with your actual path
        google_profile="Default",  # Update with your actual profile name
        cookies_path="cookies.json"  # Path to your cookies JSON file
    )

    # Configure the video details
    video = yt.Video(
        video_path="test.mp4",
        title="Funny video",
        description="Funny video about math #math",
        made_for_kids=False,
        category=yt.category.EDUCATION,
        visibility=yt.visibility.PUBLIC,
        age_restriction=True,
        thumbnail="thumbnail.png",
        playlist=["math", ],
        tags=["math"],
        contains_paid_promotion=True,
        allow_automatic_chapters_and_key=False,
        allow_automatic_places=True,
        allow_automatic_concepts=False,
        allow_embedding=True,
        publish_to_subscriptions_feed=True,
        show_viewer_like=True,
        allow_only_audio_remixing=True,
        video_language=yt.language.ENGLISH,
        caption_certification=yt.caption_certification.CONTENT_HAS_NOT_AIRED,
        recording_date=dt.date(2023, 10, 10),
        video_location="Los Angeles",
        license=yt.licence.STANDARD_YOUTUBE,
        education_type=yt.education_type.LECTURE,
        education_academic_system=yt.education_academic_system.UNITED_STATES,
        education_problems=[
            (dt.timedelta(seconds=5), "derivative"),
            (dt.timedelta(minutes=0, seconds=29), "integral")
        ],
        education_level="College",
        education_exam="SAT Math",
        show_comments=True,
        comment_moderation=yt.comment_moderation.HOLD_ALL,
        sort_by=yt.sort_by.NEWEST,
        schedule=dt.datetime.now() + dt.timedelta(days=7)    
    )

    # Assuming 'youtube_channel' is an attribute you need to define
    youtube_channel = "UCghDl3kRIYRO0aUez_Tmaog"  # Replace with your actual channel name or ID

    # Upload the video
    async with channel(youtube_channel) as upload:
        await upload.upload_video(video)

# Run the async main function
asyncio.run(main())
Monotirg commented 3 weeks ago

Hi, sorry for the late reply.

I tried to run it and yes, there is an error :( The error appears because the dom tree of the YouTube page has changed. Will change this in the future, idk how long it will take, but stay tuned.

bugbounted commented 2 weeks ago

Hello again Monotirg, please if it's possible solve this problem as soonest time possible special thanks , regards