Y T Nuke  
Results 1 to 10 of 10
Hello, I have list of links, these links redirect to some other site.I have list ...
  1. #1
    Ayomav is offline Regular Member
    Join Date
    Nov 2011
    Posts
    248
    Reputation
    27
    Thanks
    114
    Thanked 17 Times in 14 Posts

    Default Any script or imacros that can do this.

    Hello,

    I have list of links, these links redirect to some other site.I have list of links in column A in csv file, I want the script to generate list of links that it redirects to in column B.

    Anyone knows any script or imacros that can do this or anyone willing to create and share in this thread ? Thanks and rep will be given.

    Thanks

  2. #2
    Addicted's Avatar
    Addicted is offline Regular Member
    Join Date
    Nov 2011
    Location
    HEAVEN-server
    Posts
    428
    Reputation
    277
    Thanks
    9
    Thanked 336 Times in 89 Posts

    Default Re: Any script or imacros that can do this.

    i dont think it can be done by script..

    but if someone know much appreciated
    <<=========I-N-D-I-A=============>>

  3. #3
    weedsmoker's Avatar
    weedsmoker is offline Jr. VIP
    Join Date
    May 2011
    Posts
    149
    Reputation
    47
    Thanks
    75
    Thanked 48 Times in 33 Posts

    Default Re: Any script or imacros that can do this.

    OK, you need final url after redirection, right? If this is the case try this python script:
    Code:
    import urllib2
    
    links = '''http://www.watchfreemovies.ch/external.html?title=Game+of+Thrones&url=aHR0cDovL3d3dy5ub3ZhbW92LmNvbS92aWRlby9hMnBrZmExdG00ZTg5&domain=bm92YW1vdi5jb20=&loggedin=0
    http://www.watchfreemovies.ch/external.html?title=Game+of+Thrones&url=aHR0cDovL3d3dy52aWRlb3dlZWQuZXMvZmlsZS80ZGQwYTUxZDIwNmIz&domain=dmlkZW93ZWVkLmVz&loggedin=0'''
    
    for link in links.split('\n'):
        try:
            req = urllib2.urlopen(link)
            print(req.geturl())
        except:
            pass
    Download Pyscripter portable, paste your code in new file and click run, in bottom window you'll get results. Now replace those 2 links with yours (1 link per line).

  4. The Following User Says Thank You to weedsmoker For This Useful Post:

    Ayomav (12-27-2011)

  5. #4
    Ayomav is offline Regular Member
    Join Date
    Nov 2011
    Posts
    248
    Reputation
    27
    Thanks
    114
    Thanked 17 Times in 14 Posts

    Default Re: Any script or imacros that can do this.

    Quote Originally Posted by weedsmoker View Post
    OK, you need final url after redirection, right? If this is the case try this python script:
    Code:
    import urllib2
    
    links = '''http://www.watchfreemovies.ch/external.html?title=Game+of+Thrones&url=aHR0cDovL3d3dy5ub3ZhbW92LmNvbS92aWRlby9hMnBrZmExdG00ZTg5&domain=bm92YW1vdi5jb20=&loggedin=0
    http://www.watchfreemovies.ch/external.html?title=Game+of+Thrones&url=aHR0cDovL3d3dy52aWRlb3dlZWQuZXMvZmlsZS80ZGQwYTUxZDIwNmIz&domain=dmlkZW93ZWVkLmVz&loggedin=0'''
    
    for link in links.split('\n'):
        try:
            req = urllib2.urlopen(link)
            print(req.geturl())
        except:
            pass
    Download Pyscripter portable, paste your code in new file and click run, in bottom window you'll get results. Now replace those 2 links with yours (1 link per line).
    I couldn't run the Pyscripter portable, u have script in imacros or an executable software.

    Thanks

  6. #5
    weedsmoker's Avatar
    weedsmoker is offline Jr. VIP
    Join Date
    May 2011
    Posts
    149
    Reputation
    47
    Thanks
    75
    Thanked 48 Times in 33 Posts

    Default Re: Any script or imacros that can do this.

    I don't know if it is possible doing it with imacros, building executable is troublesome, this is the fastest way. Downloads from Softpedia won't work.
    Download it from
    Code:
    http://ftp.osuosl.org/pub/portablepython/v2.7/PortablePython_2.7.2.1.exe
    extract it, paste the code, replace with your links and press play button (Run)
    Last edited by weedsmoker; 12-27-2011 at 11:37 AM.

  7. The Following User Says Thank You to weedsmoker For This Useful Post:

    Ayomav (12-27-2011)

  8. #6
    Ayomav is offline Regular Member
    Join Date
    Nov 2011
    Posts
    248
    Reputation
    27
    Thanks
    114
    Thanked 17 Times in 14 Posts

    Default Re: Any script or imacros that can do this.

    Quote Originally Posted by weedsmoker View Post
    I don't know if it is possible doing it with imacros, building executable is troublesome, this is the fastest way. Downloads from Softpedia won't work.
    Download it from
    Code:
    http://ftp.osuosl.org/pub/portablepython/v2.7/PortablePython_2.7.2.1.exe
    extract it, paste the code, replace with your links and press play button (Run)
    Thanks alot, it works.

  9. #7
    weedsmoker's Avatar
    weedsmoker is offline Jr. VIP
    Join Date
    May 2011
    Posts
    149
    Reputation
    47
    Thanks
    75
    Thanked 48 Times in 33 Posts

    Default Re: Any script or imacros that can do this.

    I've forgot one thing, if you want to compare redirect urls with final urls in spreadsheet, replace "pass" command with print('\n'). So, if fetching final url fails, script will print empty line.

  10. The Following User Says Thank You to weedsmoker For This Useful Post:

    Ayomav (12-27-2011)

  11. #8
    Ayomav is offline Regular Member
    Join Date
    Nov 2011
    Posts
    248
    Reputation
    27
    Thanks
    114
    Thanked 17 Times in 14 Posts

    Default Re: Any script or imacros that can do this.

    Quote Originally Posted by weedsmoker View Post
    I've forgot one thing, if you want to compare redirect urls with final urls in spreadsheet, replace "pass" command with print('\n'). So, if fetching final url fails, script will print empty line.
    Thanks alot

  12. #9
    Ayomav is offline Regular Member
    Join Date
    Nov 2011
    Posts
    248
    Reputation
    27
    Thanks
    114
    Thanked 17 Times in 14 Posts

    Default Re: Any script or imacros that can do this.

    Quote Originally Posted by weedsmoker View Post
    I've forgot one thing, if you want to compare redirect urls with final urls in spreadsheet, replace "pass" command with print('\n'). So, if fetching final url fails, script will print empty line.
    Hey, thanks alot for your help, I still have 1 problem.First, before I edit the pass command, I enter 1k urls and it gives out 9xx urls, I needed the lines to be correspondance so there was a problem.Now, after you give me the new solution, I enter 1k urls and it's giving out 1,053 lines, an extra of 53 lines.So, it's still giving me the same problem.You know any way to fix this problem ?

    Thanks

  13. #10
    Ayomav is offline Regular Member
    Join Date
    Nov 2011
    Posts
    248
    Reputation
    27
    Thanks
    114
    Thanked 17 Times in 14 Posts

    Default Re: Any script or imacros that can do this.

    Can anyone fix the code so it gives out urls line for line that will be correspondence with the input urls.

    Thanks and rep will be given.

Dot Gov Backlinks Sale


Smarter Submit

Similar Threads

  1. Simple iMacros Script - Open & Close Tabs with Time Delay
    By owilliams in forum HTML & JavaScript
    Replies: 1
    Last Post: 12-10-2011, 12:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76