Login Register




Chatgpt prompt: Hacxx RSS Obtainer filter_list
Author
Message
Chatgpt prompt: Hacxx RSS Obtainer #1
Chatgpt prompt: Hacxx RSS Obtainer

Fix this code, I want to parse the domain on multiple filepaths and get the rss content. All in js. user write a domain and the script return on output_div the full path if it found the rss

<div id="output_div"></div>
<script>
var keyword = prompt("Type the forum domain:", "");

var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {
var myObj = JSON.parse(this.responseText);
var output = '';
for (x in myObj.items) {
output += '<p>' + myObj.items[x].title + '<br><a href="' + myObj.items[x].link + '" target="_blank">Click here to view...</a></p>';
}
document.getElementById('output_div').innerHTML = output;
} else if (this.status == 0) {
document.getElementById('output_div').innerHTML = '#';
} else if (this.status == 404) {
document.getElementById('output_div').innerHTML = '#';
} else if (this.status == 500) {
document.getElementById('output_div').innerHTML = 'Error 500: Internal Server Error';
} else if (this.status == 429) {
document.getElementById('output_div').innerHTML = 'Error 429: Too Many Requests';
} else {
document.getElementById('output_div').innerHTML = 'An error occurred. Status code: ' + this.status;
}
}
};
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=https://"+keyword+"/syndication.php?limit=15", true);
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=https://"+keyword+"/forums/-/index.rss", true);
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=https://"+keyword+"/discover/1.xml/", true);
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=https://"+keyword+"/feed/", true);
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=https://"+keyword+"/feed.php", true);
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=http://"+keyword+"/forum/external.php", true);
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=https://"+keyword+"/community/external.php", true);
xmlhttp.open("GET", "https://api.rss2json.com/v1/api.json?rss_url=https://"+keyword+"/discover/all.xml/", true);
xmlhttp.send();
</script>

Reply







Users browsing this thread: 12 Guest(s)