URL先にajaxでアクセスできるか、jsonpなどでhtml情報を返してくれる
APIを用意してもらってください
そうでなければアクセス先ではCORSの制約でソースを取得できないように
している=つまりアクセスを許可していないと理解できます
sample
ajaxで外からhtmlを取得できるなら
javascript
1<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
2<script>
3$(function(){
4 $.ajax({
5 url:"http://exsample.com",
6 dataType:"html",
7 }).done(function(html){
8 var want=$(html).filter('.fuga').map(function(){return $(this).text();}).get();
9 console.log(want);
10 });
11
12});
13</script>
追記
javascript
1$(function(){
2 $.ajax({
3 url:"http://exsample.com",
4 dataType:"html",
5 }).done(function(html){
6 var want=$(html).filter('.fuga').map(function(){return $(this).attr('href');}).get();
7 console.log(want);
8 });
9});
HTML
1<html>
2<body>
3<a href="aaa.html" class="hoge">hoge</div>
4<a href="bbb.html" class="hoge fuga">hoge fuga</div>
5<a href="ccc.html" class="fuga">fuga</div>
6</body>
7</html>