Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

How would I be able to get data from another website and put it on my own website? Website A has profiles of users along with other stuff. I want to be able to get the data of the user and incorporate it in my site.

share|improve this question
2  
So you want to steal the content from another website? –  John Conde May 4 '11 at 12:06
    
@john, @jay - So you want to answer John's question? Am I really going to get downvoted for a helpful answer because you're doing something less-than-reputable? What's the deal? –  jmort253 May 7 '11 at 1:50
add comment

closed as off topic by paulmorriss Dec 19 '12 at 9:02

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

To get data from another website, you can use a RESTful approach by using the same protocols a human user would use in order for two machines to communicate.

The beautiful thing about URLs is that machines can use them too!

Since you've used the PHP tag, I'm assuming PHP is your server-side language of choice. The PHP cURL function will allow your server-side portion of your website to make HTTP GET and POST requests to a specific URL to get the data that URL represents. Once you have that data, you can then parse that data, store it, display it, or do whatever you want to do with that data.

This involves programming, and also depends on the specific type of data that you're trying to obtain; therefore, please review the cURL reference for more detailed examples that will help get you started on solving this problem.

Once you have more specific questions, with code examples, please post them on Stack Overflow.

share|improve this answer
2  
You shouldn't encourage others to steal content. It might be your content they want to steal. –  John Conde May 4 '11 at 12:11
    
@John - I assumed the person asking the question is asking this for legitimate reasons. There are plenty of RESTful API's out there and creative commons content to be consumed. I didn't answer this question with this in mind that someone would use this information in a less-than-reputable manner. If I were to not answer a programming question just because I thought someone might do something malicious with the information, then I'd have 0 reputation on the SE network. Plus, you can steal my content, but you're probably not going to provide the level of service that built my business. –  jmort253 May 5 '11 at 4:35
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.