This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lxml | |
import urllib | |
from lxml.html import fromstring | |
from lxml import etree | |
# vars | |
url = "http://www.makro.be/Content/assortiment/benzinestation/benzineprijzen/1/index.jsp?stat=0" | |
# methods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$oldSetting = libxml_use_internal_errors( true ); | |
libxml_clear_errors(); | |
$html = new DOMDocument(); | |
$html->loadHtmlFile( 'http://www.makro.be/Content/assortiment/benzinestation/benzineprijzen/1/index.jsp?stat=0' ); | |
$xpath = new DOMXPath( $html ); | |
$nodelist = $xpath->query('//div[@class="boxContent"]/table/tr[last()]/td[last()]'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name .svn -print0 | xargs -0 rm -rf |
NewerOlder