Questions tagged as 'python'

1
answer

ID Alfanumerico Django

good: I'm trying to generate unique ID's with letters and numbers but all the methods I've tried return strings that can give the possibility of repeating and cause the application to fail. Right now I have this: class Comentario(models.Mod...
asked by 26.01.2018 / 17:06
1
answer

How to update the delegate of a QTableView from a Thread

I would like to know if you know how to update a progress bar, which is drawn using a Delegate, the class is called QAbstractItemDelegate, this class was overwritten to draw a QWidget in a specific QProgressBar progress bar, use a QMainWindow as...
asked by 25.11.2017 / 05:28
1
answer

Redirect immediately with SELENIUM PYTHON

I make a login and login but redirect me to a page which has errors and remains loading. The credentials are kept even if the page does not load completely. The page has a loop that keeps reloading the site. After the start of the session,...
asked by 27.11.2017 / 16:49
1
answer

Analyze HTML in Python with BeautifulSoup

Objective: I'm trying to show a list about the specific names of the website https://www.screwfix.com/c/tools/angle-grinders/cat830694 . For example: Get Titan TTB281GRD of the title of the link in this part: <div id=...
asked by 13.12.2017 / 00:10
1
answer

Problem with 'glob' in Python

Hello, I have a problem with glob , and it is that you are not giving me the files in an orderly way, it is a simple code: import glob filenames = glob.glob("C:\Users\LuisMiguel\Downloads\Faces\/*.jpg") filenames.sort() What gives me...
asked by 29.11.2017 / 01:40
1
answer

Search followers of a twitter account using python

Hi, I am trying to find the followers of a twitter account using python . What I did was this, but it looks for the users that I follow. And I only print one. I need you to print all FOLLOWERS of the account. Does anybody give me...
asked by 28.11.2017 / 16:12
1
answer

python and date loop

good, I am trying to create a vector that when entering a start and end date, dates are generated in between every 6 months and I can not do it in python :(. for example when I gave the input 01-01-2010 and 01-01-2012 I want the vector to contai...
asked by 19.11.2017 / 06:37
1
answer

Loguin API AOL Token

I'm looking to log in to a site through Python. I do not know how to do it since it is through its API, I leave here the information provided by the API to log me in. It is really necessary that you do it through python. I have logged through...
asked by 22.11.2017 / 17:19
1
answer

Reverse the bits of each byte of a string

I have a string byte generated by the Random module of the PyCrypto library in this way: c = Random.new().read(13) Now, I want to invert the value of the bits that make c with the unary operator ~ , but I can not do it because...
asked by 09.11.2017 / 15:39
1
answer

Dictionary Python call keys

I can not call my key name value. I get error: string indices must be integers, not str . I need if or if I use the for but I do not understand why I get that error diccionario = { "inventorysources":( { 'name': '...
asked by 09.11.2017 / 14:08