Category "python"

Scraping the English Vivino.com reviews from the website

I have two questions about web scraping information from Vivino.com: 1.) With the code below I can scrape information and reviews from the Vivino website, howev

How to get data with JSON format in Clickhouse-driver

I'm trying to get my Clickhouse data in my Django project. I'm using clickhouse_driver and : client.execute('SELECT * FROM myTable LIMIT 5 FORMAT JSON') When I

Django - After Register, Data Should Go To 2 Different Tables (Customer & User)

I am creating an e-commerce website where people can choose to login or not but still the can order and checkout (even if you are an AnonymousUser or Guest user

ERROR: Could not build wheels for coincurve, which is required to install pyproject.toml-based projects

Error while installing bit using Termux on a Samsung Galaxy s10 Android 12 which is not rooted ~ $ pip3 install bit Collectin

Reacting messages with Emojis in Discord.py

I'm making a bot with Python and I want to send messages with emojis. How can I react a message in discord.py? I found this method in stackoverflow but How can

Remove specific string char at the beginning of each lines of a txt file using python

I'm currently working on a script in python. I want to convert an xls file into a txt file but I also want to clean and manage the data. In the xls files, there

import pyzbar.pyzbar - Unable to find zbar shared library

I want to make a script for detecting and reading QR codes from photos. I would like to use PyZbar for that, but I have a problem with some errors. I'm working

Import Error: cannot import name 'ft2font' from partially initialized module 'matplotlib'

import matplotlib.pyplot as plt output ImportError Traceback (most recent call last) <ipython-input-7-a0d2faabd9e9> in <

Install Scip optimization

I'm trying install Scip optimization for python and I'm following a video but in the video it is installing Scip Optimization 7, and I'm installing Scip Optimiz

Can we integrate POLQA (perceptual objective listening quality assessment), to Check Voice Quality of Call?

I have requirement to Check Voice quality Rate out of 5 , 5 indicate excellent and 1 is bad. i have research POLQA can do it. but can not find any reference for

I am facing Error(Cannot find working tool) in rarfile extraction in python

I want to extract a rarfile using python rarfile lib. this is my code import rarfile as rar def Extractor(extract_to_folder, file, base_file_path):

serial.serialutil.SerialException: could not open port 'COM3': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)

i'm making a web server that can contro an arduino with python and i get this error: serial.serialutil.SerialException: could not open port 'COM3': FileNotFound

Need to add row above the headers of Dataframe in pandas

I have a dataframes, I need to add 8 rows above the header of dataframe, I am sharing dataframe and the desired output Dataframe:- Toll No. Vr.name

Check if a value is in a list of routes, if yes new list append 1, else 0

I'm trying to create an automatic method check if a value i exists in a list[list] of routes. If so, the new bir list (check the presence of the location by eac

How can I set the value of an indexed property of a COM object in Python?

I have come to a point where one of the properties that I must change (i.e. set) is an indexed get/set property of an object. I am controlling an application th

Integrate Python Library Spleeter on Android Studio

I want to build an android app based on Spleeter. But I am not sure which tool to use to bridge the way between Java and Python on Android or whether it is poss

Creating multiple figures out of for loop

I am trying to loop through my table and to create 3 different figures. This is my code .... tab_stat = pd.read_table('test.txt', delim_whitespace=True) radius

Trying to run a buffer-overflow with Python/pwntools

I work on a online program in which I should do a buffer Overflow. When I run the program, I have to complete a sum of two numbers generated randomly) : >>

How can I synchronize and join pytest-xdist workers?

I have a set of pytest tests that I run on multiple remotely-connected (embedded) devices (that do not have pytest on itself). Basically, the tests secure-copy

Failed to establish a new connection: [Errno 110] Connection timed out | Tableau

I'm trying to use Python to build a Hyper extract from a csv and publish it to my Tableau Server using the following code: !pip install --upgrade tableau-api-li