Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deeplink dead? #20

Open
sciatro opened this issue Mar 11, 2017 · 0 comments
Open

deeplink dead? #20

sciatro opened this issue Mar 11, 2017 · 0 comments

Comments

@sciatro
Copy link

sciatro commented Mar 11, 2017

It looks to me like WebResult's deeplink might not be working / expects an older version of the API.

Currently it seems to be empty, always. Actually getting deep links (frankly, "real" links vs the Bing redirects) would be helpful. It looks do-able. This split based code is nasty a workable proof of concept:

import urllib import unquote
from urlparse import urlparse

def real_url(api_url):
    q = urlparse(api_url).query
    encoded_url = q.split('&r=', 1)[1].split('&p=', 1)[0]
    return unquote(encoded_url)

^^ py2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant