Traverse a directory in php

Sometimes, we need to traverse a directory. Here is the code to traverse a directory/folder. Exclude current and parent directory The above code display all the files and sub-directories in a current directory, including your current directory (“.”) and parent directory (“..”). To exclude these directories you can check the file name. Exclude all subdirectories … Read more

Categories PHP

Setting up Python Virtual Environment on Ubuntu

This guide helps to set up a python virtual environment on Ubuntu. First, I will check the current version of python on my ubuntu machine $ python3 -V Now install the python3-venv package that provides the venv module $ sudo apt update$ sudo apt install python3-venv Creating virtual environment once, you install the python3-venv package. … Read more

Google map scraper using Selenium

In the last post, I have shown you how to scrape google “People also ask”. Here is the code to scrape the Google Map using Selenium. Please leave the suggestions, and comments below or in our Facebook group You, Me, and Automation.

Web scraping using Scrapy – Part 1

This article is about scrapy for web scraping. I will tell you how to set up and scrape with examples. Step1: Python Installation First, you download & install python on your machine using this link What is python? Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the … Read more

Python and MySql Quick Overview

In order to connect python with MySql, I need to install the MySQL driver package. Remember if you want to install MySQL connector in the virtual environment, enable or activate the environment and then install the driver using PIP. MySql connection This will print nothing if the connection is successful else return an error. Create … Read more