Up until June 14th of this year, the ruling was that scraping is legal from the HiQ vs LinkedIn lawsuit[0].
While finding that link for you, I learned that since that date, the Supreme Court vacated the decision back to the lower courts in light of a new decision of theirs.[1]
Now I don't think it's clear one way or the other just yet. Any lawyers here with an opinion on how this is going to go? I haven't found any analysis.
[0] https://en.wikipedia.org/wiki/HiQ_Labs_v._LinkedIn
[1] https://www.reuters.com/technology/us-supreme-court-revives-...