code: def __get_oauth_url(self, url, method, **kwargs):
          
          oauth = OAuth(
              url=url,
              consumer_key=self.consumer_key,
              consumer_secret=self.consumer_secret,
              version=self.version,
              method=method,
              oauth_timestamp=kwargs.get("oauth_timestamp", int(time()))
          )
  
          return oauth.get_oauth_url()
docs: Generate oAuth1.0a URL