14.6.1. Plan 9: Print info

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

14.6.1.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.6.1.2. Plan 9: Exercises

You have attempted of activities on this page