Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DA 1.8: Collecting data lawfully from many places

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

55 minutes

Just because you can

A student can copy names and photos from a social media page in minutes. That does not make it allowed.

Collecting data is not only about tools. It is about rules. This lesson covers where to gather data, which shape to pick, and how to stay inside the law.

Key words

WordWhat it meansExample
Personal dataAny data that can identify a living person.A name and a phone number
GDPRThe UK GDPR: the main law on how personal data is collected and used.Collect only what you need
Data subjectThe person that the personal data is about.A customer
Lawful basisA reason the law accepts for using personal data.The person gave consent
ConsentA clear yes from a person who knows what they are saying yes to.A ticked box with a plain note
Data minimisationCollecting only the data you really need.Do not ask for a birthday if you only need an age group
DatabaseA store of organised data that a program can search.A customer table
QueryA question you ask a database in a special language.Show all orders from May
Structured dataData in fixed fields of set types.A spreadsheet table
Unstructured dataData with no set layout.Social media posts

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can gather data from inside and outside, choose the right data shape, and keep to data law.

Starter: what you already know

Have a go

Starter: what you already know

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Match the shape to the source

SourceShapeHow you get it
Spreadsheet or databaseStructuredExport or query
Social media, web pagesUnstructuredDownload within the site rules
Log fileSemi-structuredCopy the file, then split each line

The cells students fill in are left blank in this preview.

Collecting within the law

When data is personal, the law has rules. Collect only what you need. Tell people what you are doing. Have a lawful basis, such as consent. Keep it accurate and keep it safe.

Public data about people is still personal data. Also read the site's own terms before you copy from it.

Try it: keep only what you need

Code: python
rows = [["name", "phone", "item"],
        ["Sam", "555-0101", "bun"],
        ["Jo", "555-0102", "loaf"]]

place = rows[0].index("item")
for row in rows:
    print(row[place])

# Try it: print the name column instead. Which column holds a phone number?

A common mistake

Warning

Many people think data on a public web page is free to take and keep. It may still be personal data, and the site may have rules. Public to read does not mean free to collect.

The lesson goes on

2 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.