This scraper queries Wikidata for articles on the ScienceSource focus list with a PubMed Central ID, but where the license is unknown.
It then looks up the article on the PubMed website to see if there's a Creative Commons license mentioned on the article page, and if so generates QuickStatements-compatible commands for adding that license information to Wikidata.
This was originally written as part of the ContentMine/Cambridge Wikidata Workshop in October 2018.
Rather than ignoring any non-CC licenses, it would be useful to set something useful about the license onto the Wikidata item, and/or remove it from the focus list.