Title: Scraping a Javascript Var?
Last modified: August 21, 2016

---

# Scraping a Javascript Var?

 *  [IOIIOOO](https://wordpress.org/support/users/ioiiooo/)
 * (@ioiiooo)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/scraping-a-javascript-var/)
 * Is there any way to scrape a javascript variable set in the source of another
   page?
 * For example:
 * <script language=”JavaScript”>
    <!– // var dTotal = “158997”; var currencysymbol
   = “$”; // –> </script>
 * I want to scrape the value of dTotal that is set here explicitly in the HTML.
 * [http://wordpress.org/extend/plugins/wp-web-scrapper/](http://wordpress.org/extend/plugins/wp-web-scrapper/)

The topic ‘Scraping a Javascript Var?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-web-scrapper.svg)
 * [WP Web Scraper](https://wordpress.org/plugins/wp-web-scrapper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-web-scrapper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-web-scrapper/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-web-scrapper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-web-scrapper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-web-scrapper/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [var](https://wordpress.org/support/topic-tag/var/)

 * 0 replies
 * 1 participant
 * Last reply from: [IOIIOOO](https://wordpress.org/support/users/ioiiooo/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/scraping-a-javascript-var/)
 * Status: not resolved