Kev 69 Posted June 1, 2018 Report Share Posted June 1, 2018 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 Quote Link to post Share on other sites
UBotBuddy 331 Posted June 1, 2018 Report Share Posted June 1, 2018 Hey Kev, is this the first time you have run one of these commands? Did you run this command first? "Verify Video Libraries" http://wiki.ubotstudio.com/wiki/Verify_video_libraries Try that and see if it works. Buddy Quote Link to post Share on other sites
Kev 69 Posted June 1, 2018 Author Report Share Posted June 1, 2018 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. Quote Link to post Share on other sites
Kev 69 Posted June 1, 2018 Author Report Share Posted June 1, 2018 Got it - just scraped video title - works fine Quote Link to post Share on other sites
Kev 69 Posted June 1, 2018 Author Report Share Posted June 1, 2018 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") } Quote Link to post Share on other sites
UBotBuddy 331 Posted June 1, 2018 Report Share Posted June 1, 2018 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 Quote Link to post Share on other sites
UBotBuddy 331 Posted June 1, 2018 Report Share Posted June 1, 2018 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 Quote Link to post Share on other sites
Kev 69 Posted June 1, 2018 Author Report Share Posted June 1, 2018 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 Quote Link to post Share on other sites
UBotBuddy 331 Posted June 1, 2018 Report Share Posted June 1, 2018 Hey Kev, Did you see my last post? They will not work in compiled bots. Buddy Quote Link to post Share on other sites
Kev 69 Posted June 1, 2018 Author Report Share Posted June 1, 2018 Hey Kev, Did you see my last post? They will not work in compiled bots. BuddyJust 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 Quote Link to post Share on other sites
UBotBuddy 331 Posted June 1, 2018 Report Share Posted June 1, 2018 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.