Skip to main content

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.

5 votes
3 answers
578 views

From my previous post, I tried to take into account all of the nice answers made by Kate, Chris, J_H, Booboo and mudskipper Changes made In short, I attempted to apply all of the following: API key ...
Chip01's user avatar
  • 687
8 votes
5 answers
1k views

Why I made it I’m building a voice assistant and thought it would be great if it could deliver news updates. What it does It cleans up the user’s query, determines whether it refers to a news category ...
Chip01's user avatar
  • 687
4 votes
4 answers
167 views

This code checks the Israeli Home Front Command API, and when there is a new alert for specific areas it sends a request to a Django app which I am hosting in the cloud. The Django app then sends a ...
Kovy Jacob's user avatar
4 votes
2 answers
144 views

Is there a way to improve this method that interacts with ADP's workforce-now API? 200: capture and parse JSON 204: return a None 400 and 403: return specific text from JSON others: throw an ...
craig's user avatar
  • 235
1 vote
2 answers
179 views

I'm trying to access an API using the requests library in as clean a manner as possible. The API is accessing various settings of various devices. I'd like to keep my code as readable and ...
Floriancitt's user avatar
4 votes
2 answers
978 views

I wanted to make a small self-integrated API for my PyQt5 application. This class is a tiny chunk of the whole project: ...
KhodeNima's user avatar
  • 419
1 vote
0 answers
2k views

I am taking beginner steps into DE and was tinkering with writing an ingestion script which does the following tasks: Reads data from a source (in this case a remote parquet file) Writes it to local ...
av abhishiek's user avatar
3 votes
1 answer
83 views

I recently wrote a testing tool (called plink) for retrieving all the links from a website (and then retreiving links from the linked pages, and so on). Essentially,...
Jessica's user avatar
  • 910
4 votes
1 answer
158 views

I've struggled to make a small stock project for almost 5 hours (biggest one so far). The project is simple: I've chosen a stock (Tesla in my case) and I've decided to get a message on my phone with ...
biscuit_delicious's user avatar
1 vote
1 answer
241 views

I am making a program that parses profiles from a website. Some profiles are "public" and others are "private" with limited information. Public profiles contain a lot more data and ...
angel's user avatar
  • 35
5 votes
3 answers
2k views

I am using the requests library to make requests to an API. However, I am not sure how to handle different status codes. I am particularly interested in handling ...
heuristic_type's user avatar
1 vote
0 answers
502 views

I am a beginnner and have put up a code that talks to pagerduty API and then it fethces oncall info for a team (get team id, get escalation policy id, then finally get on call info). response is ...
AhmFM's user avatar
  • 131
2 votes
1 answer
111 views

Looking for a more efficient way of achieving this. In particular the combine_all_rss_lists so I don't need all those params. Feedparser module doesn't accept lists which is why I've had to initially ...
Luca's user avatar
  • 67
3 votes
1 answer
70 views

On last test, the below code takes approximately 10 seconds to download then print the data from 10 url's. I wish to speed this up as much as possible as later on I plan to expand this further and use ...
Luca's user avatar
  • 67
2 votes
1 answer
184 views

I've written a small script for Zabbix to check the status of our ESXi Hosts. The request needs to be authenticated, so I went for this process: Read auth token from file If file does not exist, ...
Gerald Schneider's user avatar

15 30 50 per page