Hello,
We apologize for the issue you are facing. Unfortunately, the context does not provide specific instructions on changing the sitemap format from XML to JSON using shell code.
If you need to extract URLs from your sitemap, you might consider accessing the sitemap directly at `https://rankmath.com/wp-content/uploads/2023/01/add-code-wp-super-cache.jpg and then parsing the XML to convert it into JSON format using a script or tool of your choice.
For further assistance, please reply to this ticket, and a human agent from the Rank Math Support team will be able to help you with your request.
Thank you for raising your concern!
I need to read all the URLs in the sitemap of my website into a variable through a shell script and loop through them until I iterate through all the URLs, what should I do? Or another, what should be done by reading the most recent article address in the sitemap into a variable? After that, I can do some further things with the URL, such as making a get-by-one request to the URL
I tried to find some online ways, But I don’t find one can implement this function
Hello,
Thank you for contacting support.
That custom implementation is outside the scope of our support. You would need to consult with an experienced developer familiar with our plugin to be able to implement a custom solution like that to read the sitemap data.
Don’t hesitate to get in touch if you have any other questions.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.