How to alter code so it can download pdfs from other pdfs as well

I need to code something that takes in a URL or PDF and then downloads all the PDFs on that page. So far it works when I put in a webpage but inputting PDFs doesn't work. I have very little Python e

View details »

Ngrok fails to maintain the users' Sessions in Python Flask

I am using Flask Sessions in my Python 3.6 code to store users information. The site is working great when testing it locally and I am able to retrieve the information stored in the session. However

View details »

“SyntaxError: invalid syntax” : &gt , &lt, … replacement code?

I'm coding in Python 3 a crossover strategy for trading MSFT, I have input the following code and I'm getting a syntax error. Can you tell me what the correct code should be? I've tried changing &g

View details »

Is it possible to get numerical values from a Google trend plot in Python 3?

I would like to get the numerical values from different queries once plotted Google trends using Python 3. I am using three different queries (e.g. 'cat', 'dog', 'bird') and I would like to find s

View details »

SMTP command stuck in cmd prompt

I have installed Python 2.7 in widows 7. I am trying a basic smtp python program to automatically send mail through python script. But when I am running the script through cmd prompt, it is just st

View details »

Why doesn't the AP show up? Why is my MAC not anonymous?

In this example is the code to create an Answering Machine for Proberequests. The result is that the AP is showing up on a device. The following is my code. I had to change some things up to get it

View details »

Why is the code below resulting in an empty array? [duplicate]

Long story short, I'm trying to create an Instagram python scraper, that loads the entire page and grabs all the links to the images. I have it working, only problem is, it only loads the original 1

View details »

How to categorise javascript erros produced on shopping website?

I am new to machine learning and trying to solve one of my problem through ML, in which I need to categorise errors produced on website during testing for example javascript error - session timed ou

View details »

I have a problem creating a session with requests

I'm trying to create a session with the requests library, and I am almost sure that everything is fine with my code, but it still login as a guest, and not using the username and password that I giv

View details »

How can I match exact word of text using reg.compile

I want to find a pattern (WITH RE.COMPILE) for the exact words like this, Imagine such words [aether, altitude, aphelion, west] which kind of capture word or word with punctuation, In a way that

View details »

Error when opening 4GB txt file with Python

I got a problem opening a 4GB txt file with python, I try opening the file with: with open("C:\XXX.txt", 'r', encoding='utf-8-sig') as infile: for l in infile: print(line) It doesn't

View details »

How can I convert my python slider to a javascript/jquery slider so I change my image dynamically?

Right now I am using flask to display an uploaded image and using a python slider to adjust the value in the gamma functionality I have in my script. The slider works successfully but I have to re

View details »

Getting error message: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) while trying to access an API

I'm trying to build a dataframe of crypto prices from Huobi's API and I'm getting a JSON error message that I have never seen before. I begin by getting all the symbols from the API, I next define

View details »

No error, but unable to insert row in a table

Hi I have been working on a flask web app, It has many tables with relation among themselves. One table is users_email. +---------+------------------+ | user_id | email | +---------+----

View details »

How to decompile clickteam executable to source mfa file?

I had a problem when I tried to decompile a program made by clickteam fusion devrloper 2.5. I use: Python 2.7.9, Microsoft visual c++ compiler for python, Anaconda 3. When I try to decompile progra

View details »

How to mock properly classes and methods from imported modules

I'm trying to create some unitary tests for a method that needs to instantiate some objects using classes from external modules that I don't want to use, as they need arguments that I can't pass at

View details »