Web & Internet

Overview Request to an HTTP API is often just the URL with some query parameters. API Response The responses that we get from an API is data, that data can come in various formats, with the most popular being XML and JSON. Many HTTP APIs support multiple response formats, so ...

Overview In this post we will explain how you can parse JSON objects in Python. Knowing how to parse JSON objects is useful when you want to access an API from various web services that gives the response in JSON. Getting Started First thing you have to do, is to ...

What is JSON? JSON (JavaScript Object Notation) is a compact, text based format for computers to exchange data. The official Internet media type for JSON is application/json, and the JSON filename extension is .json JSON is built on two structures: A collection of name/value pairs An ordered list of values. ...

The webbrowser module in Python provides an interface to display Web-based documents. Webbrowser Under most circumstances, simply calling the open() function from this module will do the right thing. IN Unix, graphical browsers are preferred under X11, but text-mode browsers will be used if graphical browsers are not available or ...

In yesterdays post I wrote about the basics in BeautifulSoup. Since BeautifulSoup is not getting the web page for you, you will have to use the urllib2 module to do that. BeautifulSoup Example Please see the comments in the code to see what it does #import the library used to ...