OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Web Api to extract information from website

  • Thread starter Thread starter Bojan Babic
  • Start date Start date
B

Bojan Babic

Guest
I need kind of service that extracts title from web page and returns in from of json. I would not like to parse web page or waste any unnecessary CPU cycles. ie call should be something like this:

Code:
curl http://api.someservice.com/fetch?url=google.com&element=title&out=json

Response from api would be:

Code:
{
    response: {
        title: "Google"
        source: "google.com"
    }
    status: "success"

}

Any hint would be highly appreciated
<p>I need kind of service that extracts title from web page and returns in from of json. I would not like to parse web page or waste any unnecessary CPU cycles.
ie call should be something like this:</p>

<pre><code>curl http://api.someservice.com/fetch?url=google.com&element=title&out=json
</code></pre>

<p>Response from api would be:</p>

<pre><code>{
response: {
title: "Google"
source: "google.com"
}
status: "success"

}
</code></pre>

<p>Any hint would be highly appreciated</p>
 
Top