background preloader

Practical Programming for Total Beginners

https://automatetheboringstuff.com/

Related:  gummibearehausenPythonPythonApprendre Python (enfin bon, essayer...)Tut / Guides

Automate the Boring Stuff with Python Programming If you're an office worker, student, administrator, or just want to become more productive with your computer, programming will allow you write code that can automate tedious tasks. This course follows the popular (and free!) book, Automate the Boring Stuff with Python.

How to prevent getting blacklisted while scraping – Web Scraping and Data Scraping Web scraping serves a very useful purpose. Imagine a life without Google, because Google also uses web scraping/crawling to get almost all its data. However, web scraping has to be performed responsibly so that it is does not have a detrimental effect on the sites being scraped. Web Crawlers can retrieve data much quicker and in greater depth than humans, so bad scraping practices can have some impact on the performance of the site. If a crawler is performing multiple requests per second and/or downloading large files, an under-powered server would have a hard time keeping up with requests from multiple crawlers.

Automate the Boring Stuff with Python Variables are a fine way to store data while your program is running, but if you want your data to persist even after your program has finished, you need to save it to a file. You can think of a file’s contents as a single string value, potentially gigabytes in size. In this chapter, you will learn how to use Python to create, read, and save files on the hard drive.

Functional Programming HOWTO — Python 2.7.11 documentation In this document, we’ll take a tour of Python’s features suitable for implementing programs in a functional style. After an introduction to the concepts of functional programming, we’ll look at language features such as iterators and generators and relevant library modules such as itertools and functools. Introduction This section explains the basic concept of functional programming; if you’re just interested in learning about Python language features, skip to the next section. Programming languages support decomposing problems in several different ways: Most programming languages are procedural: programs are lists of instructions that tell the computer what to do with the program’s input. Improve Your Python: Python Classes and Object Oriented Programming The class is a fundamental building block in Python. It is the underpinning for not only many popular programs and libraries, but the Python standard library as well. Understanding what classes are, when to use them, and how the can be useful is essential, and the goal of this article. In the process, we'll explore what the term Object-Oriented Programming means and how it ties together with Python classes. Everything Is An Object...

Manipulating PDFs with Python - Tutorial - Binpress PDF documents are beautiful things, but that beauty is often only skin deep. Inside, they might have any number of structures that are difficult to understand and exasperating to get at. The PDF reference specification (ISO 32000-1) provides rules, but it's programmers who follow them, and they, like all programmers, are a creative bunch. That means that in the end, a beautiful PDF document is really meant to be read and its internals are not to be messed with.

Python for Programmers — Python 3 Patterns, Recipes and Idioms This book assumes you’re an experienced programmer, and it’s best if you have learned Python through another book. For everyone else, this chapter gives a programmer’s introduction to the language. This is not an introductory book. Automate the Boring Stuff with Python “You’ve just done in two hours what it takes the three of us two days to do.” My college roommate was working at a retail electronics store in the early 2000s. Occasionally, the store would receive a spreadsheet of thousands of product prices from its competitor. A team of three employees would print the spreadsheet onto a thick stack of paper and split it among themselves. For each product price, they would look up their store’s price and note all the products that their competitors sold for less.

40 Terminal Tips and Tricks You Never Thought You Needed The Terminal is an exceptionally powerful tool, providing a command line interface to the underpinnings of OS X. It’s a topic we’ve covered at length before with our popular series Taming the Terminal. There’s a great deal that Terminal can do, from moving large numbers of files to changing preferences that we didn’t even know exist. To demonstrate just how versatile the Terminal is, I’ve rounded up 40 truly excellent Terminal tips and tricks that can come in very handy. All of the Terminal commands I’ll be showing you are perfectly safe to use and, when it comes to changing preferences, are completely reversible.

Related:  Python