Alle episoder
Python for Everybody (py4e.com) · 86 episoder · Side 2 af 3
We learn how to parse strings pull sub-strings out of a string using the split() function.
Strings, Files, Lists and the Guardian Pattern.
We compare and contrast how Python lists and dictionaries are structured internally. How we use position to index lists and use keys to index diction...
We look at how we can use dictionaries to count the frequencies of many things at the same time. We learn how the key and value are related in a dict...
In this segment we bring everything together, reading a file, parsing the lines, and computing the frequencies of the words in the file. This is an i...
Worked Exercise: Dictionaries
We look at the basic syntax and capabilities of Python tuples. We explore the concept of immutability, and we compare tuples to lists and strings.
We look at how we sort lists, dictionaries, and lists of tuples in Python.
Worked Example: Sorting Dictionaries
We look at the syntax of regular expressions and how to use them to search through text data.
In this segment we learn to pull out data from strings after a regular expression has found a match.
We look at how some of the string parsing we have done in earlier chapters can be easily done with regular expressions.
We take a very brief look at how software communicates across the Internet using TCP/IP.
In this section we look at the HTTP protocol that is used to move documents between web servers and web browsers.
We write a simple Python program that connects to a web server and retrieves a web document. It is a very simple web browser.
Worked Example: Sockets
We explore how characters are encoded when they are transported across the network.
We write an even simpler Python program to retrieve a web page using the urllib library in Python.
Worked Example: Using urllib
Now we will look at the HypertextMarkup Language (HTML) that we retrieved using Python and extract links from that HTML. We are slowly building a ver...
Worked Example: Parsing HTML using the BeautifulSoup library.
We look at two different ways to format data for transmission across the network including JavaScript Object Notation (JSON) and eXtended Markup Langu...
We look at how data is represented using the XML format.
Worked Example: XML
We look at how we can use XML Schema to determine whether or not a particular bit of XML is valid.
We learn about the popular JSON data format and how to handle the JSON data in Python.
Worked Example: JSON
We talk briefly about how applications can be built over time to depend on services provide other applications.
We explore using a Google API that can be used to query location data and parse the JSON that is returned.
Worked Example: We access a Google Geocoding API using Python.