Giter Site home page Giter Site logo

zelongc / cloud-project Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 32 KB

This is for COMP90024 Cluster and Cloud Computing, repo contains zelong's original work including harvester based on different APIs and couchdb connector.

License: MIT License

Python 86.14% Shell 8.89% HTML 4.96%

cloud-project's Introduction

Cloud Computing Project

This project is for the COMP90024 Cluster and Cloud Computing, including a tweet harvester, couchDB connector and couchDB processor.

Deploy system with Ansilbe

Ansible is used to make the deployment of system automaticly.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

pip3 install TwitterAPI
  • CouchDB lib
pip3 install CouchDB
  • A Twitter Application Account for developer:apply one
Login with a twitter account and then apply for a application, collect your consumer key and tokens etc.

HOW TO USE IT

In the file support.py

  • change 'search_tweets' to whichever tokens are you going to search.
  • change the 'consumer_key','consumer_secret','access_token_key' and 'access_token_secret' to your own token

Start harvest

python3 Tweet.py -c [city] -t [token]
python3 Tweet_by_city.py -c [city] -t [token]

The above [city] refers to any major city described by boudning box in support.py, [token] refers to your secret tokens. The city has to be lowcase characters. (see support.py)

Exception log

  • Any exception occured will be record into log file. Usually the only exception is the duplication issue when inserting an existing tweet into database.

Deployment

Add additional notes about how to deploy this on a live system

Built With

Versioning

Currently version one

Authors

  • Zelong Cong - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Professor Richard Sinnott, gave us great pressure to do the project....ORZ....

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.