By T. McDonald | 2/07/19 You may have heard of API’s and wondered what you can do with them. This is a simple but satisfying use of this powerful technology. What is API? Application programming interface. What does it do? An API will allow communication between two applications. The API I am using is a publicly available web-based API , which returns data as in JSON or XML. In other words, I send a message to a stated website and request some data, in this case images are then returned to me. Using python 2 is a little different in the coding. It is worth noting that the ['file'] at the end of json.loads() may be different in the website you are connecting to. I connected to randomcat.com . Hope you enjoyed this quick blog. Please leave a comment below.
Popular posts from this blog
By McDonald. T | Updated November 28th 2018 Building a website may seem daunting if you are new to web design. The truth is, however, that building your own test website is so easy it will embarrass you! You just need the correct tools to do the job. Brackets and xampp can be used on Mac, Windows or Linux, but in this blog I will focus on Mac. What is a test website? A test site is a site that you can create without the need for a server or a web host. You can create the test site all on your own computer and play around with it until you are happy with it. This is a really good way to learn HTML5 and PHP in a safe environment. 1) Install Brackets Brackets is an editor that will allow you to code and test files. Brackets is simple to use and has a nifty little feature, called live view, that allows you to view the code in a web browser as it would look as a webpage. In other words, it translates the code into a webpage. Brackets is free and open source softwa
By McDonald, T. | Updated 30th of June 2022 While surfing the internet, you may have noticed that some sites have an index that lets you jump to different parts of the same webpage and thought 'That is cool!' Well, this is how you do it. I have used blogger to demonstrate how it is done, but the process will be very similar for most blogs. What is a jump link A jump link is a link that lets the user jump to certain pats of the same webpage they are viewing. How to add the code You will need to add a simple piece of code. Make sure you add it just before the code you want it to jump to. Note, the anchortext should have no spaces and anchortext can be anything you like. For instance, you can replace anchortext with intro or con. The code is encapsulated in a span tag. See below. <span id="anchortext"></span> For example, if you want to jump to a header on the same page, you put the above code just before the <h1> tag in the HTML. Select