chg: Pass a list to add_attributes

pull/633/head
Raphaël Vinot 2020-09-16 21:08:02 +02:00
parent 808e8132f2
commit 3fccd106a0
1 changed files with 1 additions and 2 deletions

View File

@ -45,8 +45,7 @@ if __name__ == '__main__':
rfollowers = requests.get(github_user['followers_url']) rfollowers = requests.get(github_user['followers_url'])
followers = rfollowers.json() followers = rfollowers.json()
user_followers = [] user_followers = []
for follower in followers: misp_object.add_attributes("follower", *[follower['login'] for follower in followers])
misp_object.add_attribute("follower", follower['login'])
misp_object.add_attribute('bio', github_user['bio']) misp_object.add_attribute('bio', github_user['bio'])
misp_object.add_attribute('link', github_user['html_url']) misp_object.add_attribute('link', github_user['html_url'])
misp_object.add_attribute('user-fullname', github_user['name']) misp_object.add_attribute('user-fullname', github_user['name'])