Dears, how to get div or content informations text and pictures from another website and show in my webpage?
Please help!

5 Years
Discussion Span
Last Post by mrvijayakumar

One way is to screenscape, but in my opinion that's not very ethical unless you have consent. Another method is to pull in data via a Feed (RSS for example) or an API.

What is the overall goal?


Agree 100% with JorgeM. Scraping other people's stuff is just theft unless you have consent, and you shouldn't do it. In addition, scaping sites has its downsides too - you are totally at the mercy of the site owner as to whether you s/he will continue to maintain the data in the same format or even at all.

An API is far friendlier. One word about file_get_contents - it may not always be available on your host as some disable it. In this case you need to use cURL.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.