Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.
/ logs-analysis Public archive

This project has been developed in response to the newspaper request to analyse their articles and authors based on logs.

License

Notifications You must be signed in to change notification settings

mtawil/logs-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logs Analysis

This project has been developed in response to the newspaper request to analyse their articles and authors based on logs.

Getting Started

These instructions will help you out to run this code on your local machine.

Prerequisites

  1. Download and install Vagrant 2.2.0
  2. Download Vagrantfile and install the virtual box:
$ git clone https://github.com/udacity/fullstack-nanodegree-vm.git FSND_VM
$ cd FSND_VM/vagrant
$ vagrant up

Depends on your internet speed, the vagrant up command will take a few minutes, be patient :)

  1. Download the database file, unzip it, then delete the unneeded zip file:
$ curl -L https://github.com/mtawil/logs-analysis/files/2498083/newsdata.zip > newsdata.zip
$ unzip newsdata.zip && rm -f newsdata.zip

Make sure that you've downloaded it on the same vagrant directory so that it can be accessible inside the virtual box.

Installing

  1. First of all, let's log into the virtual box using vagrant ssh, after that, go to the shared directory inside the virtual box cd /vagrant.
  2. Clone this repo into the shared directory:
$ git clone https://github.com/mtawil/logs-analysis.git /vagrant/logs-analysis

Please make sure you're on the shared directory and all the listed files as below are presented:

  1. Import the database:
psql -d news -f newsdata.sql
  1. Install the project requirements:
$ pip3 install -r requirements.txt

The output you get should be like this:

Running and analysis the logs

After you successfully installations, you can run this code by:

$ python3 main.py

The output results should be like the below screenshot

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

This project use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Mohammad AlTaweel - Initial work - mtawil

License

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

About

This project has been developed in response to the newspaper request to analyse their articles and authors based on logs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages