I just tried that URL but it exhibits similar behavior as the https://retrieve.pskreporter.info URL, i.e., it brings up an informational
home page in the browser but it does not allow a query. What I want to do is to issue a query like the following: curl http://mqtt.pskreporter.info/spot?call=K1ABC When I do that I get a 404 Not Found, like it is looking for a web page instead of issuing a query. From: Philip Gladstone via wsjt-devel <[email protected]> Sent: Monday, December 29, 2025 2:07 PM To: WSJT software development <[email protected]> Cc: Philip Gladstone <[email protected]> Subject: Re: [wsjt-devel] PSKReporter query What are you actually trying to do? See if the http://mqtt.pskreporter.info interface gives you what you want. Philip On Mon, Dec 29, 2025 at 6:06 PM grday--- via wsjt-devel <[email protected] <mailto:[email protected]> > wrote: I am hoping someone can offer a suggestion for querying the PSKReporter via the API, ideally from either Python or curl. I have attempted to do so in a number of ways with a variety of user agent specifications, but I mostly get a response of "403 forbidden" replies. I have one URL/query that, when issued within MS Edge or Chrome obtains the XML object in the browser, but when I tried invoking the same query from a headless browser via the Python selenium package it fails. Similar attempts using curl have also failed. As background, I am the developer of an application called Spots. It is intended as a companion program to WSJT-x, specificly for blind users. I want to offer Spots users a capability of retrieving real time information about specific call signs, e.g., whether a station is currently active and, if so, on what frequency. I want to offer that capability from within the application. Again, I have tried a number of approaches, below is my attempt with the Python selenium package. from selenium import webdriver from selenium.webdriver.edge.options import Options from selenium.webdriver.edge.service import Service from webdriver_manager.microsoft import EdgeChromiumDriverManager options = Options() options.add_argument("--headless") options.add_argument("--disable-gpu") driver = webdriver.Edge( service=Service(EdgeChromiumDriverManager().install()), options=options ) url = ( https://retrieve.pskreporter.info/query?rronly=1 <https://retrieve.pskreporter.info/query?rronly=1&[email protected]&flowStartSeconds=-300> &[email protected]&flowStartSeconds=-300 ) driver.get(url) xml_text = driver.page_source with open("pskreporter.xml", "w", encoding="utf-8") as f: f.write(xml_text) driver.quit() print("Saved pskreporter.xml") Any suggestions will be much appreciated. _______________________________________________ wsjt-devel mailing list [email protected] <mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
_______________________________________________ wsjt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wsjt-devel
