<reponame>gaarangoa/ARG-inspect<gh_stars>1-10
import requests
import json

class UNIPROT():
    def __init__(self):
        self.info = ''
    
    def getById(self, gene_id):
        headers = {'Accept': 'application/json', 'user-agent': '<EMAIL>'}
        r = requests.get('https://www.ebi.ac.uk/proteins/api/proteins/'+gene_id, headers=headers)
        response = json.loads(r.text)
        response['status'] = True
        if "errorMessage" in response.keys(): response['status'] = False
        return response

import requests
import json

class UNIPROT():
    def __init__(self):
        self.info = ''
    
    def getById(self, gene_id):
        headers = {'Accept': 'application/json', 'user-agent': '<EMAIL>'}
        r = requests.get('https://www.ebi.ac.uk/proteins/api/proteins/'+gene_id, headers=headers)
        response = json.loads(r.text)
        response['status'] = True
        if "errorMessage" in response.keys(): response['status'] = False
        return response