Jump to content

User:Anne drew/RefSearch.py

From Wikipedia, the free encyclopedia
import requests

urls = [
    "https://montrealgazette.com/business/local-business/rmcp-charges-snc-lavalin-with-corruption",
    "https://web.archive.org/web/20150221152724/http://www.rcmp-grc.gc.ca/ottawa/ne-no/pr-cp/2015/0219-lavalin-eng.htm",
    "http://www.rcmp-grc.gc.ca/ottawa/ne-no/pr-cp/2015/0219-lavalin-eng.htm",
    "https://business.financialpost.com/opinion/how-trudeau-can-easily-help-snc-lavalin-and-other-corporate-wrongdoers-without-corrupting-justice",
    "https://buyandsell.gc.ca/policy-and-guidelines/policy-notifications/PN-107R1",
    "https://www.tpsgc-pwgsc.gc.ca/ci-if/guide-eng.html",
    "https://www.cbc.ca/news/politics/snc-lavalin-trudeau-bribery-fraud-wilson-raybould-1.5020498",
    "https://www.cbc.ca/news/canada/montreal/snc-lavalin-quebec-caq-1.5056385",
    "https://www.cbc.ca/news/business/snc-lavalin-ceo-letter-1.5044395",
    "https://www.bloomberg.com/research/stocks/people/person.asp?personId=8095087&privcapId=874846",
    "https://www.huffingtonpost.ca/2018/05/17/normand-morin-snc-lavalin-illegal-donations_a_23437239/",
    "https://www.macleans.ca/politics/ottawa/snc-lavalin-needed-what-jody-wilson-raybould-wouldnt-give-it/",
    "https://www.cbc.ca/news/politics/election-financing-snclavalin-charbonneau-1.4984823",
    "https://www.snclavalin.com/en/media/statements/notice-of-appeal",
    "https://www.cbc.ca/news/business/snc-lavalin-trial-board-1.5096153",
    "https://nationalpost.com/news/politics/federal-court-strikes-down-snc-lavalins-bid-for-remediation-agreement",
    "http://canlii.ca/t/hxxcw",
    "https://www.canada.ca/en/public-services-procurement/news/2018/03/canada-to-enhance-its-toolkit-to-address-corporate-wrongdoing.html",
    "https://en.wikipedia.org/wiki/Public_Services_and_Procurement_Canada",
    "https://www.canada.ca/en/department-justice/news/2018/03/remediation-agreements-to-address-corporate-crime.html",
    "https://www.cbc.ca/news/politics/federal-budget-corporate-wrongdoing-1.4664490",
    "http://canlii.ca/t/26g27#par46",
    "http://canlii.ca/t/51rs#par29",
    "https://en.wikipedia.org/wiki/CanLII",
    "http://www.ontariocourts.ca/coa/en/ps/publications/attorney_general_prosecution_function.htm",
    "https://www.canadianlawyermag.com/author/michael-spratt/the-real-scandal-in-the-snc-lavalin-affair-16895/",
    "http://craigforcese.squarespace.com/public_law_blog/2019/2/9/laffaire-snc-lavalin-the-public-law-principles.html",
    "https://www.ctvnews.ca/politics/independence-at-core-of-federal-prosecution-service-s-creation-1.4294189",
    "https://www.ppsc-sppc.gc.ca/eng/bas/index.html#section_1_4",
    "https://www.ppsc-sppc.gc.ca/eng/pub/fpsd-sfpg/fps-sfp/tpd/p1/ch01.html",
    "https://en.wikipedia.org/wiki/Public_Prosecution_Service_of_Canada",
    "https://laws-lois.justice.gc.ca/eng/acts/d-2.5/page-1.html",
    "https://en.wikipedia.org/wiki/Department_of_Justice_of_Canada",
    "https://www.theglobeandmail.com/politics/article-pmo-pressed-justice-minister-to-abandon-prosecution-of-snc-lavalin/",
    "https://pm.gc.ca/eng/news/2019/01/14/prime-minister-announces-changes-ministry",
    "https://nationalpost.com/opinion/john-ivison-wilson-raybould-couldnt-hide-her-disappointment-at-move-from-justice-minister",
    "https://www.theglobeandmail.com/amp/canada/article-evening-update-trudeau-attributes-wilson-raybould-demotion-to-brison/",
    "https://www.bbc.com/news/world-us-canada-47362652",
    "https://en.wikipedia.org/wiki/BBC",
    "https://www.huffingtonpost.ca/2019/01/14/jody-wilson-raybould-veterans-affairs_a_23642218/",
    "https://www.cbc.ca/news/politics/liberal-cabinet-shuffle-2019-1.4976936",
    "http://www.snclavalin.com/en/files/documents/publications/dpa-consultation-submission-october-13-2017_en.pdf",
    "https://www.newswire.ca/news-releases/update-on-the-federal-charges-by-the-public-prosecutor-service-of-canada-696586891.html",
    "https://globalnews.ca/news/4939485/snc-lavalin-jody-wilson-raybould/",
    "https://www.thestar.com/politics/political-opinion/2019/02/07/jody-wilson-raybould-speaks-volumes-with-her-silence.html",
    "https://globalnews.ca/news/4934682/justin-trudea-pmo-snc-lavalin-jody-wilson-raybould/",
    "https://en.wikipedia.org/wiki/Global_News",
    "https://www.thestar.com/politics/federal/2019/02/07/prime-minister-justin-trudeau-denies-news-report-that-his-office-pressed-former-justice-minister-wilson-raybould-to-drop-snc-lavalin-charges.html",
    "https://vancouversun.com/news/national/trudeau-denies-his-office-directed-jody-wilson-raybould-to-help-snc-lavalin",
    "https://nationalpost.com/news/politics/ethics-commissioner-launches-investigation-into-political-interference-allegations-in-snc-lavalin-case",
    "https://globalnews.ca/news/4952236/jody-wilson-raybould-resigns-snc-lavalin-affair/",
    "https://www.bbc.com/news/world-us-canada-47203712",
    "http://web.archive.org/web/20190212170037/https://jwilson-raybould.liberal.ca/news-nouvelles/statement-from-the-honourable-jody-wilson-raybould-member-of-parliament-for-vancouver-granville/",
    "https://jwilson-raybould.liberal.ca/news-nouvelles/statement-from-the-honourable-jody-wilson-raybould-member-of-parliament-for-vancouver-granville/",
    "https://www.theglobeandmail.com/politics/article-politics-briefing-wilson-rayboulds-resignation-speaks-for-itself/",
    "https://www.cbc.ca/news/politics/committee-justice-snc-lavalin-wilson-raybould-1.5017184",
    "https://www.theglobeandmail.com/politics/article-trudeau-says-he-removed-wilson-raybould-from-justice-because-of/",
    "https://globalnews.ca/news/4951852/justin-trudeau-snc-lavalin-jody-wilson-raybould/",
    "https://www.huffingtonpost.ca/2019/02/13/liberals-jody-wilson-raybould-justice_a_23668842/",
    "https://nationalpost.com/news/politics/commons-set-for-all-night-voting-marathon-as-conservatives-push-for-more-testimony-on-snc-lavalin/",
    "https://nationalpost.com/news/politics/senators-challenged-to-prove-their-independence-by-inviting-jody-wilson-raybould-to-testify",
    "https://torontosun.com/opinion/editorials/editorial-how-the-senate-failed-to-deal-with-lavscam",
    "https://www.youtube.com/watch?v=tXoffOVdd8U",
    "https://www.thestar.com/politics/federal/2019/02/21/no-inappropriate-pressure-on-jody-wilson-raybould-in-snc-lavalin-affair-top-civil-servant-says.html",
    "https://nationalpost.com/news/canada/read-jody-wilson-rayboulds-full-remarks-to-the-house-of-commons-justice-committee",
    "https://www.cbc.ca/news/politics/key-moments-jody-wilson-raybould-snc-lavalin-scandal-1.5036629",
    "http://orders-in-council.canada.ca/attachment.php?attach=37424&lang=en",
    "https://www.cbc.ca/news/politics/butts-snc-lavalin-wilson-raybould-1.5044704",
    "https://nationalpost.com/news/politics/gerald-butts-live-testimony-snc-lavalin-livestream",
    "https://www.cbc.ca/news/politics/michael-wernick-key-updates-snc-lavalin-1.5045461",
    "https://www.theglobeandmail.com/politics/article-liberal-mps-block-effort-to-immediately-invite-wilson-raybould-to/",
    "https://nationalpost.com/news/politics/scheer-trudeau-thumbing-nose-at-canadians-vote-against-snc-lavalin-probe",
    "https://www.cbc.ca/news/politics/jody-wilson-raybould-committee-close-inquiry-1.5061858",
    "https://ipolitics.ca/2019/03/19/liberals-shut-down-snc-lavalin-investigation-at-committee/",
    "https://www.cbc.ca/news/politics/wilson-raybould-justice-committee-documents-audio-1.5076563",
    "https://nationalpost.com/news/politics/newsalert-justice-committee-releases-texts-recording-from-wilson-raybould",
    "https://ourcommons.azureedge.net/data/Wilson-RaybouldJody-e.pdf",
    "https://www.bbc.co.uk/news/world-us-canada-47754185",
    "https://globalnews.ca/news/5113193/pmo-michael-wernick-jody-wilson-raybould",
    "https://www.cbc.ca/news/politics/wernick-wilson-raybould-recording-trudeau-holiday-break-1.5078639",
    "https://www.cbc.ca/news/politics/ethics-commissioner-pmo-snc-lavalin-1.5014435",
    "https://en.wikipedia.org/wiki/CBC_News",
    "https://nationalpost.com/news/politics/ethics-commissioner-launches-investigation-into-political-interference-allegations-in-snc-lavalin-case/",
    "https://ottawacitizen.com/opinion/columnists/elizabeth-may-we-need-an-independent-inquiry-into-the-jody-wilson-raybould-snc-lavalin-affair",
    "https://media.conservative.ca/en/statements/justin-trudeau-must-resign-scheer",
    "https://media.conservative.ca/en/statements/scheer-calls-on-rcmp-to-investigate-trudeau-and-snc-lavalin-affair",
    "https://montrealgazette.com/news/i-and-my-staff-always-acted-appropriately-regarding-snc-lavalin-trudeau",
    "https://www.cbc.ca/news/politics/trudeau-snc-lavalin-1.5046438",
    "https://www.nationalpost.com/news/canada/trudeau-erosion-of-trust-jody-wilson-raybould-snc-lavalin?video_autoplay=true",
    "https://nationalpost.com/news/politics/oecd-announces-it-is-monitoring-snc-lavalin-scandal-raising-prospect-canada-has-violated-international-anti-bribery-agreement",
    "https://www.bloomberg.com/news/articles/2019-03-11/meet-snc-the-company-that-trudeau-s-risking-his-career-to-save",
    "https://pm.gc.ca/eng/news/2019/03/18/prime-minister-announces-former-deputy-prime-minister-anne-mclellan-special-advisor",
    "https://ipolitics.ca/2019/03/18/anne-mclellan-to-advise-on-separating-attorney-general-justice-minister-roles/",
    "https://globalnews.ca/news/5079431/conservatives-marathon-voting-snc-lavalin/",
    "https://en.wikipedia.org/wiki/The_Canadian_Press",
    "https://globalnews.ca/news/5096806/snc-lavalin-scandal-ethics-committee-justin-trudeau/",
    "https://www.cbc.ca/news/politics/snc-lavalin-warned-of-move-abroad-1.5075840",
    "https://www.ctvnews.ca/politics/relations-between-trudeau-wilson-raybould-began-to-fray-over-her-supreme-court-pick-sources-1.4350875",
    "https://www.cbc.ca/news/politics/trudeau-leaks-snc-lavalin-1.5074979",
    "https://www.cbc.ca/news/politics/trudeau-supreme-court-wilson-raybould-1.5070619",
    "https://nationalpost.com/opinion/andrew-coyne-the-latest-tactic-to-suppress-wilson-raybould-smear-a-judge",
    "https://www.macleans.ca/politics/ottawa/on-the-elimination-of-inconvenient-liberals/",
    "https://globalnews.ca/news/5099986/trudeau-wilson-raybould-leak-slammed",
    "https://nationalpost.com/news/canada/tories-seek-investigation-into-leak-of-trudeau-jwr-clash-over-top-court-choice",
    "https://globalnews.ca/news/5103260/jody-wilson-raybould-glenn-joyal-justin-trudeau-investigation",
    "https://ottawacitizen.com/news/national/full-statement-gerald-butts-resignation-letter",
    "https://www.cbc.ca/news/politics/philpott-resignation-trudeau-snc-lavalin-1.5042411",
    "https://www.bbc.com/news/world-asia-china-47447976",
    "https://globalnews.ca/news/5068389/michael-wernick-retiring-snc-lavalin-affair/",
    "https://www.cbc.ca/news/politics/wernick-election-panel-snc-1.5060834",
    "https://www.cbc.ca/news/politics/wernick-clerk-retirement-letter-1.5103640",
    "https://www.nytimes.com/2019/04/02/world/canada/trudeau-liberal-expel-minister.html",
    "https://nationalpost.com/news/politics/im-angry-wilson-raybould-philpott-dont-belong-in-liberal-caucus-anymore-party-mps-say",
    "https://www.cbc.ca/news/politics/wilson-raybould-philpott-snc-lavalin-trudeau-1.5076998",
    "https://www.huffingtonpost.ca/2019/04/02/jody-wilson-raybould-caucus-letter_a_23704984/",
    "https://globalnews.ca/news/5137174/jody-wilson-raybould-snc-lavalin-andrew-scheer-win/",
    "https://www.cbc.ca/news/politics/liberals-wilson-raybould-philpott-caucus-1.5080880",
    "https://vancouversun.com/news/politics/jody-wilson-raybould-says-shes-been-kicked-out-of-the-liberal-caucus/wcm/71889ec7-e68e-46b1-9b6b-a6501e3585ea",
    "https://globalnews.ca/news/5124321/jane-philpott-liberal-caucus-expulsion-statement",
    "https://thetyee.ca/Opinion/2019/04/02/Trudeau-Dumb-Expulsions",
    "https://www.bbc.com/news/world-us-canada-47754193",
    "https://www.reuters.com/article/us-canada-politics-expulsion/canadas-trudeau-expels-two-ex-ministers-from-ruling-party-in-bid-to-end-scandal-idUSKCN1RE2IY",
    "https://globalnews.ca/news/5123526/liberal-caucus-wilson-raybould-jane-philpott",
    "https://www.peacearchnews.com/news/elizabeth-may-says-raybould-and-philpott-very-brave/",
    "https://www.huffingtonpost.ca/2019/04/03/trudeau-daughters-of-the-vote_a_23705757",
    "https://www.cbc.ca/news/politics/philpott-wilson-raybould-political-future-1.5150957",
    "https://www.nytimes.com/2019/05/17/world/canada/snc-lavalin-justin-trudeau-federal-election.html"
]

pi = []

oj = []

for url in urls:
    try:
        r = requests.get(url)
        if ("politic" in r.text and "interfere" in r.text):
            pi.append(url)
        if ("obstruct" in r.text and "justice" in r.text):
            oj.append(url)
    except Exception as e:
        print("Error: {}\n{}".format(e, url))

pioutfile = open("pi.txt", "w")
pioutfile.write("\n".join(pi))
pioutfile.close()

ojoutfile = open("oj.txt", "w")
ojoutfile.write("\n".join(oj))
ojoutfile.close()