Skip to content

Commit

Permalink
fix ip location #302
Browse files Browse the repository at this point in the history
  • Loading branch information
nghuyong committed Dec 12, 2023
1 parent fd47ba3 commit aef6a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weibospider/spiders/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def parse_comment(data):
item['created_at'] = parse_time(data['created_at'])
item['_id'] = data['id']
item['like_counts'] = data['like_counts']
item['ip_location'] = data['source']
item['ip_location'] = data.get('source', '')
item['content'] = data['text_raw']
item['comment_user'] = parse_user_info(data['user'])
return item

0 comments on commit aef6a58

Please sign in to comment.