Title: Webscrape plugin
Last modified: August 21, 2016

---

# Webscrape plugin

 *  [timo.koerner](https://wordpress.org/support/users/timokoernerfernuni-hagende/)
 * (@timokoernerfernuni-hagende)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/webscrape-plugin/)
 * I have scrape in action [here](http://konzertagentur-koerner.de/Timo/?page_id=386)
   using the wp web scraping plugin written by Akshay.
 * Looking into the ‘phpquery one file’ code on google (basis of the plugin), I 
   find in the markup function, approx. line 700, towards the end of the domdocumentwrapper
   class the following loop:
 *     ```
       foreach($nodes as $i => $node)
       if ($node->isSameNode($this->root)) {
       //	var_dump($node);
       $nodes = array_slice($nodes, 0, $i)
       + phpQuery::DOMNodeListToArray($node->childNodes)
       + array_slice($nodes, $i+1);
       }
       ```
   
 * Looking at my scrape example again (see link above), there are no line breaks
   of the scraped sports website.
    However, in the above function there is no echo.
   How can I manage to use the wp scraper plugin with line breaks?
 * Furthermore I never saw “+” in php for concatenation, only the dot.
 * Thanks.

The topic ‘Webscrape plugin’ is closed to new replies.

## Tags

 * [curl](https://wordpress.org/support/topic-tag/curl/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [scraping](https://wordpress.org/support/topic-tag/scraping/)

 * 0 replies
 * 1 participant
 * Last reply from: [timo.koerner](https://wordpress.org/support/users/timokoernerfernuni-hagende/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/webscrape-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
