Live data from Hacker News

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

github.com

71–80 of 84 posts

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

#71

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.

Google also does it although I suspect it may be accidental when they pass it through gwt or something else. I wanted to read value from simple table in Google developer console only to discover it is 27 levels deep in dom.

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

#72
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.

[deleted]

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

#73

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.

I previously built a project that aggressively scraped a particular website and ran for several years. Resulting in billions of http requests. The business greatly increased revenue from 50k to upwards half a million.

Long story short I don't care about the "legality" of it. If it's publicly posted it's fair game. I don't care about tos or copyrights either. Everything is on the table.

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

#74
I've use instalooter as a library to great success: https://github.com/althonos/InstaLooter

Even made an issue on the repo when I ran into an issue setting it up on AWS and the maintainer was fast to respond.

Used it to make a bot to scrap soup special menus from a sandwich place near my work: http://blog.matthewbrunelle.com/projects/2018/05/07/Soup-Bot...

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

#75

Earlier quoted context omitted.

That's why it is important to root out corruption from law making, nowadays called "lobbying" - this should be illegal. If you expose an endpoint to the public you can't restrict who or what can consume it. You can do throttling on your side but that's it. Otherwise this is just racism towards machines.

How do you outlaw lobbying?

It probably involves lobbying.

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

#76

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.

Any links on their anti scrape strategy? Been developing a distributed scraper with baked in proxy per process ability to harvest data for a data project I'm working on. So this would be good to know.

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

#78

Earlier quoted context omitted.

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.

It's been done [1].

Yes it's an awful comment but it's one person, and it's been downvoted and flagged to death, which also says something about what "HN says".

[1] https://twitter.com/shit_hn_says

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

#80
post #6

Well, this is just a Python web scraper, and Instagram does in fact attempt to detect and prevent/rate-limit this kind of scraping. They rely very heavily on the source IP to help them determine when to cut you off.

I put a timeout of 2-3 sec between each image download. Do you think this will prevent instagram from detecting the scraper?
Post reply on HN