Avoiding pop-up blocking when opening multiple Firefox tabs simultaneously in Selenium

Avoiding pop-up blocking when opening multiple Firefox tabs simultaneously in Selenium

In previous article Set up the Selenium Webdriver. Let’s automate with Python! , I introduced the procedure to build Selenium execution environment in Python. In this article, I would like to introduce a problem I actually ran into when opening multiple URLs in different tabs at the same time in Firefox and how to deal with it. What I originally wanted to do Open multiple URLs (about 100) at the
Set up the Selenium Webdriver. Let's automate with Python!

Set up the Selenium Webdriver. Let's automate with Python!

These days, even non-programmers are increasingly doing programming. That’s a good thing. Particularly popular with them is the automation of their work using the programming language Python. This means that we can use programs to simplify routine tasks that were previously done by hand. I’ve been getting a lot of needs (or rather questions) about running Selenium in Python, so I’ve decided to document them. Goals Set up the Selenium
HTTP requests in Python3 with Requests library

HTTP requests in Python3 with Requests library

In past article “HTTP requests in Python3 with urllib.request module”, I wrote simple code samples for HTTP requests with urllib.request module which is a package in Python. In this article, I introduce Requests. What is Requests Requests is a package for HTTP request. Requests is a human readable package for HTTP request with wrapping urllib. It has a simple interface and supports lots of feature as follows. International Domains and
HTTP requests in Python3 with urllib.request module

HTTP requests in Python3 with urllib.request module

In this article, I introduced how to use urllib.request module to request with HTTP in Python. Environment Runtime environment is as follows. python 3.7 Ordinal HTTP request HTTP GET request with an Request object Use Request object included in urllib.request module. Create Request object instance as follows. 1from urllib.request import * 2 3req = Request(url='https://docs.python.org/ja/', headers={}, method='GET') Access to Request object property. You can see the host information and path
Use PyPDF2 - Merging multiple pages and adding watermarks

Use PyPDF2 - Merging multiple pages and adding watermarks

In the following article I wrote previously, I was able to use PyPDF2 to extract text information from PDF files. open PDF file or encrypted PDF file Use PyPDF2 - extract text data from PDF file In this article we will use the page merging feature of PyPDF2 to achieve a way to put a “watermark” in the file. Goals Use PyPDF2 Add a common “watermark” to the file. Preparation
Use PyPDF2 - which PyPDF 2 or PyPDF 3 should be used?

Use PyPDF2 - which PyPDF 2 or PyPDF 3 should be used?

Introduction In previous article, we can extract text on a PDF file using PyPDF2. Use PyPDF2 - open PDF file or encrypted PDF file Use PyPDF2 - extract text data from PDF file I will introduce PyPDF3 in this article. PyPDF2 and PyPDF3 exist When I looked for various usage of PyPDF2, I found the follwing commnet in StackOverflow. The PyPDF2 has been stopped since 3 years ago?! And, new
Use PyPDF2 - extract text data from PDF file

Use PyPDF2 - extract text data from PDF file

Introduction In previous article titled ‘Use PyPDF2 - open PDF file or encrypted PDF file’, I introduced how to read PDF file with PdfFileReader. Extract text data from opened PDF file this time. Preparation Prepare a PDF file for working. Download Executive Order as before. It looks like below. There are three pages in all. Accessing to pages Accessing to arbitrary page The following code describes accessing the specified page
Use PyPDF2 - open PDF file or encrypted PDF file

Use PyPDF2 - open PDF file or encrypted PDF file

Motivation Since I want to work PDF file with Python on my work, I investigate what library can do that and how to use it. Preparation The runtime and module version are as below. python 3.6 PyPDF2 1.26.0 Install PyPDF2 To work PDF file with Python, PyPDF2 is often used. PyPDF2 can Extract text from PDF file Work existing PDF file and create new one Let’s install with pip command.
Recommended IDEs or code editors for Python beginner

Recommended IDEs or code editors for Python beginner

Motivation My colleages who are Python beginners often asks me my recommended Python IDE. After hearing what they’d like to do with Python from them at first, I suggest one of several IDEs or code editors. In this article, I will introduce Python IDEs and code editors use cases. What is an IDE ? An IDE is an abbreviation for Integrated Development Environment. We have several steps for developing source
Use openpyxl -  Convert to DataFrame in Pandas

Use openpyxl - Convert to DataFrame in Pandas

Introduction Previously, I wrote several articles on working Excel files using openpyxl. Use openpyxl - open, save Excel files in Python Use openpyxl - create a new Worksheet, change sheet property in Python Use openpyxl - read and write Cell in Python In this article, I introduce how to convert openpyxl data to Pandas data format called DataFrame. Preparation Install modules First, install module with pip command. pip install openpyxl