import re
import pywikibot
import mwparserfromhell

# Setting up pywikibot
site = pywikibot.Site('commons', 'commons', 'Gabrielchihonglee-Bot')

user = pywikibot.User(site, 'User:Gabrielchihonglee/HKCompany')

print(user.username)
Gabrielchihonglee/HKCompany