updateInfoPleroma.py
def _get_twitter_info(self):
        """Updates User object attributes with current Twitter info

        This includes:

        * Bio text
        * Profile image url
        * Banner image url
        * Screen name

        :return: None
        """
        twitter_user_url = self.twitter_base_url + '/users/show.json?screen_name=' + self.twitter_username
        response = requests.get(twitter_user_url, headers=self.header_twitter)
        if not response.ok:
            response.raise_for_status()
        user_twitter = json.loads(response.text)
        self.bio_text = self.bio_text + user_twitter['description']
        # Check if user has profile image
        if 'profile_image_url' in user_twitter.keys():
            self.profile_image_url = user_twitter['profile_image_url']
        # Check if user has banner image
        if 'profile_banner_url' in user_twitter.keys():
            self.profile_banner_url = user_twitter['profile_banner_url']
        self.display_name = user_twitter['name']
        return
Updates User object attributes with current Twitter info

        This includes:

        * Bio text
        * Profile image url
        * Banner image url
        * Screen name

        :return: None
        
Updates User object attributes with current Twitter info
This includes.

Bio text
Profile image url
Banner image url
Screen name
Updates User object attributes with current Twitter info This includes . Bio text Profile image url Banner image url Screen name
def _get_twitter_info(self):
        twitter_user_url = self.twitter_base_url + '/users/show.json?screen_name=' + self.twitter_username
        response = requests.get(twitter_user_url, headers=self.header_twitter)
        if not response.ok:
            response.raise_for_status()
        user_twitter = json.loads(response.text)
        self.bio_text = self.bio_text + user_twitter['description']
        if 'profile_image_url' in user_twitter.keys():
            self.profile_image_url = user_twitter['profile_image_url']
        if 'profile_banner_url' in user_twitter.keys():
            self.profile_banner_url = user_twitter['profile_banner_url']
        self.display_name = user_twitter['name']
        return
def _get_twitter_info ( self ) : twitter_user_url = self . twitter_base_url + '/users/show.json?screen_name=' + self . twitter_username response = requests . get ( twitter_user_url , headers = self . header_twitter ) if not response . ok : response . raise_for_status ( ) user_twitter = json . loads ( response . text ) self . bio_text = self . bio_text + user_twitter [ 'description' ] if 'profile_image_url' in user_twitter . keys ( ) : self . profile_image_url = user_twitter [ 'profile_image_url' ] if 'profile_banner_url' in user_twitter . keys ( ) : self . profile_banner_url = user_twitter [ 'profile_banner_url' ] self . display_name = user_twitter [ 'name' ] return
Updates User object attributes with current Twitter info
This includes:
Updates User object attributes with current Twitter info This includes :
"""Updates User object attributes with current Twitter info

        This includes:

        * Bio text
        * Profile image url
        * Banner image url
        * Screen name

        :return: None
        """ # Check if user has profile image # Check if user has banner image
None
self