Skip to content

Commit

Permalink
Access TNS with type user instead of bot
Browse files Browse the repository at this point in the history
  • Loading branch information
loostrum authored Jun 16, 2021
1 parent 1a44c2b commit 68d00fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frbcat/tns.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def get_json(self):
raise ValueError('Provide tns_id and tns_name arguments '
'when updating TNS data')
header = {'User-Agent': str({'tns_id': self.tns_id,
'type': 'bot', 'name': self.tns_name})}
'type': 'user', 'name': self.tns_name})}

# Loop through pages on TNS webpage till no more results
while more:
Expand Down

0 comments on commit 68d00fb

Please sign in to comment.