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:
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.
Due to the work load restriction imposed by the university, the following functionalities were implemented:
- Automatically scrap news sources and institutional websites to get information related to topics of interest
- Format and collect the information into a Database
- 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:
- Automatic tagging of articles
- Methods considered were Latent Dirichlet Allocation and TextRank
- For the moment, tags are randomly assigned for front-end demonstration purposes.
- Sentiment analysis
- Andrew L. Maas proposes a method for polarity and subjectivity analysis using IMDB reviews as labeled data.
- Exploration of other types of documents
- Academic articles
- Patents
- Social media posts
The project is composed by three interdependant modules, as well as a PostGreSQL database:
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:
For more information, refer to the Scrapy project documentation website.
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
.
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.
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
- 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
GNU General Public License v3.0. See LICENSE for the full text of the license.