Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Querying a web database
#3
Hi,

I too have spent many hours struggling with API's. You may conclude that there is no rhyme or reason to how they work...... (ok there probably is but...)

If you look at the "header" for "r" then this may work for you. Try adding this line after the requests.get call.

 r = r.headers
The value of "r" should give you the response from the API call.

Let me know if this does not work or if you have difficulties with the next stage of the script.

Good Luck

Bass

"The good thing about standards is that you have so many to choose from" Andy S. Tanenbaum
Reply


Messages In This Thread
Querying a web database - by SimpleGuy - Aug-18-2017, 06:58 PM
RE: Querying a web database - by snippsat - Aug-18-2017, 07:22 PM
RE: Querying a web database - by SimpleGuy - Aug-18-2017, 08:25 PM
RE: Querying a web database - by Bass - Aug-18-2017, 07:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic SQL query using Py: Inserting or querying sqlite3 database not returning data marlonbown 3 1,562 Nov-08-2022, 07:16 PM
Last Post: marlonbown
  Fastest Method for Querying SQL Server with Python Pandas BuJayBelvin 7 7,221 Aug-02-2020, 06:21 PM
Last Post: jefsummers
  Recommendations: Querying CSV / Database?? ironfelix717 2 1,728 Apr-01-2020, 12:13 PM
Last Post: ndc85430
  Text Entry and Querying CSV whacky7 4 3,145 Mar-28-2019, 11:19 AM
Last Post: whacky7
  Querying cvs excel files rturus 6 3,637 Mar-27-2019, 02:08 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020