AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

youtube video save and audio record
Goto page Previous  1, 2, 3, 4, 5  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
user



Joined: 05 Oct 2006
Posts: 476

PostPosted: Tue Aug 14, 2007 7:47 pm    Post subject: Reply with quote

please make a youtube leecher that will autodownload all the videos of the webpages I visit

it will monitor and gather all the youtube.com/watch?v=* links in all the webpages I visit and then it will download all the videos

thanks
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Tue Aug 14, 2007 7:58 pm    Post subject: Reply with quote

Many thanks Titan, I will try it. Smile

Edit: Thanks! Shocked It is so simple!
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Wed Aug 15, 2007 4:38 am    Post subject: Reply with quote

garry wrote:
Code:
UPDATE=20070814
Thanks Very Happy
Back to top
View user's profile Send private message Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 2214
Location: switzerland

PostPosted: Wed Aug 15, 2007 10:14 pm    Post subject: Reply with quote

I removed script below , must made it better Smile

start youtube, search for artist and copy the site URL
(here copied 6 sites)
extract video name ( also from RelatedVideo ) and size (below pressed CHECK button )
special characters removed
automatically downloads 110 videos with the right name ( button DNLALL )
click button VIDEO, start video when click on column PATH

-1-DNL-SITE
-2-START (see picture)
-3-DNLALL

Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2214
Location: switzerland

PostPosted: Mon Dec 03, 2007 3:06 pm    Post subject: Reply with quote

MODIFIED 2007-12-03 (first page)

flashkid found the second missing url , it works again
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Thu Dec 06, 2007 5:27 am    Post subject: Reply with quote

Thanks for the great update Very Happy
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Thu Dec 13, 2007 5:15 pm    Post subject: Reply with quote

hi
i hope you dont mind i ask about a related subject but not about your script.

I need to get the URL from video on webpages like youtube, apple trailers

could anyone help me? The code Bobo/Titan posted might work but i dont understand how to use it

And for regular Links, how do achive that? How to start ...with whats under mouse or crawl sourcecode ...


Code:
$hotkey::
Clipboard =
   
   Need Help with code here for URL


    Run cmd
    WinWaitActive ahk_class ConsoleWindowClass
    SendInput mplayer {RAW}`"%ClipBoard%`" -cache 8192 -cache-min 20 -idx -adapter 2 -fs -aspect 16:9
    Return
   
#IfWinActive ahk_class MPlayer - The Movie Player
   Esc::WinClose
   If WinExist ("ahk_class ConsoleWindowClass") {
   WinActivate
    }
    Else
Return
Back to top
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Sat Dec 22, 2007 9:53 pm    Post subject: Reply with quote

Hi garry,

Can you make a function that will let me save a youtube vid to file (as raw flv) without a GUI? e.g. YoutubeSave("http://www.youtube.com/watch?v=trL5zZhBt7E", "vid.flv")

I believe your methods doesn't depend on keepvid which is what I want. I tried to analyze your script to do this myself but it's too long/complex for me to understand.

ty in advance.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 2214
Location: switzerland

PostPosted: Sun Dec 23, 2007 10:14 am    Post subject: Reply with quote

hello Guest,
sorry for the late answer, I don't understand the question, maybe someone can help
here a short script , maybe can better understand

hello Titan,
I'm not good in programming and functions
but you can do it, here an example , just searching for the second URL and name

Code:
F1  =YTB1.txt
URL1=http://www.youtube.com/watch?v=J7noYuasI3k        ;<<<  this your copied url

Splashimage,,b w600 h30  CWteal m9 b fs10 zh0,DOWNLOAD >>> %URL1%
UrlDownloadToFile,%URL1%,%F1%
Splashimage, off

;---- search for this line in F1,  it changes
;var fullscreenUrl = '/watch_fullscreen?video_id=J7noYuasI3k&l=127&t=OEgsToPDskIIxLKb0nOjWRbyOGxTrhC5&sk=MYb6O0VPCVC_NLFr57SeNQC&fs=1&title=Vira_velho Carla_Pires';

;-- search for URL2 and name (with regex shorter ) ---------------------
VANAF1=watch_fullscreen?video_id=
UNTIL1=&sk=
VANAF2=&title=
UNTIL2=';

V=0
   Loop,Read,%F1%
      {
      LR=%A_LoopReadLine%
      ifinstring,LR,watch_fullscreen?video_id=
             {
             StringGetPos,VAR1,LR,%VANAF1%
             StringGetPos,VAR2,LR,%UNTIL1%
             VAR1:=(VAR1+27)
             VAR2:=(VAR2+1)
             VAR3:=(VAR2-VAR1)
             VAR4=http://www.youtube.com/get_video?video_id=
             stringmid,ADRESS,LR,VAR1,VAR3
             URL2=%VAR4%%ADRESS%                         ;<<<< new adress URL2

             StringGetPos,VAR11,LR,%VANAF2%
             StringGetPos,VAR12,LR,%UNTIL2%
             VAR11:=(VAR11+8)
             VAR12:=(VAR12+1)
             VAR13:=(VAR12-VAR11)
             stringmid,TITLE,LR,VAR11,VAR13
             F2=%TITLE%.flv                             ;<<<< found name
               break
             }
        }

; --- control test,  in name should be removed all special characters
;msgbox,URL2=%URL2%`nF2=%F2%
;return

Splashimage,,b w600 h30  CWlime m9 b fs10 zh0,DOWNLOAD >>> %F2%
URLDownloadToFile,%URL2%,%F2%
Splashimage, off
run,%F2%
exitapp

~esc::exitapp
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 648

PostPosted: Sat Jan 05, 2008 4:25 pm    Post subject: Reply with quote

SKAN wrote:
... Downloading part is okay, but currently I am using VLC Player ( Whopping 32MB ) to play files.
Can you recommend me any other small footprint / no-install-required / freeware / standalone FLV player ?
I'm using KMPlayer and can recommend it to you, especially as it has same or similar API as Winamp, so my Winamp automations work for KMPlayer, too. A nice side effect...
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 648

PostPosted: Sat Jan 05, 2008 4:27 pm    Post subject: Reply with quote

I think the code disappeared here for some time or I'm blind?
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2214
Location: switzerland

PostPosted: Sat Jan 05, 2008 9:39 pm    Post subject: Reply with quote

@automaticman
lasttime changed 2007-12-11, see first page, maybe sometimes problem with www.autohotkey.net to download ?
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 648

PostPosted: Sun Jan 06, 2008 1:25 am    Post subject: Reply with quote

I tried funHU_YTB_AUDIO_RECORD02.ahk and it seems to work properly, says "download finished" but then I can't see any file there? What might be wrong?
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2214
Location: switzerland

PostPosted: Sun Jan 06, 2008 8:58 am    Post subject: Reply with quote

I've tried with success
in name all special characters are removed
in this example (chines) I will replace the spaces in the name with date, but worked also

Back to top
View user's profile Send private message
Guest






PostPosted: Sun Jan 06, 2008 9:15 am    Post subject: Reply with quote

automaticman wrote:
I tried funHU_YTB_AUDIO_RECORD02.ahk and it seems to work properly, says "download finished" but then I can't see any file there? What might be wrong?

You need to install DirectShow filter for FLV. Then, you can play .flv in Windows Media Player, Media Player Classic, or with MCI.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group