forked from blallo/rss-bridge
Merge pull request #465 from JeremyRand/duckduckgo-fix-redirect
[DuckDuckGoBridge] Disable redirects
This commit is contained in:
commit
cf909ef3a1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue