troubleshooting Question

Using Python, I want to pass a URL some json and get back data (imitating Podbean's jQuery (AJAX?) function)

Avatar of alex_smith
alex_smithFlag for Australia asked on
4 Comments1 Solution296 ViewsLast Modified:
Podbean pages display the number of downloads each episode has had (e.g. This appears to be generated dynamically with the following:
jQuery(function($) {

        url: "",
        success: function(result) {
            if(result.code =="200")
                $.each(, function(id,count){
                    id = id.replace(/\./g,"_");
                    if(count >0)
I've been trying to use "requests" in Python ( to get the number of "hits" but I don't know how to pass it json. My failed attempt was:
import requests

data = {"blogId":"63614","query":[{"file":"207_Field_Hospital.mp3","w":"ccb77541"}]}

r = requests.get("", json=data)
If "requests" can't do it, I'm open to doing it another way with Python...
Walter Ritzel
Senior Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros