1
0
Fork 0
forked from blallo/rss-bridge

Merge pull request #465 from JeremyRand/duckduckgo-fix-redirect

[DuckDuckGoBridge] Disable redirects
This commit is contained in:
Teromene 2017-02-01 10:15:57 +00:00 committed by GitHub
commit cf909ef3a1

View file

@ -27,7 +27,7 @@ class DuckDuckGoBridge extends BridgeAbstract{
));
public function collectData(){
$html = getSimpleHTMLDOM(self::URI.'html/?q='.$this->getInput('u').$this->getInput('sort'))
$html = getSimpleHTMLDOM(self::URI.'html/?kd=-1&q='.$this->getInput('u').$this->getInput('sort'))
or returnServerError('Could not request DuckDuckGo.');
foreach($html->find('div.results_links') as $element) {