Join Joe Marini for an in-depth discussion in this video Fetching Internet data, part of Learning Python.
One of the areas where Python really shines is in retrieving and working with…data from the Internet. Data such as JSON, XML, HTML, you can use…Python to work with this data directly, and Python makes it really easy.…And that's what we're going to show in this chapter.…We're going to start by showing how to retrieve Internet data from the Web.…So, here in my example snippets, I've scrolled down to chapter five and the…internet data section. So, over in the files, open up inetdata_start.py.…
And we're going to do copy and paste here. So, the first thing I'm going to do is…copy and paste this import statement. So, I'm importing something called the URL…lib two module. URL lib two is a python module that…provides utilities for connecting to web addresses and retrieving data from them.…So, we'll see how to do that. So, let's copy a few more lines of code…and we'll paste this in. So, I'm defining my main function and I…have a variable here called weburl. And what I'm doing is I'm calling the…urlopen function on the on the URL lib two library.…
- Installing Python
- Choosing an editor/IDE
- Working with variables and expressions
- Writing loops
- Using the date, time, and datetime classes
- Reading and writing files
- Fetching Internet data
- Parsing and processing HTML
Skill Level Beginner
1. Preparing the Development Environment
2. Python Basics
3. Working with Dates and Times
4. Working with Files
5. Working with Web Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.