Skip to content

Commit

Permalink
user urls are no longer nil
Browse files Browse the repository at this point in the history
  • Loading branch information
cguess committed Dec 15, 2023
1 parent fbedd2f commit 391569a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/mosquito/scrapers/user_scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ def parse(username)

user = {
id: id,
name: full_name,
username: username,
sign_up_date: sign_up_date,
location: location,
profile_image_url: profile_image_url,
description: description,
followers_count: followers_count,
following_count: following_count,
tweet_count: tweet_count,
listed_count: listed_count,
verified: verified,
name: full_name.nil? ? "" : full_name,
username: username.nil? ? "" : username,
sign_up_date: sign_up_date.nil? ? "" : sign_up_date,
location: location.nil? ? "" : location,
profile_image_url: profile_image_url.nil? ? "" : profile_image_url,
description: description.nil? ? "" : description,
followers_count: followers_count.nil? ? "" : followers_count,
following_count: following_count.nil? ? "" : following_count,
tweet_count: tweet_count.nil? ? "" : tweet_count,
listed_count: listed_count.nil? ? "" : listed_count,
verified: verified.nil? ? false : verified,
url: url.nil? ? "" : url,
profile_image_file_name: profile_image_file_name
profile_image_file_name: profile_image_file_name.nil? ? "" : profile_image_file_name
}

user
Expand Down

0 comments on commit 391569a

Please sign in to comment.