WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Web Scraper] Update broke javascript calculation (2 posts)

  1. moebis
    Member
    Posted 4 years ago #

    I used to pull in a stock quote from finance.yahoo.com and run a calculation against the pulled data. The shortcode doesn't seem to run inside the javascript anymore, since I updated your plugin from a previous version. I don't think it likes the "brackets" in the shortcode, not sure. Below is an example:

    <script type="text/javascript">// <![CDATA[
    a = [wpws url="http://finance.yahoo.com/q?s=GORO.OB" selector="table:eq(0) td:eq(0)"]
    b = 1.00
    c = Math.round(((a-b)/b)*100)
    document.write(c)
    // ]]></script>

    http://wordpress.org/extend/plugins/wp-web-scrapper/

  2. Akshay Raje
    Member
    Posted 4 years ago #

    @moebis

    You may use debug="0" to turn off the debug information and hence make the scrap JS compatible

Topic Closed

This topic has been closed to new replies.

About this Topic