import datetime

from goose3 import Goose
from goose3.text import StopWordsArabic, StopWordsChinese

from smart_extractor import SmartExtractor
import jieba
if __name__ == '__main__':
    # # url='https://www.eet-china.com/news/202302025307.html'
    # url='https://www.finam.ru/publications/item/rzhd-gotovy-predlozhit-bespilotnye-tekhnologii-afrikanskim-partneram-20230728-1403/'
    # # url='https://arka.am/en/news/business/rosgosstrakh_armenia_signs_more_than_one_million_mandatory_vehicle_insurance_contracts/'
    # # jieba.cut('张三')
    # sm=SmartExtractor('en')
    # # g = Goose({'stopwords_class': StopWordsChinese})
    # # article = g.extract(url)
    # # print(article.cleaned_text)
    # print('+++++++++++++++++++')
    # print(sm.extract_by_url(url).cleaned_text)
    needDate='2022-01-01 00:00:00'
    needTime = datetime.datetime.strptime(needDate, "%Y-%m-%d %H:%M:%S")
    print(needTime)