Skip to content

Commit

Permalink
Fixes fossasia#60 cryptic ending removed in yahoo results (fossasia#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilrayaprolu authored and mariobehling committed Jul 13, 2017
1 parent 7b387c8 commit 676dc4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def yahoo_search(query):
r = y.get('href')
f = r.split('RU=')
e = f[-1].split('/RK=0')
u = e[0].replace('%3a', ':').replace('%2f', '/').replace('%28', '(').replace('%29', ')').replace('%3f',
g = e[-1].split('/RK=1')
u = g[0].replace('%3a', ':').replace('%2f', '/').replace('%28', '(').replace('%29', ')').replace('%3f',
'?').replace(
'%3d', '=').replace('%26', '&').replace('%29', ')').replace('%26', "'").replace('%21', '!').replace(
'%23', '$').replace('%40', '[').replace('%5b', ']')
Expand Down

0 comments on commit 676dc4e

Please sign in to comment.