Skip to main content

Posts

Showing posts with the label requests

How to generate sitemaps using python?

Hello, I am writing this post because I wanted to share how I created a sitemap for my blog using python . I will first explain you what a sitemap is, then continue why I used my own python script instead of other free web apps available online and finally end this post by giving you a tutorial on how to create sitemap for your blog using python. Okay folks fasten your seat belts and get ready for takeoff ;) What is sitemap? According to wikipedia:  A site map (or sitemap) is a list of pages of a web site accessible to crawlers or users. It can be either a document in any form used as a planning tool for Web design, or a Web page that lists the pages on a Web site, typically organized in hierarchical fashion. To be simple sitemap gives you a list of all the links that correspond to your website. For example you can see the sitemap of this blog from here: Radiusofcircle But why do we need sitemap ?   Even though they are usually used for improving the search e...

Making web app with bottle and python Tutorial - part 5 - Weaving the weather app

In the previous part we have seen how bottle works and some other magic that bottle can do for us. In this part we will create our weather web app Weave . This part will be more challenging when compared to other parts because you will learn a lot after completing this part and will be satisfied using bottle .  If you have come here without seeing the previous parts then the pre-requisite for understanding this part is a little knowledge of python requests module , bottle framework and obviously python .  Okay folks fasten your seat belts and get ready for take off ;). As you all know as we will be creating our weather app using API's from IPInfoDB and OpenWeatherMap first go create an account on both the sites: OpenWeather Members Signup  and IPInfo Create Free Account . At this point please make a note that I will represent my API key as '#####' and you should replace it with the corresponding API key that you have got from the website after signing up....