def mcanonical(mobile):
  try:
    ro = requests.get(mobile, timeout=5)
    text = ro.text
    xpth = "/html/head/link[@rel = 'canonical']/@href"
    revcon = scraper(text, xpth)
    return revcon
  except:
    return None
Return the canonical tag found in the URL referred to by under the mobile column.
dataset/ETHPy150Open miklevin/pipulate/common.py/mcanonical