Giter VIP home page Giter VIP logo

tweepyscripts's Introduction

tweepyScripts

Script will use Tweepy search API and user_time API. Adapted from this post: Link

Overview

See individual script readmes for more details.

Components

twitterSearch

  • Requires 3 arguments: searchterm (could be # hashtag, just put in quotes), number of Tweets to collect (some arbitrary large number), and filename to save as CSV output.

twitterUserTimeline

  • Requires a users.txt file to be in same directory which contains a list of all the usernames you want to download. See sample users.txt for example.
  • Requires 2 arguments: max number of Tweets to collect (some arbitrary large number), and filename to save as CSV output.

twitterUser

  • No arguments, edit the users list with the username you want to search for and it will retreive various details about that user profile.

Usage

  • Assume Python is installed, pip install depenedencies (Tweepy, codecs, unicodecsv)
  • Have a users.txt file located in the same folder.
  • Run twitterUserTimeline.py with arguments, EX: "./twitterUserTimeline.py 10000 sampleOutput.csv"
  • Run twitterSearch.py with arguments, EX: "./twitterSearch.py "#MarchMadness" 10000 sampleOutput.csv"

tweepyscripts's People

Contributors

byronrau avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.