Skip to content

byronrau/tweepyScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Python scripts that use Tweepy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages