Skip to content

Instantly share code, notes, and snippets.

@peckjon
Created August 9, 2018 06:21
Show Gist options
  • Save peckjon/223439f6c24d3b6149c8eb9aa024d7cc to your computer and use it in GitHub Desktop.
Save peckjon/223439f6c24d3b6149c8eb9aa024d7cc to your computer and use it in GitHub Desktop.
Extract Structured Data From Web Sites Using Analyze URL
import Algorithmia
input = "//blog.algorithmia.com/predictive-algorithms-track-real-time-health-trends/"
client = Algorithmia.client('YOUR API KEY')
algo = client.algo('web/AnalyzeURL/0.2.14')
print algo.pipe(input)
{
"summary": "In this tutorial, we're going to build a real-time health dashboard using predictive algorithms to track a person's blood pressure trends over time.",
"date": "2016-08-15T12:31:55-07:00",
"thumbnail": "//blog.algorithmia.com/wp-content/uploads/2016/08/predictive-algorithm-dashboard.jpg",
"marker": true,
"text": "Build tomorrow's smart apps today This is a guest post by Chris Hannam, a professional Python and Java developer. Want to contribute your own how-to post Let us know contact us here. We’ve shown how to use predictive algorithms to track economic development. In this tutorial, we’re going to build a real-time health dashboard for tracking a person’s blood pressure readings, do time series analysis, and then graph the trends over time using predictive algorithms. ...",
"title": "Predictive Algorithms to Track Your Health Data In Real Time - Algorithmia",
"url": "https://blog.algorithmia.com/predictive-algorithms-track-real-time-health-trends/",
"statusCode": 200
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment