The site seems very locked down lol, i guess they really want me to pay $300 for semi high resolution images, so i want to scrape the previews instead. it’s probably some sort of script since with noscript on the site doesn’t even load. It’s even beaten my ‘absolute enable right click’ Extension , and while i can still get the right click going and take a screenshot, i have no option to open the image itself in a new window.

Next up was a simple scraping extension, one i use regularly is webscraper but it’s a huge process to use and can snag super easily, so i tried this one called Download All images

That one didn’t grab anything besides headers and icons and seemed to have gotten me IP banned. Thankfully i have a vpn and they didn’t even revoke my gallery access and i’m back at it again.

I have tried commercial scraping software before but the problem is, afaik these are very big on following robots.txt and that makes a lot of sites unscrapable.

So you’ve all heard my dilemma, and i’m curious, cause at this point it’s a game. How would you all approach this? what software would you use?

1 point

You can get pretty far using a bit of JS and Tamper Monkey . You can even search in existing user scripts if someone already did it.

permalink
report
reply
1 point

Not an answer, but you don’t need an extension to defeat right-click blocking scripts: shift-right-click usually does the trick.

permalink
report
reply
3 points

Puppeteer and playwright were not mentioned yet

permalink
report
reply
7 points
*

You didn’t even describe how it’s on the website.

I would use the webbrowser/Firefox save page functionality.

Or open the webbrowser dev tools and document.querySelectorAll('img') and get the URLs from it and use those.

Or Page info media tab.

Or dev tools network tab. To identify and use the image web requests.

Or use Nushell with query module enabled, and http get query html.

Or my own C# until.

But I suspect there’s Auth in play, so the only easy access is within the browser session?

permalink
report
reply
1 point

Have a look at RobotFramework with the Selenium library. Anything you can manage manually, you can automate repetitively with Robot.

Also, have a look at the F12 Network tab, in case the real images are stored in a predictably named manner.

permalink
report
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.4K

    Monthly active users

  • 754

    Posts

  • 5.8K

    Comments