Example end to end data engineering project.
Example end to end data engineering project.
Data Engineering Project is an implementation of the data pipeline which consumes the latest news from RSS Feeds and makes them available for users via handy API. The pipeline infrastructure is built using popular, open-source projects.
Access the latest news and headlines in one place. :muscle:
Airflow DAG is responsible for the execution of Python scraping modules. It runs periodically every X minutes producing micro-batches.
First task updates proxypool. Using proxies in combination with rotating user agents can help get scrapers past most of the anti-scraping measures and prevent being detected as a scraper.
Second task extracts news from RSS feeds provided in the configuration file, validates the quality and sends data into Kafka topic A. The extraction process is using validated proxies from proxypool.
Software required to run the project. Install:
Script manage.sh - wrapper for docker-compose works as a managing tool.
./manage.sh up./manage.sh stop./manage.sh downScript run_tests.sh executes unit tests against Airflow scraping modules and Django Rest Framework applications.
./run_tests.shRead detailed documentation on how to interact with data collected by pipeline using search endpoints.
Example searches:
http://127.0.0.1:5000/api/v1/news/ search_fields title and description, see all of the news containing the Robert Lewandowski phrasehttp://127.0.0.1:5000/api/v1/news/?search=Robert%20Lewandowski Lewandowski phrase in their titleshttp://127.0.0.1:5000/api/v1/news/?search=title|Lewandowski Lewandowski phrasehttp://127.0.0.1:5000/api/v1/news/?search=lewandowski&language=plInspired by following codes, articles and videos:
Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the MIT License. See LICENSE for more information.
Please feel free to contact me if you have any questions. Damian Kliś @DamianKlis
No open issues yet, or sync has not completed.