Open justinmayer opened 5 years ago
Hey; thanks for checking this out! The DDG markup has indeed changed. When I looked into this before, I actually thought it was a lost cause—that the URLs were no longer available obviously in the HTML.
But it looks like there might be a way to do it by getting that href
attribute and decoding the URL parameters. Cool! Any interest in giving that a shot?
Hey Adrian! I just came across AutoLink, and being a big fan of Beets, I immediately needed to try it out. 😁
When I type the following, move the cursor to the last line, and tap
<leader>ac
…… the returned URL is
None
(and it's alwaysNone
, for any search terms):I opened a Python REPL and tested the underlying
get_link
function to retrieve the result for the"beets music"
search terms, and the resultinghtml
variable seems to contain the expected search result:Perhaps the markup has changed, and the regex needs to be updated? What do you think?