Skip to content

Commit

Permalink
Parsing: some users don't have a URL
Browse files Browse the repository at this point in the history
  • Loading branch information
betsybookwyrm committed Aug 9, 2023
1 parent f280b7a commit 4d12822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tidy_tweet/tweet_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def map_user(user_json, source_file, page_num) -> Dict[str, List[Dict]]:
"id": user_json["id"],
"username": user_json["username"],
"name": user_json["name"],
"url": user_json["url"],
"url": user_json.get("url", None),
"profile_image_url": user_json["profile_image_url"],
"description": user_json.get("description", None),
"created_at": user_json["created_at"],
Expand Down

0 comments on commit 4d12822

Please sign in to comment.