Skip to content

How to filter tweets (status) by attributes? #11

Open
@mariana0

Description

Hello!
I'm working on an academic project based on Twitter data collecting. Before generating the JSON with tweets from a chosen user, like in twitter_get_user_timeline.py I'd like to select only tweets created in a certain day.
How do I do that?

  for status in page:
       if status.created_at like Mon Sep 10:
                f.write(json.dumps(status._json)+"\n")

Is that close?
Thanks

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions