new_contents: # -*- coding: utf-8 -*-
  import csv
  import os
  import re
  
  os.environ['PYWIKIBOT_DIR'] = os.path.dirname(os.path.realpath(__file__))
  import pywikibot
  from config import *
  
  
  site = pywikibot.Site()
  site.login()
  
  with open('list.csv') as csvfile:
      reader = csv.reader(csvfile)
      for row in reader:
          fromTitle = row[0]
          toTitle = row[1]
          print('Import from {} to {}'.format(fromTitle, toTitle))
  
          inBlack = False
          for blacklist in blacklists:
              if re.search(blacklist, toTitle):
                  inBlack = True
                  break
          if inBlack:
              print('Skip')
              continue
  
          page = pywikibot.Page(site, fromTitle)
          item = pywikibot.ItemPage.fromPage(page)
  
          item.setSitelink(sitelink={'site': targetSite, 'title': toTitle}, summary='Add {}'.format(targetSite))
  
subject: Create link-to-wikidata