basehref auto correction and a_target

Fetch US Market Indices from reuters.com and make sure links and image sources are not broken.

[wpws url='http://www.reuters.com/finance/markets' query='#tab1 table.dataTable' a_target='_blank']
<?php echo wpws_get_content(‘http://www.reuters.com/finance/markets’, ‘#tab1 table.dataTable’, array(‘a_target’ => ‘_blank’)); ?>
Error parsing: Query returned empty response

2 thoughts on “basehref auto correction and a_target

  1. Ump says:

    I dont see where you’re doing anything with basehref.
    for example: how would you change the entire scrape URL using basehref?
    The following doesn’t seem to work changing “reuters.com” to “yahoo.com” and your example isn’t clear.

    ‘_blank’), array(‘basehref’ => ‘http://yahoo.com’)); ?>

Leave a Reply