In this article we are going to explain simple Socket Programming using Python Programming Language. Client will send basic Math operation and Server will send the result after basic Math operations.

We will create two python files. One of them called other called

  • Client: will send a request to Server like 2#+#5 or 43#-#10 data.
  • Server: got a request and then immediately split by # character
  • Server: recognition the basic operation between ## characters.
  • Server: make basic operation and send the result to client.

Here is the

Code Explanation

line1: import socket module
line2: Creates a socket…

Sometimes I can’t remember some kind of Elasticsearch Queries. That is why I write this article. With this article I can find all kind of EIasticsearch Queries.

Returns search hits that match the query defined in the request.

GET indexname/_search

The following search returns documents where the Id field by ascending sort

GET  indexname/_search
"sort": {
"Id": { "order": "asc" }

The following search returns documents by ascending order of tweettime

GET indexname/_search
"sort": [
{ "tweettime": "asc" }

The following search returns documents where the Id field is 5

GET indexname/_search

Photo by Pankaj Patel on Unsplash

Hi everyone, In this article, we will see all the Git commands. Firstly, let me explain what Git is.

Git is a software for tracking changes in your projects and an open-source distributed version control system. It is also a free software. Git was created by Linus Torvalds in 2005 for development of the Linux kernel.

Here are all Git Commands

1) Starting a project

Initialize a new git repository:
git init [project name]
Download your existing project from Github/Gitlab...
git clone [url]
Example of Download repository from Github
git clone

2) Git Configuration

Set configuration values for your…

Hi Pythoneers, So many times we have many Pdf files including soo many Images and Texts data. But sometimes we have to extract Images and Text from Pdf files But extracting Images and Texts from Pdf files using Copy and Past It can be torture. That is Why Python is Everywhere :)

And then I searched on google and I find a great package is called PyPDF2 to extract Images from Pdf files. Here is github link. And I find a great toolkit is called Tika to extract Texts from Pdf files.

PyPDF2 is a pure-python PDF library capable of…

Hi Pythoneers! In this article, I am going to get all my notes for Python Lists.

So what are lists? Lists are used to store multiple items in a single variable and also to store collections of data.

Let’s start looking at my list notes.

1) Create an empty list

my_list = []

2) Show all values of the list

my_list = [1, 2, 3, 4, 5, 6, 7]
#[1, 2, 3, 4, 5, 6, 7]
my_list = [1, 2, 3, 4, 5, 6, 7]
#[1, 2, 3, 4, 5, 6, 7]

3) Show the value of the…

Virtualenv is a tool for creating isolated virtual python environments. Here is the virtualenv pypi link and here is the virtualenv github link. My operating system is Windows that is why all commands are suitable for windows.

1) Install Virtualenv Package

Execute the following pip command in your terminal to download the virtualenvmodule as shown below:

python -m pip install --user virtualenv
#install virtualenv in your project

2) Create Virtual Environment

Execute the following virtualenv command in your terminal to create an virtual python environment called env.

virtualenv env 
#create an virtual python environment called env

3) Activate Virtual Environment

Be carefull your created virtual environment name. On the above we created…

Beautiful Soup is a Python package for getting data out of HTML ,XML documents and other markup languages. We can use this package for getting data from java script or dynamically loading pages. It only fetches the contents of the URL that you give and then stops.

Beautiful Soup installation is so easy for your Python environment. Just type pip install bs4 .

pip install bs4

Beautiful Soup supports the HTML parser included in Python’s standard library, but it also supports a number of third-party Python parsers. One of them is lxml parser. If you want to use it you…

Selenium is an open-source web-based automation tool to test your web application. We will examine Selenium down to the finest details with some projects.


Before writing a single line of Python, youe need a Selenium Driver for your favorite web browser. The download links for the drivers are available here: Chrome, Edge, Firefox, and Safari. Follow the link for the browser of your choice and download the driver for the compatible version. We will use the Chromedriver. You can find for chrome compatible version is here chrome://settings/help

You have to install Selenium on a your Python environment. Easiest way using…

Sometimes we need a users all tweets to csv file. But don’t have Twitter API or Twitter API doesn’t allow to scrape / download more than 3200 twees. That is why we will use snscrape library.

Snscrape is a scraper for social networking services (SNS). It scrapes things like user profiles, hashtags, or searches and returns the discovered items, e.g. the relevant posts. Here is the link. Not: snscrape requires Python 3.8 or higher.

Install snscrape package to your python enviroment . Just try to install snscrape with this command.

pip3 install git+

Let’s scrape 100 tweets containing the word…

What is Selenium;

  • Selenium is a portable framework for testing web applications. Selenium provides a playback tool for authoring functional tests without the need to learn a test scripting language

Lets create the first basic Twitter Bot. This bot is basicly will be login to twitter and will be making tweet and then it will be logout.

What we need?

  • We need a selenium exe. We will use ChromeDriver-WebDriver for Chrome. You can find chrome version in this link.
  • Then we will be intalled like this
pip install selenium

Let’s create a twitter directory includes and notes directory includes…


I am an computer engineer. I am interested technology since 2010.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store