Is web scraping legal? 🫢😳
🔗 Follow me on LinkedIn 👉 / luke-b
🆇 OR on X/Twitter 👉 / lukebarousse
Courses for Data Nerds
==================================
📜 Google Data Analytics Certificate (START HERE) 👉🏼 lukeb.co/Googl...
💿 SQL for Data Science 👉🏼 lukeb.co/SQLda...
🧾 Excel Skills for Business 👉🏼 lukeb.co/Excel...
🐍 Python for Everybody 👉🏼 lukeb.co/Pytho...
📊 Data Visualization with Tableau 👉🏼 lukeb.co/Table...
🏴☠️ Data Science: Foundations using R 👉🏼 lukeb.co/RforD...
➕ Coursera Plus Subscription (7-day free trial) 👉🏼 lukeb.co/Cours...
👨🏼🏫 All courses 👉🏼 kit.co/lukebar...
Build a Portfolio
==================================
👩🏻💻Build portfolio here 👉🏼 hostinger.com/luke
Rebate Code: "LUKE"
My Portfolio 👉🏼 lukebarousse.t...
Books for Data Nerds
==================================
📚 Books I’ve read 👉🏼 kit.co/lukebar...
📗 Data Analyst Must Read 👉🏼 geni.us/Storyt...
📙 Tableau 👉🏼 geni.us/tableau
📘 Power BI👉🏼 geni.us/powerbi
📕 Python 👉🏼 geni.us/python...
Tech for Data Nerds
==================================
⚙️ Tech I use 👉🏼 kit.co/lukebar...
🪟Windows on a Mac (Parallels VM) 👉🏼 lukeb.co/Paral...
👨🏼💻 M1 Macbook Air (Mac of choice) 👉🏼 geni.us/M1macA...
💻 Dell XPS 13 (PC of choice) 👉🏼 geni.us/DellNe...
💻 Asus Vivo Book (Lowest Cost PC) 👉🏼 geni.us/AsusVi...
💻Lenovo IdeaPad (Best Value PC)👉🏼 geni.us/Lenovo...
Social Media / Contact Me
======================
🙋🏼♂️Newsletter: www.lukebarous...
🌄 Instagram: / lukebarousse
⏰ TikTok: / lukebarousse
📘 Facebook: / datavizbyluke
📥 Business Inquiries: luke@lukebarousse.com
As a member of the Amazon, Coursera, Hostinger, and Parallels Affiliate Programs, I earn a commission from qualifying purchases on the links above. It costs you nothing but helps me with content creation.
#dataanalyst #datascience
Пікірлер: 384
Alternative Title: “Dude discovers TOS” lmao
@gregthwuen
Жыл бұрын
If you never registered an account on LinkedIn and never accepted the TOS, you can't violate the TOS. Of course your country's laws still apply, which may prohibit sth like web scraping.
@carlosalba9690
Жыл бұрын
@@gregthwuen it’s not illegal to scrape web data generally speaking. But the LinkedIn EULA applies to any person or entity that uses LinkedIn. If you don’t agree you’re expected to not use the software and delete it. Any person or entity that uses LinkedIn is also subject to the LinkedIn User Agreement, Privacy Policy and Cookie Policy. On the second bullet point of section 8.2 of LinkedIns user agreement they explicitly state that you will not “Develop, support or use software, devices, scripts, robots or any other means or processes (including crawlers, browser plugins and add-ons or any other technology) to scrape the Services or otherwise copy profiles and other data from the Services;” Users of a website do not need to be registered in order to be considered users. LinkedIn differentiates between “Members” and “Visitors” in their paperwork. LinkedIns policy is not the law of land at least in the US but they can send cease and desist , ban you and even sue you for violating their terms. This also applies to folks in the EU as far as I remember.
@quebono100
Жыл бұрын
I thought the same. xD wtf.
@joseluislopes3956
Жыл бұрын
@@carlosalba9690 but LinkedIn does not give you access to 99% of the website without creating an account?
@immortalsun
Жыл бұрын
It’s an informative video.
So companies won’t let us scrape their info but they’ll happily sell ours?
@LukeBarousse
Жыл бұрын
🙌🏼
@eeHMFIC
Жыл бұрын
Correct. Your data is the commodity.
@kakterius
Жыл бұрын
That is also why they don't want you scraping it xD
@dabbopabblo
Жыл бұрын
So you have an issue with that but happily agree to their tos to benefit from their free services?
@LukeBarousse
Жыл бұрын
@@dabbopabblo very good point, it's probably why I don't read TOS's very well...🤣 but I would argue that it's not necessarily free, they're getting my data
Alternative title: "data scientist tries to find job by collecting data(gone wrong)."
@LukeBarousse
Жыл бұрын
🤣
Imagine if LinkedIn took phishing job posts and scam posts as seriously as they take scraping.
@VoidplayLP
4 ай бұрын
Data is what they sell so scraping hurts the bottom line lol
@nietzschebietzsche
Ай бұрын
Real talk! Once my LinkedIn profile became popular, my fucking work inbox looks like a spam bomb went off. It doesn't matter how many I block. There are endless solicitors constantly offering me endless Stanley and Yeti mugs, gift cards, and airpods to set up a meeting about such and such ducking IT service. Just in the two mins typing this I got two more. These fucking solicitors are the worst man. It's to the point that when I get free time, I'm writing a selenium/ai bot to go through and delete/block them for me because it's that fucking disruptive to my work. LinkedIn is evil and cursed. Twice people on LinkedIn have tried to get me to join a pyramid scheme. Turns out there are all kinds of business owners in my area who are roped into some sketchy multi-level marketing contract eager to find more underlings 😂 LinkedIn posts are the absolute worst too. The fakeness and thinly veiled narcissism is so thicc that shit makes me nauseous after about 20 minutes. LinkedIn should be banned by the Geneva convention. It causes me as much harassment as being a controversial KZreadr, I swear to God.
I’ve done similar tasks professionally. Rotate your IPs, purchased leases to residential IPs work well, and you can set request headers to better imitate a “real” browser instead of whatever webdriver you’re using. A lot of times you can isolate the data call without having to render a bunch of images and just fire that as it’s own request through postman or whatever and then only get the json for every listing. LinkedIn is pretty notoriously tough to do thoroughly though.
@EpicNESMetal
Жыл бұрын
How is that helping if you have to log in with your account? Isn't it much more obvious if the same account is beeing used by many different IP adresses?
@beastly_neon
Жыл бұрын
@@EpicNESMetal multiple accounts are created using different ips
@buddysteve5543
5 ай бұрын
As I like to say, if there is the will there is a way! That pretty much applies to everything except death and taxes! LoL!
In Australia, if it is publically available it's fair game as long as it's not a detriment to the service and other users.
Next time when you scrape, add some randomness to your process to look less like a bot
@LukeBarousse
Жыл бұрын
This is a good point! Actually did some time variation randomness, but that wasn't enough
@RidingWithGerdas
Жыл бұрын
@@LukeBarousse can imitate random clicks back and forth with Selenium
@LukeBarousse
Жыл бұрын
@@RidingWithGerdas Yeah, I think the main problem was I was using the same IP address... think a proxy would be better
@StrokeMahEgo
Жыл бұрын
@@LukeBarousse how would that matter? People log on to social medias including LinkedIn from the same ips all the time. (Home, work, etc) very routine.
@BenRangel
Жыл бұрын
@@StrokeMahEgo Yeah but most bot detectors are still quite simple and look look for abnormal request per minute from certain the same ip, userAgent, etc. A more advanced detection could look at stuff like time spent. if 100 visit is never more than 1 seconds each - it's a bot. (Allthough most bot detectors are usually quite basic )
3 things: - proxy pools - rotate IP addresses - randomize sleeps between requests
@test-rj2vl
18 күн бұрын
If they like to collect out data, it's not morally wrong for us to scrape their data.
@eliasb6244
17 күн бұрын
@@test-rj2vl try saying that to your lawyer or before a judge.. not gonna work, and you will get clowned. YOU signed an end user license agreement under which, you gave them permission to collect and track YOUR usage while in the app. YOU signed that, so they have YOUR consent to spy on YOU. Data Scraping, SOMETIMES can be theft of copyrighted or intellectual property. So you have to read ToS and /robots.txt to make sure you’re legally in the clear.
It's not illegal, but it can to lead to some extremely overwhelming situations for the site if left unregulated. Whether or not a website is ok with it, you should time your bots. Don't run your bots with uncapped speed. Some websites even require you to follow some guidelines like one page per sec. The benefit of a bot should be automated consistency not speed.
And thats why i need an account to view linkedin now... Thanks.
MS be like only we are allowed to scrape public data and steal private one but not the other way around
Scraping actual useful stuff is prob my second favorite programming activity, forget the law do it anyway and if they want to come for you barricade yourself in a log cabin and let the k go
@LukeBarousse
Жыл бұрын
NGL, I can agree, it is pretty fun to scrape data
@adio1679
Жыл бұрын
What’s your first favorite?
@Pod-Z
Жыл бұрын
@@adio1679 I havent done it in a few years but Making Runescape bots in Java , they usually have great library's, alot of support and you see instant results even after just a few lines of code. its pretty satisfying
@EllaNut
6 ай бұрын
I believe it is illegal to scrape certain sites such as government sites, also if you cause a DOS that is illegal.
@vijayragav1865
5 ай бұрын
what does "let the k go" mean? Could you please explain. I am confused
No huge website allow scraping data , last thing to do is settimeout between each mouse movement but then scraping would take ages. If I would scrape I might directly fetch backend REST api , providing headers and dynamically updating cookie every 12hrs, also huge apps like fb uses gql, so may not feasible or learn gql endpoint which provide entire data.(only happen if you know all the queries for gql)
@thanhquachable
10 ай бұрын
i am just curious, if you directly fetch backend API, they have even more reasons to sue/charge you because the backend API is not publicly available for us to make calls to without their explicit consenst 😂? If we simply render the whole page , at least "this is what I and everyone sees publicly", i am just smart enough to extract data I need to quickly lol. But yeah, getting a nicely formatted json file with all data you need is very tempting hahahha
I have my own Web Scraper, for Crunchyroll, Imdb, Pokémon, Pokémon Tcg, Magic Tcg and Honda Parts in C#, this project makes much fun. I use Selenium and Httpagility for it.
You should have made or bought dummy linked in accounts, used those as scrapers as well
So when you scrape schedule the read to occur at a random time and with day spread. Also if you occasionally use the account to comment it will confuse their system
I have idea for scraper: What if instead of systematically scraping we would scrape chaotically? For example some browser addon that scrapes Linkedin every time we visit that site. And then do likewise for Twitter, Reddit, etc. And then have some cooperation platform where users can merge their dumps and where everyone can download merged results.
I'm into this... Did some illegal stuff, by being ignorant....😅
@LukeBarousse
Жыл бұрын
🤣
@forbiddensouls
Жыл бұрын
I myself built a scraper called "Linked In Booster" All it does is, it searches people with ur search string that can be anything, and start sending connection requests to people to boost ur network..... I didn't know that it was legal, altho i didn't get banned but stopped doing it. Also there is a plugin that comes with puppeteer, that tricks any of the AI metrics system that it is a human that's operating the app. I tried it on KZread and it worked.
@wanderingronin305
Жыл бұрын
Not illegal just against their use policy. Company policies aren't laws
@jithendra.k.sfirst_yr_b.sc9574
Жыл бұрын
@@wanderingronin305 i know, it's just "I" words🥲😶
@Jajajaja1231
Жыл бұрын
@@wanderingronin305 Then how did a whole legall case was taking place by this¿
I tried doing something similar on Instagram, but scrape the like count of a page using selenium autoscrapper, but immediately got banned. I freaked out and deleted the account and the email associated with the account, I'm glad I'm not the only one this happened to 😂
Arrest me officer 😳 ⛓️ I'm a criminal
@LukeBarousse
Жыл бұрын
😜
When i built my first web scraper, i already noticed that it probably illegal becuase i need to bypass the "I'm not a robot" chapta.
@blenderowl6495
Жыл бұрын
You know that breaking ToS, while bans you from the service, doesnt mean what you did was illegal. When you sign up to use a service, lets say for in this case first person online shooter, they usually ask you to click "I agree to the terms of service" in order to continue. This document dictates what you can and cannot do with the video game. Any form of cheating is against ToS, selling your personal account is against ToS, sharing your account with another player (pressumably to boost your rank) is against ToS. If you get caught breaking these rules the service has the right to ban you from that service, i repeat ban and not arrest.
@gorillaz9694
Жыл бұрын
@@blenderowl6495 I see, thank you for the insight.
Alt tite: Dude doesn't know what robots.txt is
Imagine that. You web scrape a Python job. Use the bot to apply to the job and state that the submission was automated and done via a bot. You get hired and simultaneously banned from linked in…
@LukeBarousse
Жыл бұрын
🤣
A few years ago I scraped data that was in the public domain, from websites around the world. I never had a problem with accessing the web pages. The problem was that the webpages changed. You had to constantly rewrite the scraping code, or change inputs to scraping tools. It might have cost less and reduced a lot of stress. Just by hiring low cost labor to manually input the data.
It shouldn’t be illegal, public information should be public information. But like... I get why LinkedIn doesnt want bots running rampant on their website
Policy and legality are separate items. You might consider randomization, and rate limiting across multiple bots. Great short btw. 🙂
for the sake of your time, linkedin lost the battle since it was public data
That needs antitrust lawsuit. If they allow Google to scrape their web site they can't deny it to random company because that would treat competitors unfair.
who said you're not allowed to do something only because they wrote it somewhere, did you sign it? if not I don't see how that can be used in any court against web scraping
@jalilsharafi
Жыл бұрын
@Jhon Doe yes then you’ve signed something but I can go on any realestate website and search whatever without making an account, I may as well web scrape their data by sending queries and create my own database … I can’t see how’s that any violation…
@jalilsharafi
Жыл бұрын
@Jhon Doe further even if you’ve signed some terms and conditions even then you should be allowed to use the publicly available information
@jalilsharafi
Жыл бұрын
@Jhon Doe ban yes, sue in court no
This was actually a project idea that I had for quite some time, to see job distribution in different states/countries, cross relate to salary by company from GlassDoor and all that, while researching, I discovered that there is an informal LinkedIn API, so you don’t actually need to scrape all the data, quite helpful There are a bunch of articles on Medium about it too
I’ve scraped linked in and indeed before and all you need to do is add some scrolling in between or buffer it with some time so it isnt instantly making http requests at impossible for human speeds. I consider it a way to automate the menial part of scrolling and glancing when i could just have it to the side while I work, eat, etc, still not legal sure, but in a way I’m still confining it to a relatively quick reader instead.
@LukeBarousse
Жыл бұрын
This is good to know!
They have anti scraping measures now too. I mean the site basically useless if you dont scrape it because the search is literally dogwater and i found it was the only way to actually filter the results to get actually relevant jobs
All actions on my scrapers pass though a randomizer. Button hit coordinates, time between clicks, list processing (avoid sequential link following) and splitting up processing of payloads. Humans take breaks and so should scrapers, create multiple accounts with a generated user agent and proxy working in shifts leveraging timezones.
I already knew that thats why never tried with LinkedIn. There are Github projects for that as well but doesn’t come with warranty.
How do I stop getting banned while scraping websites?
Linkedin: not permit crawling Google, Bing: Do crawling anyway Is this some kind of bot discrimination?
@LukeBarousse
Жыл бұрын
Yeah I think so 🤷🏼♂️
@peasantlord135
4 ай бұрын
I imagine it's king knocking your door to do you a favor vs a beggar knocking your door for money 😂
From what I have heard, since you logged in, any data accessed is bound by their TOS, aka your screwed. Now, if the data is publicly accessible without a login, that is different. That is like putting a no photography sign in front of an outdoor place, not really legally enforceable. (Not a lawyer)
Try to access without accepting TOS. If you manage to, then you'll be completely in the clear as there are no laws against bots or scraping. The only reason you could be charged for anything is if you break TOS, which can't happen if you never accept them.
You need to rotate ip’s and user agents to reduce chances of being caught and flagged as a bot
The TOS in the video bans third-party software. If you write it yourself, it is not third-party (if it os considered third-party, who would the third-party be?)
@voxelfusion9894
Жыл бұрын
The company is first party. The user is 3rd party. The tos are accurate.
@akam9919
Жыл бұрын
@@voxelfusion9894 ...wouldn't you be the second party...since you are the one agreeing (or "agreeing") to the TOS?
"Are you one of us?" Haha perfect clip
Scrape so fast, the backend crashes
your bot might have been rate limited or soft banned. Secondly if you are scraping publicly available data for personal usage then there is nothing illegal in it, you are simply saving time instead of visiting those manually.
It's called rate limiting, it can be bypassed with multiple proxies.
I had a similar issue, adding a small delay using 'sleep' helped get around the bot checker. edit: forgot to mention that it was another site not linkedin that i was scraping so results may vary.
If you find a way to scrape without creating an account and missing the small letters you agreed on, scrape on, brave warrior, the law is on your side.
what the purpose of scraping and how could someone use it and what is it?
You didn’t need to read anything. It’s your computer, with your code, scraping fully public info. If anything, you should work on your code more and try to scrape more. There’s nothing illegal about code development on your own PC
@mjt1517
Жыл бұрын
I don't care about the legality of scraping, but it's not just his computer. He's using his computer to interact with THEIR computer network. So there's more involved in this than just what you've stated. But again, I dgaf about what they want. I'll scrape whatever I damned well please. TOS or no TOS.
This sums up my experience with scraping Facebook marketplace
it's not illegal if you don't get caught right :x
@LukeBarousse
Жыл бұрын
Exactly!! 🚔😳
Honestly this is true for 99% of all websites with data worth scraping. If you want to scrap you're going to have to work in some mitigation logic, and _always_ scrape through a proxy - not to hide your tracks so much as to not lock yourself out if you actually use their site legit.
Yeah, if it's performed commercially it would light up my "grey area" indicator, but for personal non-profit projects, I think it's perfectly fine.
Web scraping should be legal and information should be free and available to everyone
@shahraanhussain7465
Жыл бұрын
Then how would linkedin earn, Somehow they are also selling the data in the market with different name.
Look closely. The TOS says "third party software". If I was a lawyer I would argue, that you wrote the scraper yourself. Meaning no software of a third party was involved; Just yours - Software made by one of the two parties involved.
@LukeBarousse
Жыл бұрын
I didn't catch this! This is good! 😈
@mjt1517
Жыл бұрын
Third party means any software not directly made or authorized by LinkedIn/Microsoft. Any software made by a user would be third party software.
@Schlohmotion
Жыл бұрын
@@mjt1517 I don't know how your country defines "third party" legally.... But in my country, the third party is called third party, becaus it is literally the third party (the first and second party are the parties that set up a contract and accept said contract).
Or.. you sign up to get an email when a job of your interest opens up
Because of that ToS, now i scraping data manually for my client, and it was pain in the arse. Lmao
Used to work for Avature, a SaaS company that was for talent search. We had scrappers for every effing database, some provided an API, most of the time it was pure webscrapping. For linkedin we had to do some type of chrome extension to manage to manually extract canidate resumees.
it's ban because that's how you don't spend your useful time on their website and don't watch ads .
same thing happened to me, luckily was able to solve it by using a vpn 😂
@LukeBarousse
Жыл бұрын
I want to try this as well at some point! Thanks for sharing this!
But if you went through manually, it would be fine. But because you can do it quickly, it’s banned.
I made the same using Python Selenium and BS4, and it still works. The omly trick is not to log in. Voila.
@LukeBarousse
Жыл бұрын
I like this approach of not logging in; I should have done this from the beginning
@parkuuu
Жыл бұрын
@@LukeBarousse It doesn't show results based on your profile tho. I tried searching the same parameters when logged in and not, both show different results, and SOMETIMES it gives me the slider captcha which can be avoided by setting longer sleep periods
but why does it not like web scraping?? it is anyways publicly available data
@lilmrmagoo
Жыл бұрын
because someone can then go and make another website that copies them.
What do you use for web scraping? what do you think are the best library/framework?
Super novice move… most sites have had anti scraping clauses in their terms for well over a decade.
@ericadacunhaferreira9611
Жыл бұрын
Yeah, I was actually surprised that he didn’t know that
Did you used selenium? And how did you automate the bot to work after regular intervals?
@LukeBarousse
Жыл бұрын
Yeah selenium! just ran it daily myself and built the script to request data at random intervals
@voidpointer398
Жыл бұрын
@@LukeBarousse oh, thanks for replying. I also studied about it and found an automated way of doing it by using windows task scheduler. You can either use the pre installed gui or can use pywin32 for python.
Tutorial on building a web-scraper from scratch?
@LukeBarousse
Жыл бұрын
Let me see what I cando on this, I appreciate the recommendation! 🙌🏼
So...just state it isn't illegal (in state law) I think all these companies need to grow up and realize they are sending us paper catalogues with webpages. When we get the page we can do the fuck we want with it (privately)
Shit, I just got this error yesterday as no jobs found. Yeah should have read that first.
"Is web scraping legal" Google has left the chat
Multi accounts and residential or mobile proxies with unique user agents. Will work depend on how much you think this data is worth.
When modal screen didnt answered and your script keep diggin in the backgroınd they catch you
It isn't illegal. Terms of service are not law.
But the website is allowed to use cookies and other tool to pull whatever data from user that they can?
It it not possible to scrape data, and not get detected as a bot?
Amateur. You use selenium and limit your scope to sub 10k per day per account.
What frameworks did you use? I'm trying to figure out how to scrape tiktok and KZread for the most popular videos.
@LukeBarousse
Жыл бұрын
selenium
why we cant have nice things. some company decides to just download and reupload a website as their own
What if we try to make a fast way to scrap manually data?
I make a weather API. But now it give me an error like you have been blocked because we have registered an unusual ammount of traffic from your IP address. So I can't finish my project because of this. How can I solve this issue
So they can collect our data anytime anywhere but we can't do the same?
Just LinkedIn or other platforms too??
Why didn't you just use proxies ?
Why can’t you just search for the job yourself manually? I’m curious what the purpose of this is. Specifically, what’s the purpose of scraping for all of this information… or for that matter, for longer than an hour or so since the results it finds surely aren’t useless right away. Right?
So you were banned by applying the skills that those jobs require? Shouldn't you be hired?
So i just found this channel and dont know much about scraping. Why would you be doing this and how does it help you?
@LukeBarousse
Жыл бұрын
Good question! If I need data for research, web scraping is a method to collect this data from public web pages
Lmao I did the same thing on indeed and got banned for like a month haha
@LukeBarousse
Жыл бұрын
🤣 Dangit Indeed!!!
I would assume no. It is not illegal to write down or screen shot that information then share it. So why would it be illegal to automate the task?
Willing to share a dataset with a fellow Data scientist?
@LukeBarousse
Жыл бұрын
Yeah! So the jobs I scraped is now pretty outdated... but if you go to my "How I use Python" video I have a new dataset that is publicly available via Kaggle in the description... also the video has more info on the dataset
Go through a public dataset manually LinkedIn: 😄 Go through a public dataset with a bot LinkedIn: 😠
Terms of service doesn't mean it's illegal. It just means it's the terms you agree to when using their service
Another video where the title question never gets answered. Brilliant.
Chad web scraper says everything is legal
Next time you scrape data, dont post the whole confession online
Data viewed by the public on the internet via a privately owned corporate site does not necessarily equal public data.
if you do it for yourself, thats freedom if do it for others, thats profit. any deviation from this is grounds for revolt.
I don't understand why this is illegal or why anyone would even care. What's wrong with collecting data efficiently?
Hey luke, i just want to know is there any alternative to get the emails and contact details legally? Please reply asap as I need this so desperately.
How did you get banned? I highly doubt if you were just running a script that did this once a day you would have gotten caught.
Old dudes that can’t use computers will decide this
You mix things up. It might be legal in itself, but when you make an account and you agree that you will not do it, then you cannot do it. Also Im not a robot is a technical protection and has nothing to do with legal or not.