Questions tagged [python-requests]

USE ONLY FOR THE PYTHON REQUESTS LIBRARY. Requests is a full-featured Python HTTP library with an easy-to-use, logical API.

-2 votes
0 answers
10 views

Can't do requests after flask app has started [duplicate]

I'm new to python and i have set up a simple flask server but I'm trying to run requests after the flask app has started. My problem is that the requests don't start after the flask app has started ...
user avatar
1 vote
2 answers
30 views

Python request.get error on wikipedia image url

Requests.get() does not seem to be returning the expected bytes for wikipedia image urls such as this https://upload.wikimedia.org/wikipedia/commons/0/05/...
user avatar
0 votes
0 answers
15 views

What is blocking my requests from successfully logging in?

So im using requests to login into netflix (education purposes only) and when i print the response text it keeps bringing back the same thing even when i have a valid netflix account, what is blocking ...
user avatar
  • 3
0 votes
3 answers
40 views

Python requests get stuck when trying to get web content

I want to get the prices from this instrument on this webpage: http://www.nasdaqomxnordic.com/etp/etf/etfhistorical?languageId=3&Instrument=SSE500 Normally the requests.get does the trick, but for ...
user avatar
  • 3
0 votes
1 answer
17 views

I am trying to navigate through the pages of a website and scrape its links but the same page data is scraped even after changing page number

from bs4 import BeautifulSoup import requests import pymongo def traverse_source(): article_links = [] for pgindx in range(9): headers = { 'User-Agent': 'Mozilla/5.0 (...
user avatar
0 votes
0 answers
19 views

Download file from API server

I need to upload a file to the system from the API server. post method, the server accepts an authorization token and a file id. I tried to do this by writing to a file(.write(responce.content)), but ...
user avatar
-1 votes
0 answers
21 views

Why cant I copy soundcloud.com with pywebcopy

Im trying to copy a music site called soundcloud.com with python. Im using pywebcopy but it just gives errors on the site. Can someone help me plz? from pywebcopy import save_website save_website( ...
user avatar
1 vote
1 answer
34 views

python bs4 ignore crawl mailto links

i am trying since yesterday to find out to ignoring 'mailto://' and 'mailto:' links with beautifulsoup and requests. my code: for link in links: if not link.startswith('mailto://'): ...
user avatar
0 votes
0 answers
24 views

python3 request POST times out when calling Azure function app

I have a python program that reads a file and posts the data to an Azure function app. Over the past few weeks, I have started noticing this error in the logs. This program is about a year old and has ...
user avatar
  • 307
0 votes
2 answers
41 views

How to handle arbitary number of returns from Scraping requests in Python, Bs4

I am trying to scrape a webpage Realtor and I am succesful in doing so by using Requests, BS4 but the main problem is sometimes it returns me 1 or sometimes 2 depending if the item is present in ...
user avatar
0 votes
0 answers
13 views

Python requests library in ArcGIS Server

I am trying to send a https request to a Planet's API using python requests library, the service is allowed in ArcGIS Server, the following request works in postman: import os import requests os....
user avatar
0 votes
0 answers
36 views

How can i make http requests via selenium

Im using selenium in python to automate websites, and on one of my websites on foot size pick i noticed there is no < button > element i can click on and that i have to make 'GET' request to the ...
user avatar
0 votes
0 answers
39 views

How can i resolve the captcha on Instagram

I want to send reset link to email adresses but i can't pass the captcha. I have a capmonster account to resolve captchas, tried Selenium before but i couldn't. This is my code: import requests import ...
user avatar
  • 1
-1 votes
1 answer
28 views

I can´t see an image after downloading it from request (PIL)

Can anyone help me with this problem? I have this URL, which holds an image of a motorcycle. When I download it from request and then try to open it with Image.open(), I received the following error. ...
user avatar
1 vote
1 answer
21 views

python requests synchronous callback

I am using the python requests library to download data from a web server e.g: import requests fname = 'guppy-0.1.10.tar.gz' url = 'https://pypi.python.org/packages/source/g/guppy/' + fname r = ...
user avatar
  • 3,779

15 30 50 per page
1
2 3 4 5
1340