1. Dismiss Notice

imagehost grabber not working with new imagebam

Discussion in 'General Chat' started by galapagos2, May 9, 2021.

  1. galapagos2 Member

    • New Member
    Joined:
    Jun 9, 2017
    Threads:
    1
    Messages:
    6
    Likes Received:
    1
    Location:
    London
    Is there a new host file or workaround ?
     
  2. ncilswdk2 Donators on HQCC

    • Donator
    Joined:
    Jan 28, 2017
    Threads:
    0
    Messages:
    65
    Likes Received:
    37
    Until they update the host file, you can change the search pattern for imageham with the changes below.

    URL Pattern:
    ^https?:\/\/(?:www\.)?imagebam\.com\/.+\/[^&]+$

    Search Pattern:
    function(pageData, pageUrl) {
    var iUrl = pageData.match(/img.+?src=\"(.+?)\" alt/);
    return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"}
    }
     
    • Like Like x 4
    • Winner Winner x 1
  3. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
    You sir are an absolute legend! I've been trying to figure out this since they updated imagebam. Thanks so much!
     
  4. OP
    OP
    galapagos2

    galapagos2 Member

    • New Member
    Joined:
    Jun 9, 2017
    Threads:
    1
    Messages:
    6
    Likes Received:
    1
    Location:
    London
    Works perfectly. Thx.
     
  5. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
    Hi there, this has stopped working for imagebam. Any ideas on the uploaded search pattern? Thanks!
     
  6. ncilswdk2 Donators on HQCC

    • Donator
    Joined:
    Jan 28, 2017
    Threads:
    0
    Messages:
    65
    Likes Received:
    37
    That search pattern is still working for me but a proper fix has been posted on the imagehostgrabber website. Maybe that will work better.
    https://imagehostgrabber.com/forum/viewtopic.php?f=23&t=721
     
    • Like Like x 1
  7. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
  8. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
    Hi I can't sign up and the search pattern doesn't work for me try on this gallery https://www.imagebam.com/gallery/mzbcgapgp1wh79duwa0738mbk2jvshfe

    I can't access the site because I don't have a login and can't sign up either. Any chance you can post the fix here? thanks!
     
  9. opo2001 Special Member on HQCC

    • Special Member
    Joined:
    Jun 23, 2017
    Threads:
    9
    Messages:
    198
    Likes Received:
    944
    Location:
    uk
    found this on another forum and it worked for me :)

    URL Patten:
    Code:
    ^https?:\/\/([^/]+\.)?imagebam\.com\/(image\/[a-f\d]+|view\/[a-z\d]{6})($|\?)
    
    Search Pattern:
    Code:
    function(pageData, pageUrl) {
       let retVal = {imgUrl: null, fileName: null, status: "ABORT"};
       let iTag, iUrl, iName;
       // Search for <img ... class="main-image ... >
       iTag = (pageData.match(/<img\b[^>]*?\bclass\s*=\s*('|")main-image\b[^>]*?>/i)||[])[0];
       if (iTag) {
           iUrl = (iTag.match(/\bsrc\s*=\s*('|")(.*?)\1/i)||[])[2];
           if (iUrl) {
               retVal.imgUrl = iUrl;
               retVal.status = "OK";
               //
               // Select the type of filename by setting the value of nameType:
               // 0: name on the host
               // 1: image id + "_" + random characters at end
               // 2: "ibam" + image id
               // 3: "ibam" + image id + "_" + random characters at end
               // 4: original file name (from alt attribute)
               // else: name on the host
               const nameType = 4;  // <-- edit this number; default: 4
               //
               if (nameType == 4) iName = (iTag.match(/\balt\s*=\s*('|")(.*?)\1/i)||[])[2];
               else if (nameType > 0) {
                   let fnp = iUrl.split('?')[0].split('/').pop().match(/([^/]+?)(\.[^./]+)?$/)||[];
                   let bfn = fnp[1]||'';
                   let dex = fnp[2]||'';
                   // The first 6 characters of the name on the host are random, the rest is the image id.
                   let bfnp = bfn.match(/^(.{6})(.*)$/);
                   if (nameType == 1) iName = bfnp[2] + "_" + bfnp[1] + dex;
                   else if (nameType == 2) iName = "ibam" + bfnp[2] + dex;
                   else if (nameType == 3) iName = "ibam" + bfnp[2] + "_" + bfnp[1] + dex;
               }
               if (iName) retVal.fileName = iName;
           }
       }
       return retVal;
    }
    
     
    • Like Like x 2
    • Winner Winner x 1
  10. ncilswdk2 Donators on HQCC

    • Donator
    Joined:
    Jan 28, 2017
    Threads:
    0
    Messages:
    65
    Likes Received:
    37
    Sorry, I did not think you had to login. The post by opo2001 is the search pattern on their website. I tested your link and it worked fine for me using both methods.
     
    • Like Like x 1
  11. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
    It worked thanks very much! has the registration on that site closed? I don't see a sign up option?
     
  12. ncilswdk2 Donators on HQCC

    • Donator
    Joined:
    Jan 28, 2017
    Threads:
    0
    Messages:
    65
    Likes Received:
    37
    • Like Like x 1
  13. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
  14. ncilswdk2 Donators on HQCC

    • Donator
    Joined:
    Jan 28, 2017
    Threads:
    0
    Messages:
    65
    Likes Received:
    37
    It's working fine for me.
     
  15. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
    Anyone now having issues with pixhost.to....? I get the error message saying Request failed too many retries and my retries are only set on 1?
     
  16. brian cam dude tenger New Member

    • New Member
    Joined:
    Mar 5, 2020
    Threads:
    0
    Messages:
    2
    Likes Received:
    0
    Location:
    canada
    i keep getting request aborted
     
    • Agree Agree x 1
  17. brian cam dude tenger New Member

    • New Member
    Joined:
    Mar 5, 2020
    Threads:
    0
    Messages:
    2
    Likes Received:
    0
    Location:
    canada
  18. Celebx Super VIP on HQCC

    • Super VIP
    Joined:
    Jun 8, 2020
    Threads:
    643
    Messages:
    775
    Likes Received:
    2,834
    Location:
    UK
    No longer works with imagebam
     
  19. OP
    OP
    galapagos2

    galapagos2 Member

    • New Member
    Joined:
    Jun 9, 2017
    Threads:
    1
    Messages:
    6
    Likes Received:
    1
    Location:
    London
    top one works!
     
Loading...
Similar Threads - imagehost grabber working
  1. icevolt
    Replies:
    4
    Views:
    5,588

Share This Page

Loading...