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 

rapishare links in .txt

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
neXt



Joined: 18 Mar 2007
Posts: 463

PostPosted: Fri Mar 28, 2008 12:53 am    Post subject: rapishare links in .txt Reply with quote

i got annoyed with this ridiculously inconvenient copy and paste from some sites and made up this little tool that grabs all *.rar links pointed to rapidshare, then appends them either in .txt or .lst for flashget import.
Code:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

ifExist dl_file.html
   fileDelete dl_file.html

UrlDownloadToFile, %clipboard%, dl_file.html
if (errorLevel) {
   MsgBox unable to dl url, copy link and try again
return
}

start = 1
loop read, dl_file.html
   {
   toolTip loading progress %A_Index%
   x = %A_Index%
}

loop {
   fileReadline line, dl_file.html, %A_Index%
   If ErrorLevel
      break
   
   x--
   tooltip %x% lines left
   regExMatch(line, "http://rapidshare.*rar", link)
   if (link <> "") {
      loop {
      regExMatch(link, "http://rapidshare.*?rar", xlink, start)
      if (A_Index <> 1) and (xlink = "")
         break
      
      if (xlink = old_xlink) {
         StringLen xStart, xlink
         start := xStart + start
      continue
      }
      
      ;MsgBox %All_links%
      all_links := all_links . "`n" . xlink
      StringLen xStart, xlink
      start := xStart + start
      old_xlink := xlink
      }
   }
}
MsgBox 4,, conver to *.lst ?
ifMsgBox Yes
   fileAppend %all_links%, links.lst
else
   fileAppend %all_links%, links.txt
   
fileDelete dl_file.html
exitapp

Use:
copy URL to clipboard then launch the script.
Back to top
View user's profile Send private message
airjrdn



Joined: 25 Feb 2008
Posts: 35

PostPosted: Fri Mar 28, 2008 2:49 pm    Post subject: Reply with quote

Just use Firefox with two extensions - Linkification & DownThemAll.

Linkification will turn text links into clickable links.

Using DownThemAll, you can right click on the page, select DownThemAll, then in the filter box at the bottom type: Rapidshare.com*[OptinallyFollowedBySomethingHereForFurtherFiltering]
Back to top
View user's profile Send private message
neXt



Joined: 18 Mar 2007
Posts: 463

PostPosted: Fri Mar 28, 2008 4:51 pm    Post subject: Reply with quote

damn, i wish i knew about this earlier Laughing .
Thanks.
Back to top
View user's profile Send private message
airjrdn



Joined: 25 Feb 2008
Posts: 35

PostPosted: Fri Mar 28, 2008 6:24 pm    Post subject: Reply with quote

I have a combined set of very useful extensions on my freeware site at http://www.MissingBytes.net that contains both of these extensions and a few other really good ones.

It's under Internet and Network\Browsers. There's a readme file in the zip file that explains what extenions are included, etc.
Back to top
View user's profile Send private message
Superfraggle



Joined: 02 Nov 2004
Posts: 970
Location: London, UK

PostPosted: Sat Mar 29, 2008 8:08 am    Post subject: Reply with quote

Flashget monitors the clipboard anyway, and just copying the text should fire up the downloads.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
neXt



Joined: 18 Mar 2007
Posts: 463

PostPosted: Sat Mar 29, 2008 4:46 pm    Post subject: Reply with quote

not when it's in:
Title:
links
Title:
links
Title:
links

format.
Back to top
View user's profile Send private message
user



Joined: 05 Oct 2006
Posts: 423

PostPosted: Tue Apr 01, 2008 11:09 pm    Post subject: Reply with quote

thanks for the script

I would with one click to gather all the rapidshare links that appear in a webpage that I currently view

and parse them to "Rapidshare manager" that will autoconvert them to premium and then download the files

or just save them in a text file

without gathering all the links and filtering them (with downloadthemall or links panel in opera) its too many clicks if you do this many times

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



Joined: 02 Nov 2004
Posts: 970
Location: London, UK

PostPosted: Tue Apr 01, 2008 11:52 pm    Post subject: Reply with quote

neXt wrote:
not when it's in:
Title:
links
Title:
links
Title:
links

format.


Oh yeah good point, I forgot I run a script to clean up the clipboard contents when this happens. It allows me to just select the whole page, and it will just pull out the links. Flashget does the rest Very Happy
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
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