Git Product home page Git Product logo

isae-pie-scrap's Introduction

TechTrends (Scraper module)

Scraper module for the TechTrends project.

TechTrends is a prototype tool for deriving insights on the trends of aerospatial technologies through the exploration of news articles on the web. It manages its extraction and storage and allows for visual exploration of their evolution along time, as well as filtering by tags and companies.

See also the repositories for the whole project:

Motivation

This tool was developed for the project Integrating Data Modelling, Data Management and Data Analysis in a Concurrent Engineering Environment, proposed by the CTO of Technology Planning and Roadmapping (XP) at Airbus. It was done in the framework of the Project Ingénierie et Entrepreneuriat of the Diplôme Ingénieur at the university ISAE-Supaéro, France.

Current and future functionalities

Due to the work load restriction imposed by the university, the following functionalities were implemented:

  1. Automatically scrap news sources and institutional websites to get information related to topics of interest
  2. Format and collect the information into a Database
  3. Provide a user interface linked to the Database in order to visualize the information

leaving the following planned functionalities left for future work. Some hints at how to tackle them are proposed:

  1. Automatic tagging of articles
  2. Sentiment analysis
    • Andrew L. Maas proposes a method for polarity and subjectivity analysis using IMDB reviews as labeled data.
  3. Exploration of other types of documents
    • Academic articles
    • Patents
    • Social media posts

Architecture

The project is composed by three interdependant modules, as well as a PostGreSQL database:

  • Scraping module
  • Back-end module
  • Front-end module architecture

Scraping module

Automatically crawls and extracts content of target websited, formatting it and storing it to the database.

It is based on the Scrapy project, an open-source general purpose web crawling framework for automatic web exploration and data extraction. It provides with easily configurable pipelines and allows for database integration.

The files describing the extraction procedure for each target are called Spiders and must be tailored to each website:

scrapy1

For more information, refer to the Scrapy project documentation website.

Front-end

Provides with a responsive chart displaying the monthly aggregation of news article entries, allowing for time interval selection, filtering by company and tag and reactive to mouse interaction.

It has been developed on the Angular web framework, along with the plotting library chart.js.

frontend

Back-end

Provides with an API that allows for queries to the database, as well as filtering by URL keyword arguments. Based on the Django web python framework with Django-Rest-Framework on top.

The filtering functionality is heavily inspired on Clinton Dreisbach's Call for service web app. CFS Analytics is copyright 2016 RTI International and is licensed under the GNU Public License 3.0.

Back-end deployment on virtual machine

Once the virtual machine is created, run from the SSH shell:

sudo apt-get update
sudo apt-get install -y git nginx

Set Nginx up by replacing manually the Ngix conf file at /etc/nginx/sites-enabled/default with the following text:

server { 
    listen 80; 
    server_name pie71_vm; 

    location / { 
        proxy_set_header   X-Forwarded-For $remote_addr;
        proxy_set_header   Host $http_host;
        proxy_pass         http://127.0.0.1:4200;
    }
}

Reload Nginx:

sudo nginx -s reload

Clone the project repository:

cd && git clone <REPO URL>
cd ./tech-trends-backend

Install python dependencies:

sudo apt-get install python3-pip -y
pip3 install -r requirements.txt

Make sure that the /tech_trends_backend/settings/init.py file refers to the virtual machine configuration file (vm.py) and configure the DATABASE variable accordingly to your production schema (database IP, user, password, etc.).

Launch the server:

python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserve

Contributors

  • Sergi Rocamora - product owner, web architect and full stack developer
  • Marco Scarpetta - project manager and web scraper developer
  • Manfredo Martinino - web scraper developer
  • Evgenii Munin - web scraper developer
  • Jun (Octave) Yao - web scraper developer
  • Marc Tortosa - web scraper developer

License

GNU General Public License v3.0. See LICENSE for the full text of the license.

isae-pie-scrap's People

Contributors

evgeniimunin avatar sergira avatar marcoscarp avatar octaveyao avatar

Forkers

octaveyao marctp

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.