| View previous topic :: View next topic |
| Author |
Message |
neXt
Joined: 18 Mar 2007 Posts: 463
|
Posted: Fri Mar 28, 2008 12:53 am Post subject: rapishare links in .txt |
|
|
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 |
|
 |
airjrdn
Joined: 25 Feb 2008 Posts: 35
|
Posted: Fri Mar 28, 2008 2:49 pm Post subject: |
|
|
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 |
|
 |
neXt
Joined: 18 Mar 2007 Posts: 463
|
Posted: Fri Mar 28, 2008 4:51 pm Post subject: |
|
|
damn, i wish i knew about this earlier .
Thanks. |
|
| Back to top |
|
 |
airjrdn
Joined: 25 Feb 2008 Posts: 35
|
Posted: Fri Mar 28, 2008 6:24 pm Post subject: |
|
|
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 |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 970 Location: London, UK
|
Posted: Sat Mar 29, 2008 8:08 am Post subject: |
|
|
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 |
|
 |
neXt
Joined: 18 Mar 2007 Posts: 463
|
Posted: Sat Mar 29, 2008 4:46 pm Post subject: |
|
|
not when it's in:
Title:
links
Title:
links
Title:
links
format. |
|
| Back to top |
|
 |
user
Joined: 05 Oct 2006 Posts: 423
|
Posted: Tue Apr 01, 2008 11:09 pm Post subject: |
|
|
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 |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 970 Location: London, UK
|
Posted: Tue Apr 01, 2008 11:52 pm Post subject: |
|
|
| 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  _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
|