Thanks for stopping by. I would like to share a hands-on experience about a process automation with Django application. I am using some steps of DevOps methodology, like control version with git, and share development in remote repository like GitHub. I am also doing more than one integration each day.
The goal of this automation process project is to get from web page investing five stock values, and publish them into a dataframe table on html template.
Operating system: Windows 10 Pro Virtual environments: venv module with runtime python version = 3.8.1 Packages: Django, requests, BeautifulSoup, pandas, matplotlib
In the project I have included some examples of unit test.
- test_check_request_status_ok
- test_check_request_status_ko
- test_check_content_have_stockname
- test_check_content_have_stockvalue
- Connect to investing web page (requests.get)
- Get all DOM elements and find stock name and value (BeautifulSoup)
- Build a dataframe with all values scraping (pd.DataFrame)
- And display them into a matplotlib bar in a html template (plt.Figure())
- Requests is a simple, yet elegant, HTTP library https://pypi.org/project/requests/.
- Beautiful Soup is a library that makes it easy to scrape information from web pages. It sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree https://pypi.org/project/beautifulsoup4/
- Pandas is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive. It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python. Additionally, it has the broader goal of becoming the most powerful and flexible open source data analysis / manipulation tool available in any language. It is already well on its way towards this goal https://pypi.org/project/pandas/.
- Matplotlib produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms. Matplotlib can be used in Python scripts, the Python and IPython shell, web application servers, and various graphical user interface toolkits https://pypi.org/project/matplotlib/.
- Beautiful Soup: Build a Web Scraper With Python https://realpython.com/beautiful-soup-web-scraper-python/
#djangodeveloper #pythondeveloper #freelancercolaboration #remotework
I am always open to join or collaborate in development web app, mobile app, api and rpa services.
Thanks for your time Luis 😃