Giter Site home page Giter Site logo

twitterscrape's Introduction

New twitter scraper under scraper folder

When you've gathered all the tweets from the scraper, use the ruby script CombineTweets.rb to make a single file of all the separate files that the scraper gave to you.

Twitter Project

Repo for Getting and Cleaning Tweets for UTK CURENT

Getting the Repo & Setting Up

All you need to do is either clone it with Git or if you don't know Git, just download the zip file containing it all. Install pyquery & urllib2 for Python 2.7 using pip. This will need to be used in an Unix environment.

Cleaning the Tweets

In the Cleaning Folder, Main.py will filter by date, remove unicode errors, translate (if enabled), and combine all files into a single one.

Right now the translation is commented out. To enable, please uncomment.

To use: cd Cleaning cp "where the tweets files are" SepCleaning/ python MAIN.py

This works by doing a bit of hopscotch between two folders thanks to Python's CSV module. All you need to do is update path1 and path2 inside the main file and it should work. Replacing the osdir path needs to be done as well. When tested this worked on cleaning and removing all unneccessary files.

twitterscrape's People

Contributors

jball1997 avatar audrism avatar

Watchers

James Cloos 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.