Jump to content
UBot Underground

Problems Downloading Youtube


Recommended Posts

Hi all, I am getting a script error when i try to download youtube videos (usin the upgraded ubot).

 

This is the error:

 

https://www.screencast.com/t/e5H3bMWz5p

 

Anyone else having this issue?

 

Whilst I'm here, I was hoping someone might have a solution to this:

 

I want to download all videos and their titles too, and rename the file the same as the video. Anyone got a way to do this?

 

I even tried going direct to the video and downloading using $url but the same error appears.

 

Thanks in advance

Link to post
Share on other sites

That sorted it, thanks Buddy. First time running it.

 

Any idea how I might get the video titles? I was thinking of navigating to each page that way and scraping the title.

Link to post
Share on other sites

I'm having problems running the EXE on two different machines other than the one I coded this on.

 

Any idea what's wrong here?

clear list(%videos)
clear cookies
verify video libraries
navigate("https://www.youtube.com/user/Slowboy71/videos","Wait")
wait for browser event("Everything Loaded","")
loop while($exists(<class="yt-uix-button yt-uix-button-size-default yt-uix-button-default load-more-button yt-uix-load-more browse-items-load-more-button">)) {
    click(<class="yt-uix-button yt-uix-button-size-default yt-uix-button-default load-more-button yt-uix-load-more browse-items-load-more-button">,"Left Click","No")
    wait for browser event("Page Loaded","")
    wait(3)
}
add list to list(%videos,$scrape attribute(<href=w"/watch?v=*">,"href"),"Delete","Global")
set list position(%videos,0)
set(#counter,0,"Global")
set(#videolink,"http://youtube.com{$next list item(%videos)}","Global")
loop($list total(%videos)) {
    navigate(#videolink,"Wait")
    set(#videotitle,$scrape attribute(<id="eow-title">,"innertext"),"Global")
    download youtube video("http://youtube.com{$next list item(%videos)}","{$special folder("Desktop")}\\videos\\{#videotitle}-{#counter}.mp4")
    increment(#counter)
    set(#videolink,"http://youtube.com{$next list item(%videos)}","Global")
}

Link to post
Share on other sites

The two computers may need time so that they will download what they need based upon the bots need.

 

Have they ever run UBots before?  The same requirements exist for these computers that your primary computer has such a the right .Net Framework version.

 

At least you are making progress now.

 

Buddy

Link to post
Share on other sites

Duh!

 

The video commands will not work in a compiled bot.  At least not yet.  Our developers are working towards that goal.  I just do not know when that will happen.

 

Buddy

Link to post
Share on other sites

Yeah plenty - just that I ran the exes and they didn't look to download anything at all. I've ran bots on both machines previously. Nothing changed.

Strange one. I'll tinker around some more see what comes up

Link to post
Share on other sites

Hey Kev,

 

Did you see my last post?  They will not work in compiled bots.

 

Buddy

Just saw it now - Ok so that's good to know. Any reason why that is the case? Seems a little odd right that I can't compile these or am I using a beta version? Thanks for the heads up

Link to post
Share on other sites

It has been that way since the Videos, Images, Audio extended libraries were released.  I want to say that it was documented to be the case but I don't remember.

 

Buddy

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...