14.7. Plan 9: Print info

It’s very common to print the information you have just scraped.

14.7.1. Plan 9: Example

If you want to print info from only one tag, like if you’ve just used Plan 4: Get info from a single tag, then do this:

Goal: Print the info
# Print the info
print(info)

If you want to print info from multiple tags, like if you’ve just used Plan 5: Get info from all tags of a certain type, then do this:

Goal: Print the info
# Print the info
print(collect_info)

14.7.2. Plan 9: Exercises

Before you keep reading...

Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.

You have attempted 1 of 2 activities on this page