FWIW, this version of the retrieve URL works consistently well for me:
    curl -s -d "senderCallsign=<CALLSIGN>"
https://retrieve.pskreporter.info/query
I'm interested only in retrieving results for one callsign, not exactly
what you're after, if I understand you correctly.  I invoke it from within
C code but it works equally well from a bash terminal.

Hope this helps,
Thomas Reynolds

On Mon, Dec 29, 2025 at 10:07 AM grday--- via wsjt-devel <
[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&[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]
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
>
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to