Exemplo n.º 1
0
    'https://www.wsj.com/articles/uber-prepares-for-ipo-at-midpoint-of-target-range-or-lower-11557422774?mod=hp_lead_pos1',
    'https://abcnews.go.com/US/guard-colorado-school-shooting-shot-deputies-wounded-student/story?id=62932261&cid=clicksource_4380645_null_hero_hed',
    'https://www.bbc.com/news/business-48217766',
    'https://www.usatoday.com/story/life/tv/2019/05/09/alex-trebek-pancreatic-cancer-cbs-sunday-morning-interview/1155575001/',
    'https://www.latimes.com/local/lanow/la-me-ln-saenz-arrest-gun-investigation-20190509-story.html',
    'https://www.foxnews.com/politics/two-years-after-getting-fired-by-trump-comeys-reign-at-fbi-remains-under-fire-amid-spygate',
    'https://www.aol.com/article/news/2019/05/09/two-students-arrested-in-school-shooting-appear-in-court/23723544/',
    'https://www.thedailybeast.com/stem-school-shooting-students-walk-out-of-vigil-organized-by-team-enough-and-moms-demand-action',
    'https://www.avclub.com/why-didn-t-daenerys-torch-euron-who-s-side-is-jaime-on-1834599395',
    'https://electrek.co/2019/05/09/tesla-saved-life-owner-crash-autopilot/',
    'https://io9.gizmodo.com/one-of-avengers-endgames-most-incredible-scenes-is-now-1834644122',
    'https://www.cbsnews.com/news/alabama-abortion-law-2019-chaos-on-senate-floor-today-while-state-lawmakers-debate-near-total-abortion-ban-2019-05-09/',
    'https://techcrunch.com/2019/05/09/blue-origin-unveils-its-lunar-lander-blue-moon/',
    'https://abc13.com/finance/walmart-managers-earn-$175000-a-year-on-average-report/5293048/',
    'https://www.theverge.com/2019/5/9/18563474/google-pixel-3a-xl-teardown-easy-repairs',
    'https://kotaku.com/the-final-fantasy-vii-remake-finally-re-emerges-1834654881',
    'https://www.polygon.com/2019/5/9/18543880/ghost-recon-breakpoint-release-date-announcement-livestream-pc-ps4-xbox-one'
]
# times = []
# for _ in range(10):
#start = time.time()
for url in urls:
    try:
        article = KEYWORDS(url)
    except:
        print('dumbass this is a bad url')

    k = article.get_keywords()
    for word in k:
        print(word)