Follow link redirects and save destination url

Discussion in 'A-Parser Support Forum' started by scrapefun, Aug 21, 2019.

  1. scrapefun

    scrapefun A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Feb 24, 2015
    Messages:
    127
    Likes Received:
    17
    I need to take a list of links that use redirects, follow all redirects and then save the final destination url.

    The query is formatted like:

    <UNIQUE_ID>,<URL_THAT_REDIRECTS>


    I want the output to be formatted like:
    <UNIQUE_ID>,<URL_THAT_REDIRECTS>,<FINAL_DESTINATION_URL>
     
  2. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    2,649
    Likes Received:
    1,618
  3. Support Денис

    Support Денис A-Parser Enterprise License
    Staff Member A-Parser Enterprise

    Joined:
    Jun 12, 2017
    Messages:
    581
    Likes Received:
    175
    You can try this
    [​IMG]
    eJx9VG1P4kAQ/ivNRhPI9WqJineVmCDKgSIolPiBELNHB26PpVt3t6hH+O83uy0t
    ei9fKDszzzPPzstuiKZqqe4lKNCKBJMNSex/EpAI5jTlmrgkoVKBNO4J6YMOgk4Y
    3qO9iNgQ/ZYAYsQapGQRoJNFeE4R95kuIDY0a8pTE3QnfjHO6dGp5zuVRxZH4kU5
    /dCp+Z5/7qChfnLuvNZPqk4zSTg8wvdbpo9Oj8+847pTue2Edz3X4WwJzjeYLUXV
    af2QYgVHZ3XP946/+F+9mu87IzqnkuUwsv23xucU5NtcyBXdFzk5tHYvlfxw+j94
    hsSiZbXa4Q8yuJBs4TYO0J2IWIE3HnYvyHY6dUmGUO0sMQKSmpfXvnCO6BpCYZIw
    DqW5jac+Xdk0EdVgvF6mo1L19KthoFHENBMx5VkG070y6zhmz1ZmLDDWSGWg2lhF
    NGmwBFb/Tt0kvw9BitRiHzIMCeaUK3CJQqltikKijx6mQVIt5CAxetC+ISJuct6D
    NfAyzPJfpoxHOGrNOYK6OfDvIYM/OLbF9fZTYbteJGooWOzpcnBXoiLRE4tdMZYA
    SVGevrGshISCMSfJE+HiJBCbMSi7g0NbmN4ptuulRCpnsBs7DMnHSsICXi2J+Qak
    4n2qug3ze7GzhjYyTjlHlDBNwQHEfkhOptuyt3vp0DgT8ZwtBvnQ7qYgjUPc+0Hc
    EivcMF3Q4r4OyxlrqryX5lBe/SO4ZVO8ezG0EFzdjLIiJJKh2lMjcIXt2M+aU84o
    5+Nhb99DyrnEQ2Pc7z6Mr5+6VxduAyOfwk4zfBpeX3WH161wZEo0w0VYCCwp3tBU
    I3+0iqdts/d0BZsttv2nus9izPVMBNqwTgobTYLa9jfitLw8
     
    #3 Support Денис, Aug 21, 2019
    Last edited: Aug 21, 2019
    scrapefun likes this.
  4. scrapefun

    scrapefun A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Feb 24, 2015
    Messages:
    127
    Likes Received:
    17
    Thanks for this. I had to make a couple minor changes but it really helped me out.
     
    Support likes this.

Share This Page