Sign in to follow this  
Followers 0
slipsystem

href magnetic links

2 posts in this topic

hello guys I am a noob. I am trying to write a script that acts like a search function for thepiratebay

basicly the idea im going for is enter the name of the movie and it automaticly loads it in bitcomet

when you run the script it will give you a input box so you can enter the the name of what you are looking for.

it will then open internet explorer on that search page sort it by number of seeds.

then I get stuck I am trying to scan the links on that page for the word magnet then execute the link wich will then open up utorrent bitcommet whatever the default program is. 

i cant seem to find the word magnet

#include <IE.au3>

$INISearch = InputBox("Movie Downloader","Type name here")
Local $oIE = _IECreate("http://thepiratebay.sx/search/" & $INISearch & "/0/7/0")
Local $oLinks = _IELinkGetCollection($oIE)
Local $iNumLinks = @extended
For $oLink In $oLinks
        If StringLeft($oLink.href, 8) = 'magnet' Then $Magnetic = $oLink.href
           Next
ShellExecute($Magnetic)

any advice?

Share this post


Link to post
Share on other sites



slipsystem,

Yes, watch the file legally. Thread locked. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0