Skip to content

Commit

Permalink
IMF WEO page has changed also for WEO-GROUPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
eraviart committed Apr 28, 2017
1 parent 288fbc9 commit efae761
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dlstats/fetchers/imf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,11 +1080,11 @@ def weo_urls(self):
hrefs = html.xpath("//div[@id = 'content-main']/h4/a['href']")
links = [href.values() for href in hrefs]

#The last links of the WEO webpage lead to data we dont want to pull.
links = links[:-16]
#These are other links we don't want.
links.pop(-8)
links.pop(-10)
# #The last links of the WEO webpage lead to data we dont want to pull.
# links = links[:-16]
# #These are other links we don't want.
# links.pop(-8)
# links.pop(-10)
links = [link[0][:-10]+'download.aspx' for link in links]

output = []
Expand Down

0 comments on commit efae761

Please sign in to comment.