AutoHotkey Community

It is currently May 25th, 2012, 2:47 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: August 14th, 2007, 8:47 pm 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 14th, 2007, 8:58 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Many thanks Titan, I will try it. :)

Edit: Thanks! :shock: It is so simple!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2007, 5:38 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
garry wrote:
Code:
UPDATE=20070814
Thanks :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2007, 11:14 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2248
Location: switzerland
I removed script below , must made it better :)

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

Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2007, 4:06 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2248
Location: switzerland
MODIFIED 2007-12-03 (first page)

flashkid found the second missing url , it works again


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 6:27 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Thanks for the great update :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2007, 6:15 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 22nd, 2007, 10:53 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2007, 11:14 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2248
Location: switzerland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2008, 5:25 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2008, 5:27 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
I think the code disappeared here for some time or I'm blind?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2008, 10:39 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2248
Location: switzerland
@automaticman
lasttime changed 2007-12-11, see first page, maybe sometimes problem with www.autohotkey.net to download ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2008, 2:25 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2008, 9:58 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2248
Location: switzerland
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

Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2008, 10:15 am 
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.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, Google [Bot], JamixZol and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group