First time poster, I could really do with some help as I can’t find a solution on the internet.
I’ve made a script using cURL to take information from Wikipedia and put it in a MYSQL DB so far I have over 3000 records but need to take more, I’m now getting the error:
“Scripts should use an informative User-Agent string with contact information, or they may be IP-blocked without notice.”
When I run the script.
Now I know what I need to do, I found instructions on wiki (User-Agent policy - Meta) apparently I need a user agent but I just don’t know how to do this.
Looking at Cups reply, perhaps I’m not doing this the best way…
What I’m trying to do is compile a database of English Music Artists, Movies, TV Shows, Video Games and Books.
The reason for this is because I want users on my site to be able to add these items to their “profiles” I don’t want them to be able to add false or made up ones which is why I’m going for the DB. I did consider writing a curl script which went and got all the information about the form of media when the user adds a new one to their profile but that would require too much processing time.
Thus I set about creating a cURL script which goes to wikipedia, takes the Name, Image and Description of the media item and sticks it in my DB (along with the original page so I can link to wikipedia as per their terms).
DBPedia looks like a better way at a quick glance, or perhaps there’s some other suggestion? I did try exporting the MusicBrainz db but that only covers Music.
Once again I want to thank everyone for their replies, I’m new to PHP but have been coding in Java for a while