#8 Navigation doesn't work

오픈
jorgesumle8 년 전을 오픈 · 3개의 코멘트

We can't go to next or previous result page.

There should be a way to specify DuckDuckGo we want to go to the second (third and so on) results page building a URL. How can we do that?

We can't go to next or previous result page. There should be a way to specify DuckDuckGo we want to go to the second (third and so on) results page building a URL. How can we do that?
Jorge Maldonado Ventura 코멘트됨, 8 년 전
소유자
https://github.com/jarun/ddgr/issues/3
Jorge Maldonado Ventura 코멘트됨, 7 년 전
소유자
from urllib.parse import urlencode
from urllib.request import Request, urlopen

url = 'https://duckduckgo.com/html'
post_fields = {'q': 'hola', 's': '30', 'nextParams': '', 'v': 'l', 'o': 'json', 'dc': '31', 'api': '/d.js', 'kl': 'us-en'}

request = Request(url, urlencode(post_fields).encode())
json = urlopen(request).read().decode()
print(json)

Here is some code to make POST requests to DuckDuckGo. I'm not sure how to make it work as I want though. I'm not sure what 'dc' and 's' mean.

``` from urllib.parse import urlencode from urllib.request import Request, urlopen url = 'https://duckduckgo.com/html' post_fields = {'q': 'hola', 's': '30', 'nextParams': '', 'v': 'l', 'o': 'json', 'dc': '31', 'api': '/d.js', 'kl': 'us-en'} request = Request(url, urlencode(post_fields).encode()) json = urlopen(request).read().decode() print(json) ``` Here is some code to make POST requests to DuckDuckGo. I'm not sure how to make it work as I want though. I'm not sure what 'dc' and 's' mean.
Jorge Maldonado Ventura 코멘트됨, 7 년 전
소유자

Now navigation works up to result 30: eeecd17d2a.

Now navigation works up to result 30: https://notabug.org/Ducker/ducker/commit/eeecd17d2aa1eaf89872c53447af09678cc6ab2a.
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.