Live data from Hacker News

Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

github.com

61–70 of 84 posts

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#61

If you've ever tried scraping Facebook you'd know that it's nearly impossible to do so reliably. They have a formidable anti-scrape strategy. Instagram is currently ridiculously easy to scrape - but I doubt it's going to be that way for long.

what do they do that makes it so hard?

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#62

Earlier quoted context omitted.

> Am I the only one... Yes, because you’re comparing racism and slavery to not being able to use your computer to scrape data from websites. Edit: don’t ask for opinions if you can’t handle some of them.

I am comparing denial of right s on the basis of characteristic that subject can't change.

This is so myopic that I’m going to start a “sh%t HN says” Tumblr and make it the first post.

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#63

What is HN’s opinion on the legality of these types of scrapers? Instagram’s robots.txt disallows this kind of scraping, same for their ToS. Legal precedents have been mixed - the recent LinkedIn vs HiQ case is a good signal, but it’s still in appeals court.

It sucks that the same companies that are trying to have scraping be ilegal, do massive scraping on their end, many times deceiving the users whose data they are scraping. FB and LinkedIn both scrape contacts (and who knows what else), from their users email accounts (and surely lots of other darker sources as well). Pretty much all of Google's search engine's content is scraped from other websites.

"But you agreed to this scraping when you signed the terms and conditions"

I agree with you, but technically that argument is true

And as for Google, in theory a robots.txt would block their scraper.

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#64
post #61

If you've ever tried scraping Facebook you'd know that it's nearly impossible to do so reliably. They have a formidable anti-scrape strategy. Instagram is currently ridiculously easy to scrape - but I doubt it's going to be that way for long.

what do they do that makes it so hard?

They (randomly?) change IDs and the DOM structure, and thus break scripts. One workaround is to automate visually (KantuX, Sikuli,...) but that is much slower and makes only sense for low-volume scraping.

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#65

This scraper was written to get images and create a dataset for ML models for personal project while studying Machine Learning and Artificial Intelligence.

Does it also offer ability to search categories of images with keywords?

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#66
post #61

If you've ever tried scraping Facebook you'd know that it's nearly impossible to do so reliably. They have a formidable anti-scrape strategy. Instagram is currently ridiculously easy to scrape - but I doubt it's going to be that way for long.

what do they do that makes it so hard?

They randomize the tag ids and classes a lot of the time. At least that has been my experience with the Facebook messenger website.

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#67

Earlier quoted context omitted.

If you don't want me to scrape it, don't put it on the (public) internet. Simple as that.

I don't really get this attitude of because it can be done it's therefore ok. It's possible to kill people therefore it's ok. It's possible to loiter therefore it's okay. It's possible to play your music at all hours of the day at 120db therefore its ok. It's possible to drive your motorcycle into a grocery store therefore it's okay. The physical world has plenty of laws and/or common sense/customs about what behavio…

I get your point, but comparing scraping to murder is a bit over the top. A more comparable example might be “just because it’s possible to stand outside the chain-link fence of a drive-in movie theater and watch the show for free doesn’t mean you should do it”.

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#68
post #66
post #61

Earlier quoted context omitted.

what do they do that makes it so hard?

They randomize the tag ids and classes a lot of the time. At least that has been my experience with the Facebook messenger website.

If you're doing messenger, there's a community api that emulates the browser on github

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#69
post #28

Earlier quoted context omitted.

Legal rephrasing: Is there a reason that as a user of a user-agent like Firefox you would be in a legally different position than as a user of this user-agent app?

Yes, because your intent is to circumvent the provided mechanisms of the Instagram API and you’re doing it with a program instead of just browsing around the site with the intent of using it like a normal user who isn’t scraping. “But the program did the exact same thing that a human could do!” is a really good, pedantic CS argument, but it’s a terrible legal argument.

You're being down-voted, and I disagree with your use of the word pedantic here, but I believe your answer is mostly correct. "Browse wrapped" usage agreements are very real and enforceable under certain conditions. At best this is presently a legal gray area.

https://en.wikipedia.org/wiki/Browse_wrap#Summary

Remember, anyone can sue you for anything and it is then your burden to defend yourself if they are persistent and wealthy enough.

Re: Show HN: Instagram-scraper – Scrape instagram photos by tags, without API

#70

This scraper was written to get images and create a dataset for ML models for personal project while studying Machine Learning and Artificial Intelligence.

curious why you are scraping instagram for this purpose and not something like flickr which has a reasonable public api and tagged creative commons licensed images that are suitable for your ML purposes. at the very least, it's worth investigating archive.org's many freely licensed archives for this sort of thing.

as somebody that has fielded numerous emails from friends asking me to remove tagged photos of them from flickr, i sort of wonder about the ethics of harvesting these sorts of images from instagram, a community whose norms sort of revolve around semi-public sharing of photos. I don't doubt that there's some rationale for harvesting the images from ig, but aside from thumbing your nose at their TOS, it feels like it's a greater violation of trust to harvest your friends and strangers photos for an ML project without their informed consent.

at the very least, it's worth considering pointing your app's gaze at a set of images licensed for any purpose whatsoever rather than ones that are explicitly licensed All Rights Reserved by their respective photographers.

Post reply on HN