Skip to content

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

Description

@mariana0

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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