This commit is contained in:
Kovid Goyal 2017-03-01 21:38:37 +05:30
parent 8c8c3dad3f
commit 98a6916854

View File

@ -114,7 +114,7 @@ def ddg_search(terms, site=None, br=None, log=prints, safe_search=False, dump_ra
def ddg_develop(): def ddg_develop():
br = browser() br = browser()
for result in ddg_search('heroes abercrombie'.split(), 'amazon.com', dump_raw='/t/raw.html', br=br): for result in ddg_search('heroes abercrombie'.split(), 'www.amazon.com', dump_raw='/t/raw.html', br=br):
if '/dp/' in result.url: if '/dp/' in result.url:
print(result.title) print(result.title)
print(' ', result.url) print(' ', result.url)