Soon I learned to capture videos through the webcam using Python with the OpenCV library. After that, I had the idea of making a script that automatically starts and stops recording a video. Once the program started, the capture would start, but...
As I can go by giving a "scan" in the CSV file and when finding a certain String in the CSV line, print in another file the complete line with its values after the string. Ex When you find the string "Bruno lorencini" in csv, print to a second f...
Imagine that I have the following command:
echo -e "'date'\n\n'free'\n\n'vmstat'\n" >> free_vmstat_output.txt
The generated file (the output of the above command) would be (in TEXT mode):
Fri Mar 31 22:19:55 -03 2017
t...
I would like to have a specific client disconnected with a server command.
from socket import *
meuHost = ''
minhaPort = 50007
sockobj = socket(AF_INET, SOCK_STREAM)
sockobj.bind((meuHost, minhaPort))
sockobj.listen(5)
while Tr...
I'malmostdonewiththislittleprogram,butwhat'shappeningisthis:Inthe"Tools" tab I create 2 submenus, in which I wanted to add submenus within other submenus, I know it's possible, but I still have not figured it out.
So far I've been able to ma...
I'm developing some Python scripts with the intention of bringing specific tweets and doing later analysis, but I'm having doubts about the type of Twitter authentication.
So I noticed, there are two types of authentication, User-Based Authen...
I made a crawler with Python and run it through the command line:
python crawler.py
As soon as I run this command it asks me for the keyword that will be searched for and start running.
global keyword
keyword = raw_input('Keyword: ')
T...
I am developing GUI in Python 3.6 using TKinter . I came to an impasse where I have to get the installed driver letters and their names in the same way they appear in Windows Explorer . See attached picture....
I want to display the sum of the numbers entered as well as the largest and the smallest number entered, only with while , if and else :
contador = 1
maior = 0
menor = 0
S = 0 # 1º NÚMERO A SER SOMADO
while contador <=...
Can someone tell me if I can make it work:
a = ['<a1>', '<a2>', '<a3>', '', '<a5>']
b = ['<b1>', '<b2>', '<b3>', '', '<b5>']
txt = '<a1> test <a2> test <a3> test <a4> test...