nondanee / weiboPicDownloader

Download weibo images without logging-in
GNU General Public License v3.0
266 stars 63 forks source link

weibo created_at format changed and should be adapted #57

Open zbutfly opened 3 years ago

zbutfly commented 3 years ago

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.

ChocolateThunder69 commented 2 months ago

Thank you!