Skip to content

Scrapy-based scraping program for space/aeronautical newspapers (Front-End Module)

License

Notifications You must be signed in to change notification settings

sergira/tech-trends-fe

Repository files navigation

TechTrends (Front-end module)

Front-end 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.

Front-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 nodejs nginx

Clone this repository:

git clone <REPOSITORY URL>
cd ./tech-trends-fe

Install NPM packages:

sudo npm install -g @angular/cli@latest
sudo npm install

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

Modify the file /src/app/query.service.ts and declare the URL to your backend as the variable url.

Launch the test Angular server:

nohup sudo ng serve --open &

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.

About

Scrapy-based scraping program for space/aeronautical newspapers (Front-End Module)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published