Posts by guilherme • 105 points
15 posts
-
0
votes1
answer543
viewsQ: Configure HTML table using python’s Django for structure
I’m making a table through 3 lists generated in the views, but I can’t leave the table configured correction in html, would be 3 columns and 60 lines, but they are not adjusted correctly, follow my…
-
0
votes0
answers41
viewsQ: Improving python-generated table visuals with Django and bootstrap
I have a table that I Gero through the python prettytable, it generates a variable that contains a table, I send this variable to the Jango template and it is all disfigured, could I improve her…
-
1
votes1
answer231
viewsQ: Python file batch problem when activating windows task manager
I made a batch file to run a small script in python, it works normally, but when I use windows task scheduler to trigger the batch at a specific time it presents the following error: Where you say…
-
2
votes2
answers739
viewsQ: return python function variable
I have a function that returns several values, and I wanted to pass two of them out of the function, but when I try it returns that the variable outside the function has not been declared. To…
-
1
votes3
answers627
viewsQ: pass list of one method to another in python
I have two functions, I need the list of the first to be read by the second, the two are in a view of Django, that each generates a different template. class Tranfer: shared = [] #Essa proprieda…
-
0
votes1
answer445
viewsQ: Communicate template with view
I have a Django project where I ask the user to enter two dates (initial and final), and through them I make a query in an external database, making an input works, but wanted to take this…
-
0
votes1
answer994
viewsQ: Intelbrass cameras with python
I wonder if it is possible to take images of an intelbrass camera through ip by python, I searched a lot and found nothing, the code that came closest was this one: import cv2 cap =…
-
-1
votes1
answer222
viewsQ: Put except with bug name in python
I need to create a Try except, with two excepts, but do not know how to put the specific error in the first except, the error that appears this below, someone could help me? raise…
-
0
votes1
answer1501
viewsQ: Run python code via batch in the anaconda cmd
I have a batch created to run a python file, but it is opening the windows cmd and since python is installed in anaconda, does not work, it would run directly from the anaconda cmd as administrator?…
-
1
votes0
answers458
viewsQ: Problem with Python Selenium
I made a program to download 64 invoices, it goes well up to the ninth, but when Lenium arrives in it stops clicking without error all Elif take a different id and perform the same action with it,…
-
-1
votes1
answer611
viewsQ: Renaming files with date in python
I would like to rename files from one folder and send them to another one, but I wanted it to contain the date or at least put a number after the name if I already had one. The code is this below,…
-
0
votes1
answer1242
viewsQ: Change the download name Selenium python
I am downloading a pdf through the automatic navigation through the site, for this I disabled the pdf view of Chrome and activated to download the pdf automatically, could I change the name of this…
-
2
votes1
answer3380
viewsQ: Wait page for python Selenium
I created a program to log in to the site, but it loads very slowly when it opens, and for that I need to put Sleep(40), which waits 40 seconds to open, but sometimes it takes 50 seconds and error…
-
-1
votes1
answer2007
viewsQ: Problem click python botan Selenium
I’m having trouble clicking a button, I tried it this way gives Elementnotvisibleexception: Message: element not interactable error pdf = driver.find_element_by_xpath('//*[@class="btn btn-default…
-
0
votes1
answer733
viewsQ: Scrapy for login
I took this code from the internet and changed it a little, to log in to the cpfl site, but when I use the command scrapt crawl myproject nothing happens and the command scrapy runspider items.py of…