The main goal of WSGI is to facilitate easy interconnection of servers and web frameworks/applications. WSGI defines a standerd API for web servers(uWSGI, Twisted, Gunicorn) to connect and talk to web frameworks like Django, flask, Pyramid. In this article i will explain simple "hello world" app.
Understand self and __init__ method in python Class?
Before understanding the "self" and "__init__" methods in python class, it's very helpful if we have the idea of what is a class and object.
object is one of instances of the class. which can perform the functionalities which are defined in the class.
self represents the instance of the class. By using the "self" keyword we can access the attributes and methods of the class in python.
python class special methods or magic methods. magic methods allow us to override or add the default functionality of python objects. One of the biggest advantages of using Python's magic methods is that they provide a simple way to make objects behave like built-in types. That means you can avoid ugly, counter-intuitive, and nonstandard ways of performing basic operators.
Creating XML document with required elements, Then Parsing it using Python to generate a serialized form of its contents.
In this Blog post, we will look into setting up scrapy. Later we will scrape from imdb.
In previous post we collected top 250 movies names and their links from imDb. In this blog post, lets look into exporting that data into files. This helps us to understand the purpose of items and pipelines in scrapy.