Jump to content
Sign in to follow this  
Zepx

Getting new url

Recommended Posts

Hi,

First off all, I'm trying to create a program which generates http://rapidshare.com to http://rsxx.rapidshare.com

Where xx is the server which host the specific file. I'm sure everyone knows that the link will change when you click 'Free User'.

Now... my problem is, how can I find change the first link to the 2nd? If anyone has a better method do tell me, because all I can think of is by doing the following:

#include <IE.au3>
$oIE = _IECreate("http://rapidshare.com/files/75969661/Psychokinesis.Magic.Book.rar.html", 0, 1, 1)
$oForm = _IEFormGetCollection($oIE, 0)
$oGetSubmit= _IEFormElementGetCollection($oForm, 1)
$Submit = _IEAction ($oGetSubmit, "click" )
sleep(5000)
$oIEnew = _IEAttach("http://rs", "url")
$url = _IEPropertyGet($oIEnew, "locationurl")
MsgBox(0, "", $url)

This was my test to obtain the link after clicking free user.

Now, my true intention is to simplify this code and obtain it via the source code. From the first page source code, I get to find this line which already tells me the correct link I want.

<form action="http://rs243.rapidshare.com/files/75969661/Psychokinesis.Magic.Book.rar" method="post">

My main problem here is I cannot find a way to extract this link from the source code. Is there a way to do so?

Share this post


Link to post
Share on other sites

<form action="http://rs243.rapidshare.com/files/75969661/Psychokinesis.Magic.Book.rar" method="post">
$link = '<form action="http://rs243.rapidshare.com/files/75969661/Psychokinesis.Magic.Book.rar" method="post">'
_stringbetween ($link, "http://rs", ".rapidshare.com")
Edited by bam5

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...