mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.7k stars 953 forks source link

[Site Request] IMX.to #1289

Closed S4MS3P101 closed 1 year ago

S4MS3P101 commented 3 years ago

Could you please look in to this site!!! (imx.to) No suitable extractor found for this one. Any way to download a whole gallery from this site?

mikf commented 3 years ago

URLs to single images are already supported, e.g. https://imx.to/i/1qdeva. Could you post an example gallery?

Also, if a gallery page only lists all URLs to all its individual images, you should be able to use gallery-dl r:https://imx.to/<gallery-url>.

S4MS3P101 commented 3 years ago

Worked. Thank you.

-------- Original Message -------- On 9 Feb 2021, 10:25 am, problem.dog wrote:

Yeah single images are downloaded. Can't download a whole gallery!

Example : https://imx.to/g/7nva (NSFW)

-------- Original Message -------- On 9 Feb 2021, 1:24 am, Mike Fährmann < notifications@github.com> wrote: URLs to single images are already supported, e.g. https://imx.to/i/1qdeva. Could you post an example gallery? Also, if a gallery page only lists all URLs to all its individual images, you should be able to use gallery-dl r:https://imx.to/. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "[https://github.com](<a href=)/mikf/gallery-dl/issues/1289#issuecomment-775402354">https://github.com/mikf/gallery-dl/issues/1289#issuecomment-775402354", "url": "[https://github.com](<a href=)/mikf/gallery-dl/issues/1289#issuecomment-775402354">https://github.com/mikf/gallery-dl/issues/1289#issuecomment-775402354", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Qwertyus3D commented 1 year ago

@mikf Hello! I'm not sure, if something is changed on the site, but currently URLs like imx.to/i/... cannot be downloaded via program, it just shows http error and refuse connections.

Hrxn commented 1 year ago

Verbose log? Example URL?

mikf commented 1 year ago

All tests still pass and a random, relatively recent imx.to link also downloads without any issue.

refuse connections.

Maybe your IP (range) got blocked by imx.to?

Qwertyus3D commented 1 year ago

@mikf I can access the site via browser and view/save any picture, e. g. https://imx.to/i/1qdeva. But the program is doing nothing, just waits for some time, then closes. I'm sure imx.to is not blocked by my provider, so it's not logical for me to be blocked in program, while not blocked in browser.

Qwertyus3D commented 1 year ago

In browser, the site always shows me "Continue to your image" button. Before it's pressed, the image doesn't appear, so maybe it's kinda problem where the program is getting stuck.

mikf commented 1 year ago
$ gallery-dl https://imx.to/i/1qdeva
/tmp/imxto/test-テスト.png

Try -o browser=firefox to pretend to be a real browser.

Qwertyus3D commented 1 year ago

Nothing helps. I even tried to extract cokies from browser or set Firefox as source for cookies, but still no luck. Here is the example of my bat files, maybe something is wrong?

gallery-dl.exe -D 1 -o browser=firefox --cookies "cookies-imx-to.txt" "https://imx.to/i/1qdeva"
gallery-dl.exe -D 1 -o browser=firefox --cookies-from-browser firefox "https://imx.to/i/1qdeva"
mikf commented 1 year ago

Run gallery-dl --write-pages https://imx.to/i/1qdeva, take a look at the generated 01_https_imx.to_i_1qdeva.txt file, and post it here so we can see what's different on your end.

Qwertyus3D commented 1 year ago

It doesn't even generate the file. Just waits for 1 minute approximately, then closes.

rautamiekka commented 1 year ago

Are you saying gdl opens up into its own window ? That shouldn't happen without explicitly telling it to or (which you shouldn't do) you run the executable from a file manager or a shortcut.

Qwertyus3D commented 1 year ago

The problem is only with imx.to, other sites work just fine, so it's not about how I run the program. And it doesn't open up in it's own window, it's runing via cmd.exe console. In the case with imx.to I see only initial command line, no further progress. Downloading from other sites I see the process, and everything else also works properly.

rautamiekka commented 1 year ago

Use the --verbose flag to see more. Should always use it.

Qwertyus3D commented 1 year ago

Thanks, it helped a bit. It looks like site blocks me by IP, it terminates connections. Probably I can access it via browser, because I use the pac-file for automatic proxies on problematic sites. Is there any way to set up same pac-file (web URL) for gallery-dl via command line?

mikf commented 1 year ago

There isn't (https://github.com/mikf/gallery-dl/issues/998). You'll have to manually specify a proxy URL with --proxy or you set HTTP_PROXY and HTTPS_PROXY environment variables.

adeguntoro commented 1 year ago

Not sure why it does not work on you, i use windows 10 2004,i can download full gallery from imx website. Or, try JD2 downloader, copy galery url, and use Grab feature.