TickerScrape/items.py
def convert_bi_dt(text):
    """
    convert string 'Sun Sep 26 2021 16:10:49 GMT+0000 (Coordinated Universal Time)' to Python date
    """
    text = text.replace('(Coordinated Universal Time)', '').strip()
    try:
        dt = datetime.strptime(text, "%a %b %d %Y %H:%M:%S GMT%z")
    except:
        dt = parser.parse(text)
    return dt

    convert string 'Sun Sep 26 2021 16:10:49 GMT+0000 (Coordinated Universal Time)' to Python date
    
convert string 'Sun Sep 26 2021 16:10:49 GMT+0000 (Coordinated Universal Time)' to Python date
convert string ' Sun Sep 26 2021 16 : 10 : 49 GMT + 0000 ( Coordinated Universal Time ) ' to Python date
def convert_bi_dt(text):
    text = text.replace('(Coordinated Universal Time)', '').strip()
    try:
        dt = datetime.strptime(text, "%a %b %d %Y %H:%M:%S GMT%z")
    except:
        dt = parser.parse(text)
    return dt
def convert_bi_dt ( text ) : text = text . replace ( '(Coordinated Universal Time)' , '' ) . strip ( ) try : dt = datetime . strptime ( text , "%a %b %d %Y %H:%M:%S GMT%z" ) except : dt = parser . parse ( text ) return dt
convert string 'Sun Sep 26 2021 16:10:49 GMT+0000 (Coordinated Universal Time)' to Python date
convert string ' Sun Sep 26 2021 16 : 10 : 49 GMT + 0000 ( Coordinated Universal Time ) ' to Python date
"""
    convert string 'Sun Sep 26 2021 16:10:49 GMT+0000 (Coordinated Universal Time)' to Python date
    """
text