Jump to content
UBot Underground

How To Get Final Url's From A Redirected Url's


Recommended Posts

Hello There,

 

I am New to Ubot and I will be really appreciated if someone help's me with the url thing,

 

I have more than 15k urls and all the url's are redirected and I want to get the final url's in the fastest way possible,

 

example: redirect.url.com >> further.redirect.com >> "final.url.com"

 

Please Help

Thanks in Advance

Link to post
Share on other sites

Hi,

Here is a simple solution

navigate("http://tinyurl.com/5b2su2","Wait")
wait for browser event("Everything Loaded","")
comment("notice new url")
alert($url)

Of course you need all the rest of the code.
load urls from file into a list
loop the list total
add current url, final url to another list
save to file your list

Regards,
CD

  • Like 2
Link to post
Share on other sites

Hello Code Docta (Nick C.),

 

I really appreciate your help thank you, is there any other way to do it in socket mode or any other faster way, to make things faster I have more than 15k urls and it took lot of time if I open and wait to load every url in the browser.

 

thanks in advance

Link to post
Share on other sites

Yes,

You can do in multi threading.

search google
site:ubotstudio.com multithreading

 

There are many ways.

 

Python
HTTP post plugin
 

Hire someone with the knowledge to make it for you.

No one will make your bot for you for free, as far as i know.

Regards,
CD

Link to post
Share on other sites

You are welcome :) Glad I can help.


This plugin is free and has $get last url

http://network.ubotstudio.com/forum/index.php/topic/20002-free-heopas-custom-plugin-thread-lock-sqlite-thread-variables-email-ini-clipboard/

 

Just loop through that for a day :)

Link to post
Share on other sites

set(#get,$plugin function("HeopasCustom.dll", "$Heopas HTTP Get", "http://tinyurl.com/5b2su2", "", "", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0", "", 20),"Global")
set(#last url,$plugin function("HeopasCustom.dll", "$Heopas HTTP Last URL"),"Global")
alert(#last url)

There

 

Regards,

CD

Link to post
Share on other sites

comment("remove this it is just for demo
save to file")
save to file("{$special folder("Desktop")}\\urls.txt","http://tinyurl.com/5b2su2")
clear list(%urls)
add list to list(%urls,$list from file("{$special folder("Desktop")}\\urls.txt"),"Delete","Global")
clear list(%final urls)
loop($list total(%urls)) {
    set(#NLI,$next list item(%urls),"Global")
    set(#get,$plugin function("HeopasCustom.dll", "$Heopas HTTP Get", "http://tinyurl.com/5b2su2", "", "", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0", "", 20),"Global")
    set(#last url,$plugin function("HeopasCustom.dll", "$Heopas HTTP Last URL"),"Global")
    add item to list(%final urls,#last url,"Don\'t Delete","Global")
}
ui stat monitor("Total URLss: {$list total(%urls)}","<br>checked: {$list total(%final urls)}")

It would look something like this.

 

Regards,

CD

get final url.ubot

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...