Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weibo created_at format changed and should be adapted #57

Open
zbutfly opened this issue Mar 12, 2021 · 1 comment
Open

weibo created_at format changed and should be adapted #57

zbutfly opened this issue Mar 12, 2021 · 1 comment

Comments

@zbutfly
Copy link

zbutfly commented Mar 12, 2021

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
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants