F
F
frees22015-01-28 13:21:10
Google
frees2, 2015-01-28 13:21:10

Google has banned receiving non-cached rss news, how to bypass?

Tale about kolobok and google news reader.
I had a wonderful rss reader, loaded instantly, did not load the server.

$.ajax({url:'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num='+def.MaxCount+'&output=json&q='+encodeURIComponent(def.FeedUrl)+'&callback=?',  dataType:'json'................
...............


function list(array_list){$("#txtUrl").html(" ");  $(array_list).each(function (i) { v= i + 1; 
$("#txtUrl").append("<option  style=\""+array_list[i].style+"\" value=\""+array_list[i].sd+"&demon="+new Date().getTime()+""+v+"\">"+v+" "+array_list[i].display+"  </option>");   });   } }         );

This is how it works:
http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=5&output=json&q=http://feeds.nature.com/nature/rss/current?format=xml&demon=45423224

A simple problem, that cunning Google caches (in different ways and massively) and you can’t get new data, was solved stupidly elementary, inserted into the link of the rss stream
&demon="+new Date().getTime()+"
. This worked for 10 years!
But two days ago, Google finally forbade inserting links with a changed address (partially in the browser line, but not in the script), which allowed you to receive the latest rss feed updates, now you can only get cached ones.
How to decide?
CURL in php, or is it possible to write it somehow cleverly in javascript?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
frees2, 2015-01-29
@frees2

Thank you, I solved the problem myself, this is not Google, but censorship, it processes the link and caches some of the resources, including habrahabr and even geeks ... I decided, I change the original link, it perceives https as another, that is, it does not decrypt, apparently.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question