mirror of https://github.com/danoloan10/rss-bridge
[DuckDuckGoBridge] Disable DuckDuckGo redirects so that the links returned are correct.
This commit is contained in:
parent
44c7cbe2d7
commit
94d2ebec0a
|
@ -27,7 +27,7 @@ class DuckDuckGoBridge extends BridgeAbstract{
|
||||||
));
|
));
|
||||||
|
|
||||||
public function collectData(){
|
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.');
|
or returnServerError('Could not request DuckDuckGo.');
|
||||||
|
|
||||||
foreach($html->find('div.results_links') as $element) {
|
foreach($html->find('div.results_links') as $element) {
|
||||||
|
|
Loading…
Reference in New Issue