javascript - Stripping content from a website to my website -


i trying make website stream wiki page , take content down page.

before saying illegal scrape website, mind wiki site, , under each page of site, there is:

content available under attribution-noncommercial-share alike 3.0 unported.

meaning free use , reuse info provided me.

this wiki page: http://wiki.mabinogiworld.com/

basically trying make website take server online status table directly , put webpage, @ same time want keep updated, have re-get table next time webpage refreshed.

with this, faced cross domain issue , found related yql seems able me, still cant figure out.

this did far:

yui().use("yql", function (y)  {     var query = 'select * html url="http://wiki.mabinogiworld.com/" , xpath="//div/table"';      y.yql(query, function(results)      {         var temp;         var size = 0;         temp = results.query.results.table;         size = temp.length;          (var = 0; < size; i++)          {             //loop through result , find exact table want         }     } } 

with above code (the loop messy cut out) able exact table want sub columns , rows, returned in structure have no idea how translate html.

what can table wiki page , put onto webpage? , variable type of "results" anyways? cant seems use in ways other access.

thank you.

try doing posted here: yql json script not returning?

basically makes ajax possible of yql

source: http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-cross-domain-ajax-request-with-yql-and-jquery/


well, if want keep formatting , style of table, make own table, , put own style onto it, , extract info out of yql , start populating table. way done method. yql useful, started playing bit , find powerful.

not sure if violate copyright rules or not though, since indeed reusing data in own format.


Comments

Popular posts from this blog

Issues changing the value of an element in an array in matlab -

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -