weiboPicDownloader icon indicating copy to clipboard operation
weiboPicDownloader copied to clipboard

weibo created_at format changed and should be adapted

Open zbutfly opened this issue 3 years ago • 1 comments

Now it's json format like 'Sat Feb 06 01:50:21 +0800 2021', the old date parsing code return 'None' for ever.

The code of parse_date should be:

import dateutil.parser

def parse_date(text):
    return dateutil.parser.parse(text).date()
    # all other line in the function should be removed.

code tested successfully by me.

zbutfly avatar Mar 12 '21 18:03 zbutfly