import pandas as pd

from googlesearch import search

def extrai_noticias_google(q, dia_inicio):
    if dia_inicio:
        q += 'after:' + str(dia_inicio)

    urls = []
    for url in search(q, stop=200):
        urls.append(url)

    return pd.DataFrame(urls, columns=['link'])


