Commit Graph

31 Commits

Author SHA1 Message Date
James Lu
e4d16257b6 DDG: support !bang links (redirects)
From: 1e7bfed72e
2020-05-15 11:19:32 -07:00
James Lu
ba04480405 DDG: rewrite _ddgurl() to return new and original request URLs
This uses utils.web.getUrlTargetAndContent(), which is specific to Limnoria and requires commit ProgVal/Limnoria@57b77a6725 or later

From: 2db371a9fa
2020-05-15 11:19:32 -07:00
James Lu
53318d142c DDG: show all lines of multiline zeroclick replies
Thanks to @nathan0 for pointing this out.

From: 0b0c1b59ab
2020-05-15 11:19:32 -07:00
James Lu
f5a53a1965 DDG: actually, return a list of tuples in search_core()
This abstraction makes it easier for depending plugins to filter out the data they actually need.

From: 4915b7713b
2020-05-15 11:19:32 -07:00
James Lu
828112eaa1 DDG: fix a typo in comments
From: 3729068633
2020-05-15 11:19:32 -07:00
James Lu
48b5016f41 DDG: rewrite to fix "max results" not working
From: 7a6e2f9f97
2020-05-15 11:19:32 -07:00
James Lu
30615a7284 DDG: abstract out a search_core(), as the LastFM plugin will use this later
From: 47bb74d7d9
2020-05-15 11:19:32 -07:00
James Lu
44b626df64 DDG: make _ddgurl() a static method
From: d332e73e48
2020-05-15 11:19:32 -07:00
James Lu
c92bc0ca0c DDG: expand redirect links in search results
Some links on DuckDuckGo's site are now shown going through a redirect service.
These links are in the format "/l/?kh=-1&uddg=https%3A%2F%2Fduckduckgo.com%2F" instead of simply being "https://duckduckgo.com", and we should decode these here.

From: 8187d51cef
2020-05-15 11:19:32 -07:00
James Lu
98600b26e8 DDG: fix wrong command name in README
[skip ci]
From: 22a4fb457d
2020-05-15 11:19:32 -07:00
James Lu
1806646be2 plugins: update my email
From: 177eefa0a3
2020-05-15 11:19:32 -07:00
James Lu
f9b83ac2de DDG: log search URL to DEBUG
From: 5431f25e0a
2020-05-15 11:19:32 -07:00
James Lu
950aec696e DDG: remove broken error catching (irc isn't in the _ddgurl namespace)
From: 52ec05a041
2020-05-15 11:19:32 -07:00
James Lu
35677548df DDG: strip Sponsored links from search results
From: e9edceb735
2020-05-15 11:19:32 -07:00
James Lu
0079333c80 Various plugins: README tweaks [skip ci]
From: 9324d78dee
2015-05-22 21:57:36 -07:00
James Lu
704d5a6fc2 copyright year updates
From: ee62782603
2015-04-25 23:22:58 -07:00
James Lu
4a46c1b88b DDG: Initial addition of 'zeroclick' command (Closes #24)
From: 285948a47d
2015-02-08 22:15:46 -05:00
James Lu
d26e8ff93d DDG: reintroduce support for multiple results
From: 3c5cc19ba7
2015-01-17 02:40:15 -05:00
James Lu
94c582a4a0 DDG/FML/Isup: work towards PEP8 compliancy
Skipping the config options in config.py since the indented version
looks just as bad (not enough space to write the text without making
it use 5 lines).

From: 4a62b4ad13
2014-12-27 11:38:01 -08:00
James Lu
7ecd98f29c .
From: 6c166d1555
2014-12-19 22:51:56 -08:00
James Lu
d3c77bbc72 DDG: fill in __init__.py
From: e9d9167650
2014-12-19 22:44:45 -08:00
James Lu
7b40bd4fdb DDG: bugfix for older versions of beautifulsoup4
From: ad0a5dd665
2014-12-18 17:21:08 -08:00
James Lu
41db069581 README updates [skip ci]
From: 826bcf9eb1
2014-12-18 16:36:22 -08:00
James Lu
d462b09dd7 DDG: better exception handling
From: d2f1f32896
2014-12-18 16:25:12 -08:00
James Lu
1a6e0127bd DDG: fix code handling, remove regex parsing
From: 64c29496df
2014-12-15 17:28:06 -08:00
James Lu
9298b71732 DDG: attempt at simplify code
From: b62249c557
2014-12-14 21:55:15 -08:00
James Lu
be3112197b DDG: bugfix
From: ad8931ad73
2014-12-14 20:00:43 -08:00
James Lu
f627837496 DDG/PkgInfo: Update tests
From: f73028a0ed
2014-12-11 18:39:59 -08:00
James Lu
f8d5afbb46 DDG: strip ads better + skip zeroclick info
From: 625ef777cd
2014-12-11 07:49:09 -08:00
James Lu
5d0de2d44e DDG: remove unused variable
From: 3c6126fbc4
2014-12-10 19:29:53 -08:00
James Lu
3459d23a4d DDG: First commit
From: f16f666ebd
2014-12-10 18:59:51 -08:00