Take the 2-minute tour ×

Recently I was experimenting with the cURL, and I found lot is possible with it. I built a small script that crawls a musical site, which plays online songs. On the way of my experiment, I found that it is possible to crawl the song source also.. (that site doesn't provides downloading).

I just what to know.. Is it fully LEGAL to crawl the sites ? I means using http and port '80',

There are losts of download managers available in the market, they can download from almost all sites.. are all those valid and legal.

share|improve this question

migrated from stackoverflow.com Aug 23 '10 at 4:11

This question came from our site for professional and enthusiast programmers.

closed as not constructive by heavyd, Stephen Jennings, Sathya, Diago Aug 23 '10 at 12:37


cURL is just a tool. How legal is a screwdriver? –  Greg Hewgill Aug 23 '10 at 4:09
@Greg. Agree. But not all lawmakers are of the same opinion. –  Thilo Aug 23 '10 at 4:15
Legality is going to depend on the jurisdiction. But, Super User isn't a good place to get legal advice. –  Stephen Jennings Aug 23 '10 at 4:19
@musicfreak your screwdriver is just as legal, unless the person making the product is a legal authority in your jurisdiction. Don't forget, your interaction with manufacturers of products and publishers of websites is governed only by applicable laws, and you are essentially never going to be entering a legally enforceable contract with a website (or screw containing product) which will supersede your normal rights. –  Colin Pickard Aug 23 '10 at 9:40

4 Answers 4

up vote 9 down vote accepted

The answer your question exactly is yes. The only possible exception is cryptography in your country, if cURL was built with SSL support statically linked, or you're exporting from the US to one of a few countries considered hostile.

Scraping a site's publicly visible webpages is also legal, generally. If you download one copy each of all the pages you could see in your browser, you won't have any problems. If you start to cause problems for other uses, it might be considered a denial-of-service attack. You may also need to check with the site's terms or conditions, but since you already download it to view it, there isn't much difference (it's a subtle technicality, at best).

Downloading music, however, is just that. It doesn't matter if you use Limewire, uTorrent, Megaupload, Flashget or cURL, you're still downloading music. That's legal if the artist/record label says it is, if you own a license, or generally if you're legally allowed to do so.

So, cURL is completely legal. But like anything else, what you do with it may not be.

share|improve this answer
+1 for cURL is completely legal. But like anything else, what you do with it may not be. –  Nifle Aug 23 '10 at 4:43
First and foremost, it depends on your legal jurisdiction. There is a tendency on English language web sites to assume a US jurisdiction, but copyright varies a lot in other countries. I doubt US export restrictions apply to this question, unless you're exporting cURL as a US citizen you have nothing to worry about. Also, music is no different to text, images or anything else published online. Any kind of media can be published online by people without permission from the copyright holder - in which case you may be infringing their copyright by downloading it. –  Colin Pickard Aug 23 '10 at 9:35

IMDB.com explicitly forbids the use of scrappers like this with their site as part of their terms of service.

share|improve this answer
Those terms of service also try to tell you how you can and cannot link to their website... –  Luke Lowrey Aug 23 '10 at 5:31
IMDB are welcome to request whatever they wish, and you are free to comply with their wishes if you like. But legally, they don't have a leg to stand on. Go ahead a scrape their site. –  Colin Pickard Aug 23 '10 at 9:45
@Colin Are you sure site scraping is legal? Most sites like facebook simply have a TOS that say No you can't scrape us, you do we sue. Are you saying that they can't win against the case since all that is done is site scraping? –  Pacerier Jul 13 '12 at 18:44

I can't comment on answers since I don't have rep here, but several answers have stated that it might not be legal depending on the websites terms of service. And this is a subtle technicality, but if that's the case, then it's still legal, but you could be sued civilly for breach of contract or copyright violations (although copyright violations can be criminally illegal too). But in general, just because a website's TOS says you can't do something, doesn't mean they have the legal authority from barring you from doing it.

share|improve this answer

Generally it matters more what you do with it, then how you acquire it. IE, you can copy a CD, but what did you do with that CD? Did you sell it to someone (illegal) or did you simply put it on a shelf on top of your old CD so you have a non-scratched copy (legal). Likewise even when you own the music outright you still only have the right to copy it for your own use, not even for others use.

Here's a question. Generally when it comes to the internet, if it is "published" by someone with rights to publish it, and there aren't any stipulations that it isn't free to use (IE a TOS), then usually it is considered fair game to use it in a non-commercial manner. But, what if the content isn't even part of the "visible" portion of the web page and requires source-scraping and folder surfing to acquire/access. Although it may be on a "public" network and accessible by non-secure means. That's almost like claiming you can rob someone's house because they left their door open, which is a bit of a stretch analogy but valid to some extent. If there are no links on the page, it could be argued that the content was not "published" and therefore you never had rights to access it.

But that's probably much ado about nothing, if you aren't doing anything crazy, or attempting to profit off of others work, then usually no one cares if you source scrape.

share|improve this answer
