Scraping
Introducing "dude" - A web scraping framework inspired by Flask syntax
Dude is an easy-to-learn web scraping framework inspired by Flask syntax. You can build a web scraper in just a few lines of code.
Python programming language
Scraping
Dude is an easy-to-learn web scraping framework inspired by Flask syntax. You can build a web scraper in just a few lines of code.
Python
I have been building a Rasa chatbot and the number of custom actions I have written kept on growing and I wanted to change something. What I do not like about Rasa is that it relies heavily on classes. For example, if you want to write a custom action, you
Python
We have seen usage of @route() decorator in Flask and they really make routing easy and backend development fast. But how do they really work? How do we implement one? We wrote a decorator and added print("hello", f.__name__) to see if it really gets printed. If
Python
In Python, a decorator allows a user to add useful functionalities to existing object. To use a decorator, we use the @symbol followed by the name of a decorator. @mydecorator def myfunction(): pass When calling myfunction(), the decorator mydecoratoris called first before executing myfunction. Decorators can be stacked. In the
Travis CI
By caching files and directories on Travis, we can save time with re/installation because we do not need to re-download the same files over and over again. The recommended way to cache pip-installed packages on Travis CI is shown below: cache: - pip: true However, this only works
Snippet
import pkg_resources # replace package name with correct name version = pkg_resources.get_distribution('package-name').version
Python
Travis CI does not currently support Windows natively so the following is a workaround. Installing Python is done using Chocolatey package manager and specifying the "patch" version is required. If you need to install specific Python versions, check the available versions here. matrix: include: - name: "Python: 3.
Rasa
I recently wrote a library that contains custom Rasa components. I named the project rasam, short for "Rasa Improved". Because Rasa currently does not have an accurate Entity Extractor based on Regular Expressions, I wrote one based on @naoko's code. You may find my source code
Python
Since OSX does not natively support Python, you can customize it using a Job Matrix, matrix or jobs. The following contains examples from Python 3.5 to 3.8, including PyPy3. matrix: # or you can replace `matrix` with `jobs` include: - name: "Python: 3.5" os: osx language: shell
Rasa
Rasa has a list of components available that you can use. If you need to extract entities, chances are, people will advise you to use DucklingHTTPExtractor. This component uses Facebook's Duckling. Rasa - 💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect
Docker
You probably have heard of Docker. Docker is a virtualization software which isolates environments in OS-level. Think of it as running another operating system on your computer. Docker is very useful when building applications because it creates an isolated environment. It solves one common issue in computer programming: Client:
Python
When I started working as an entry-level Software Engineer in 2013, my first project was to work with Python and Robot Framework, a popular test automation framework. I have been the automated testing evangelist in my team for around 3 years. For this long, not a single developer became