James Lu
1e7bfed72e
DDG: support !bang links (redirects)
2017-01-20 22:18:25 -08:00
James Lu
2db371a9fa
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
2017-01-20 22:18:21 -08:00
James Lu
0b0c1b59ab
DDG: show all lines of multiline zeroclick replies
...
Thanks to @nathan0 for pointing this out.
2017-01-20 21:51:05 -08:00
James Lu
4915b7713b
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.
2017-01-20 18:57:55 -08:00
James Lu
3729068633
DDG: fix a typo in comments
2017-01-20 18:51:10 -08:00
James Lu
7a6e2f9f97
DDG: rewrite to fix "max results" not working
2017-01-20 18:50:16 -08:00
James Lu
47bb74d7d9
DDG: abstract out a search_core(), as the LastFM plugin will use this later
2017-01-20 18:39:42 -08:00
James Lu
d332e73e48
DDG: make _ddgurl() a static method
2017-01-20 18:18:06 -08:00
James Lu
8187d51cef
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.
2017-01-20 18:14:07 -08:00
James Lu
5431f25e0a
DDG: log search URL to DEBUG
2015-11-01 10:48:56 -08:00
James Lu
52ec05a041
DDG: remove broken error catching (irc isn't in the _ddgurl namespace)
2015-11-01 10:24:03 -08:00
James Lu
e9edceb735
DDG: strip Sponsored links from search results
2015-08-22 18:32:04 -07:00
James Lu
ee62782603
copyright year updates
2015-04-25 23:22:58 -07:00
James Lu
285948a47d
DDG: Initial addition of 'zeroclick' command ( Closes #24 )
2015-02-08 22:15:46 -05:00
James Lu
3c5cc19ba7
DDG: reintroduce support for multiple results
2015-01-17 02:40:15 -05:00
James Lu
4a62b4ad13
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).
2014-12-27 11:38:01 -08:00
James Lu
ad0a5dd665
DDG: bugfix for older versions of beautifulsoup4
2014-12-18 17:21:08 -08:00
James Lu
d2f1f32896
DDG: better exception handling
2014-12-18 16:25:12 -08:00
James Lu
64c29496df
DDG: fix code handling, remove regex parsing
2014-12-15 17:28:06 -08:00
GLolol
b62249c557
DDG: attempt at simplify code
2014-12-14 21:55:15 -08:00
GLolol
ad8931ad73
DDG: bugfix
2014-12-14 20:00:43 -08:00
GLolol
625ef777cd
DDG: strip ads better + skip zeroclick info
2014-12-11 07:49:09 -08:00
James Lu
3c6126fbc4
DDG: remove unused variable
2014-12-10 19:29:53 -08:00
James Lu
f16f666ebd
DDG: First commit
2014-12-10 18:59:51 -08:00