Auto Added by WPeMatico

13Jan/23

How to choose the right tool for your web scraping project?

Many people in different fields have employed Python to do web scraping. The most common purposes for this are data science and mining large amounts of structured or unstructured information from the Internet, which can be difficult without appropriate software tools. Python is excellent for web scraping because Python allows …

The post How to choose the right tool for your web scraping project? appeared first on Anto ./ Online.

17Nov/22

AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)

Less of blog post and more of a reminder to myself. When using Flask and Unit Testing with Python, if either of the below errors occur (or something similar): Then it may be because the setUp function of the test class has not set up correctly. Spent some time going round in circles until I … Continue reading AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)
17Nov/22

Using GitHub Actions To Add Continuous Integration (CI) To A Project (GitHub / Python)

In this blog post I will be discussing Continuous Integration (CI) with GitHub Actions. Readers of previous blog entries may remember that I’ve tackled Continuous Integration (CI) with GitLab previously (see: https://geektechstuff.com/2021/04/05/python-unit-test-and-some-ci-via-gitlab-python/ ) and that last autumn (2021) I got into more testing (see: https://geektechstuff.com/2021/10/06/personal-update-django-and-mvc-mtv/ ).  Thankfully both have helped as the current module of my degree apprenticeship is … Continue reading Using GitHub Actions To Add Continuous Integration (CI) To A Project (GitHub / Python)
17Nov/22

Running Flask As A Linux Service (Linux / Python)

Continuing on with the Software Engineering & Agile module of my degree, I need to be able to show my Flask web application running. After picking a cloud platform (in this case Azure) I git cloned my repository to the Linux Ubuntu instance that will be running it and realised that I’ve not included a … Continue reading Running Flask As A Linux Service (Linux / Python)