I need to get text found within a span, within a div, within a div, etc. in another website (cross-domain)
After hours and hours of researching, I still have not been able to get anything to work. As of right now, this is what I have:
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
</head>
<body>
<div id="thisdiv"></div>
<script>
$.get( "http://landnstemacademy.blogspot.com/", function( data ) {
$( "#Blog1" )
$("span:contains('Quote of the day')")
.contents()
.filter(function(){
return this.nodeType !== 3;
})
.clone().prependTo( "#thisdiv" );
}
</script>
</body>
I am very new to jquery, so please excuse me if I'm way off track. Any help at all is very appreciated.
Also, is there any way to specify "an element after a specified element"? I need to get the contents of an element after this one, but it's not as unique.
If needed, the website is http://landnstemacademy.blogspot.com/
EDIT: I believe I may have read somewhere that some sort of method involving json can get around these "anti-cross-domain" rules. Would that work here? Can that get text? I want to also note that if all possible, I would like to constrain all code to one file (no extra files files for php), but I understand if this makes it too difficult/impossible for whatever reason. Thank you again.