 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
user
Joined: 05 Oct 2006 Posts: 476
|
Posted: Tue Aug 14, 2007 7:47 pm Post subject: |
|
|
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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Tue Aug 14, 2007 7:58 pm Post subject: |
|
|
Many thanks Titan, I will try it.
Edit: Thanks! It is so simple! |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Wed Aug 15, 2007 4:38 am Post subject: |
|
|
Thanks  |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Wed Aug 15, 2007 10:14 pm Post subject: |
|
|
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
 |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Mon Dec 03, 2007 3:06 pm Post subject: |
|
|
MODIFIED 2007-12-03 (first page)
flashkid found the second missing url , it works again |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Thu Dec 06, 2007 5:27 am Post subject: |
|
|
Thanks for the great update  |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Dec 13, 2007 5:15 pm Post subject: |
|
|
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
|
Posted: Sat Dec 22, 2007 9:53 pm Post subject: |
|
|
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. _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Sun Dec 23, 2007 10:14 am Post subject: |
|
|
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 |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sat Jan 05, 2008 4:25 pm Post subject: |
|
|
| 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 |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sat Jan 05, 2008 4:27 pm Post subject: |
|
|
| I think the code disappeared here for some time or I'm blind? |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Sat Jan 05, 2008 9:39 pm Post subject: |
|
|
@automaticman
lasttime changed 2007-12-11, see first page, maybe sometimes problem with www.autohotkey.net to download ? |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 648
|
Posted: Sun Jan 06, 2008 1:25 am Post subject: |
|
|
| 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 |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2214 Location: switzerland
|
Posted: Sun Jan 06, 2008 8:58 am Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Sun Jan 06, 2008 9:15 am Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|