Posts by stack.cardoso • 417 points
62 posts
-
0
votes2
answers126
viewsA: Generate executable with more than one file . py
I can help you? install Pyinstaller via Pip: SOURCE Pip install Pyinstaller and via terminal or command readiness (cmd) type this instruction: pyinstaller -F -w arquivoPYTHON.py…
-
0
votes2
answers56
viewsA: variable is not saved in programming
your class Screendice(Screenrecord) is not referencing the object of the main class and because of this detail the "Character" is not defined as it was not called as expected
pythonanswered stack.cardoso 417 -
0
votes2
answers56
viewsA: variable is not saved in programming
That one Character is not defined. It’s just a loose word. as if I wanted to access something that doesn’t exist. example of error. Python 3.8.3 (default, Jun 16 2020, 17:59:42) [GCC 7.5.0] on linux…
pythonanswered stack.cardoso 417 -
0
votes2
answers40
viewsA: I cannot update information in the bank
Hello. One idea is to recover the values on a... update.html page I would create a function that would pick up by id from django.shortcuts import render def updateReservar(request,reservar_id):…
djangoanswered stack.cardoso 417 -
0
votes1
answer42
viewsA: Use arguments in a function from another function
Hello, I’ll try to help you :) For python this "array=[ ]" is actually a list >>> type([]) ===:> class list When indicating a file you can pass directly to a loop. I imagine this file…
-
0
votes1
answer239
viewsA: change user-agent in python webdriver Selenium during navigation
Browse with user-agent mobile but don’t change the user-agent to mobile Could use the Radom for each interaction change. import user_agent_list = ["Mozilla/5.0 (Linux; U; Android 4.3; de-de;…
-
0
votes2
answers769
viewsA: JSON request on Instagram
Hello sorry for the delay. yes can access instagram by python, requests tbm does authentication. Just not tried using , but in theory and explanations doc informs that it is possible. readthedocs…
-
0
votes2
answers769
viewsA: JSON request on Instagram
Hello! I think everything so far is correct in your code. Your browser has the credentials try to play this url path in an anonymous tab, where it does not cache or disable the browser cache and try…
-
0
votes1
answer181
viewsA: Load a variable from a file with module. Django/Python
From what I understand (if it is not correct tell me), The code that imports openpyxl ,in it there is an input function, will be a search in the file BD2.xlsx, when calling this module will be made…
-
-1
votes2
answers1533
viewsA: Read python PDF file
I looked at your code and there was nothing wrong, compared to what I wrote. import Pypdf2 pdf_file = open('/home/Unix-power/Documents/Devs/PDF_/P1.pdf', 'Rb') read_pdf =…
pythonanswered stack.cardoso 417 -
1
votes1
answer194
viewsA: Django returning wrong time in the template, why?
The documentation explains this definition: Internationalization https://docs.djangoproject.com/en/2.0/topics/i18n/ To show the date and time of South America just edit the settings.py:…
-
-2
votes1
answer421
viewsQ: scraping google
Regards I am writing a script in python3 to perform news searches and tbm images... and created queries for Bing google using Apis mechanicalsoup and requests. the case is over with google, after a…