BaşlayınÜcretsiz başlayın

Accessing user data

Much of the data which we want to know about the Twitter data is stored in child JSON objects. We will access several parts of the user's information with the user child JSON object.

The tweet from the previous exercise has been loaded for you.

Bu egzersiz, kursun bir parçasıdır

Analyzing Social Media Data in Python

Kursa Göz Atın

Egzersiz talimatları

  • Print the user handle with key screen_name.
  • Print the user follower count with key followers_count.
  • Print the user self-defined location with key location.
  • Print the user self-defined description with key description.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Print user handle
print(tweet[____][____])

# Print user follower count
print(tweet[____][____])

# Print user location
print(tweet[____][____])

# Print user description
print(tweet[____][____])
Kodu Düzenle ve Çalıştır