0

Is it possible to retrive HTML elements, div for example, and make an API from it.

For example, I want to make an API from http://www.tvguide.com/listings/, and take the listings div, and make an API.

I mostly work in PHP, so a PHP answer should be nice (-:

Thanks

Félix Desjardins
  • 3,223
  • 3
  • 21
  • 36

1 Answers1

2

You can't create an API for a service that is not provided by yourself. What you want to do is extract some information from a webpage. This is called a scraper. Have a look at https://github.com/FriendsOfPHP/Goutte

Markus Müller
  • 2,611
  • 1
  • 17
  • 25