Skip to content

Commit

Permalink
parse json for this proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
publicsite authored Nov 2, 2024
1 parent aa5cd99 commit 3d7b5c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions J05HYYY/ukNewsAggregator.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ <h2>All News:</h2>
newurl = 'http://www.whateverorigin.org/get?url='
url = newurl + encodeURIComponent(strURL) + '&' + 'nocache=' + Date.now();

str = await fetchFunction(url);

copiedstr = await fetchFunction(url);
//str = copiedstr
str = toString(JSON.parse(copiedstr).contents);

myobj = x2js.xml_str2json(str);
//alert(myobj.rss.channel.item.length);
for (i=0; i < myobj.rss.channel.item.length; i++)
Expand Down

0 comments on commit 3d7b5c1

Please sign in to comment.