Iterators, Iterables and Itertools

Iterables and iterators are everywhere in Python. We usually aren’t aware of the iterators because the syntax of python hides them from us. Almost every time we manipulate a sequence type (strings, lists, tuples, sets, arrays, etc.), we’re using an iterator behind the scenes. An iterable represents a sequence of values each of which is … Read more

How to Run a Scrapy Spider from a Python Script

Scrapy is a framework for building web crawlers and includes an API that can be used directly from a python script.Β  The framework includes many components and options that manage the details of requesting pages from websites and collecting and storing the desired data. Β  The typical way to run scrapy is to use the … Read more