Click here to Skip to main content
15,889,858 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody !
I have a premium account at uploaded.net website ( this is a file hosting )
I want to write a small program that can get the direct download link from download link.
For example:
I paste my download to address textbox and then press "get direct link" button, after that my textbox will show the direct download link for me.
I don't have any idea for this situation. So, please help me !

Paste download link to my address textbox and press "get direct link"
http://img824.imageshack.us/img824/4607/w1jf.png[^]

And my textbox will show the direct link
http://img593.imageshack.us/img593/8451/17c4.png[^]

Thanks !
Posted
Updated 23-Jul-13 1:19am
v3

1 solution

You need to manually log in with a web browser. I can give you some tips but I'm not going to write the code for you.

1. Make sure you are able to wait for the web browser to complete load the document.

EXAMPLE:
VB
Imports System.Net

Dim completed As Boolean = False

Private Sub a_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles a.DocumentCompleted
     completed = True
End Sub

Sub Main()
     'this while loop will exit when the web browser sets the completed variable to true
     While Not completed
     End While
End Sub



2. You can use the WebBrowser.Document.GetElementByID("ELEMENTS") to get attributes and click the item.

Everything else you have to do. Good Luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900