If the correct place for this question is not here, please just let me know where I should do it and I'll delete it!
According to this question:
Tag feeds do not generate `Newest` questions in Slack
I'm trying to reproduce via RSS the answer from this page (I created this URL with test filters with numerous tags to make sure there are always new questions asked in a few seconds):
But when using this RSS-oriented URL:
url = 'https://stackoverflow.com/feeds/tag?tagnames=google-sheets-formula+or+python+or+javascript+or+google-apps-script+or+css+or+java+or+jquery?sort=Newest&filters=NoAnswers'
I get questions that were asked even days ago when I'm actually trying to get the real-time (I don't get any URL with a question that was asked in a few seconds, as it should appear) feed of new questions that haven't been answered yet.
How should I proceed?
Additional information after answer posted by Andrew T. (https://meta.stackoverflow.com/a/418000/11462274):
My Code:
import feedparser
from time import sleep
import sys
def main():
while True:
url='https://stackoverflow.com/feeds/tag?tagnames=google-sheets-formula+or+python+or+javascript+or+google-apps-script+or+css+or+java+or+jquery&sort=newest'
data = feedparser.parse(url)
i=0
while i < len(data):
sof = data['entries'][i]['published']
print(sof)
i=i+1
for remaining in range(10, 0, -1):
sys.stdout.write('\r')
sys.stdout.write('next activation in {:2d} seconds'.format(remaining))
sys.stdout.flush()
sleep(1)
sys.stdout.write('\r ')
if __name__ == '__main__':
main()
Response:
2022-05-11T14:28:36Z
2022-05-11T14:28:29Z
2022-05-11T14:28:17Z
2022-05-11T14:27:16Z
2022-05-11T14:27:11Z
2022-05-11T14:26:40Z
2022-05-11T14:26:21Z
2022-05-11T14:25:24Z
2022-05-11T14:24:37Z
2022-05-11T14:24:35Z
2022-05-11T14:24:34Z
2022-05-11T14:28:36Z
2022-05-11T14:28:29Z
2022-05-11T14:28:17Z
2022-05-11T14:27:16Z
2022-05-11T14:27:11Z
2022-05-11T14:26:40Z
2022-05-11T14:26:21Z
2022-05-11T14:25:24Z
2022-05-11T14:24:37Z
2022-05-11T14:24:35Z
2022-05-11T14:24:34Z
As seen, the questions published a few seconds or 1 minute ago do not appear, even if there are several of them.