Автор: Scientific Programmer
Издательство: Leanpub
Год: 2018-09-09
Язык: английский
Формат: pdf (true), mobi, epub
Размер: 10.1 MB
Python + Regex? You may not find this combination easy, which partly happens because of the Python’s obfuscated regex documentation too!
In this little book, to make your life easy, less words, but more examples are used that you should be able to complete in less than 30 minutes! Python + Regex? Many of you do not find this combination easy, which partly happens because of the Python's obfuscated regex documentation too! In this course, to make your life easy, we have used some real-world examples. The goals are: - Teach you how to use the Python regular expressions (re) module and relevant functions by running interactive examples.
Let’s start our quest with regular expressions (RegEx). In Python, the module re provides full support for Perl-like regular expressions in Python. We need to remember that there are many characters in Python, which would have special meaning when they are used in regular expression. To avoid bugs while dealing with regular expressions, we use raw strings as r'expression'.
Projects included:
Project 2: Parsing data from a HTML file with Python and REGEX
Project 3: PDF scraping in Python + REGEX
Project 4: Web scraping in Python + REGEX
Project 5: Amazon web crawling in Python + REGEX
This is a short course, should be pretty quick and easy to complete. However, it assumes that you have basic Python skills (see the other Python courses on this platform).
This book serves three simple goals:
Teach you how to use the Python regular expressions (re) module and relevant functions by running examples;
Educate you to deal with projects with real world data examples (e.g., pdf and web scraping, more coming soon!);
Challenge you with coding exercises and quizzes; and
This book should be pretty quick and easy to complete. However, it assumes that you have basic Python skills (see the other Python books on this platform).
Скачать Python Regular Expressions : A Little Guide