Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bugbounted opened this issue Jun 10, 2024 · 2 comments

Comments

@bugbounted
Copy link

bugbounted commented Jun 10, 2024

Hello again Monotirg,
refer:#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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants