Originally I wrote the code:
cookies_str = """_xmLog=xm_1574336611019_k38ndbkbce4hvk; trackType=web; Hm_lvt_4a7d8ec50cfd6af753c4f8aee3425070=1574336679; fds_otp=8015974321740343522; 1&remember_me=y; 1&_token=200259672&47B4FE5188994D0796DF6A229406E614NdV552DD58CF7B42B51A177CD08B1AEE7C327234CE3E498B499016531771F0695D4; 1_l_flag=200259672&47B4FE5188994D0796DF6A229406E614NdV552DD58CF7B42B51A177CD08B1AEE7C327234CE3E498B499016531771F0695D4_2019-11-2119:51:48; Hm_lpvt_4a7d8ec50cfd6af753c4f8aee3425070=1574337106; x_xmly_traffic=utm_source%253A%2526utm_medium%253A%2526utm_campaign%253A%2526utm_content%253A%2526utm_term%253A%2526utm_from%253A"""
cookie_dict = {i.split("=")[0]:i.split["="][1] for i in cookies_str.split("; ")}
erportĀ anĀ error
cookie_dict = {i.split(“=”)[0]:i.split[“=”][1] for i in cookies_str.split(“; “)}
TypeError: ‘builtin_function_or_method’ object is not subscriptable
Found to be: (“”=””) intercepted, I wrote in over good [“=”]
Generally this error.
uiltin_function_or_method’ object is not subscriptable
are caused by parentheses