jaryaman / propNews

Making the news proportionate to global priorities
GNU Affero General Public License v3.0
0 stars 0 forks source link

get_articles.get_url_content always returns '' #20

Closed jaryaman closed 5 years ago

jaryaman commented 5 years ago

get_articles.get_url_content() never appears to be able to get URL contents. I performed the following experiment. In get_articles.py, I added the lines

content = get_url_content(url_path, url)
                if len(content) > 0:
                    pass

and set a breakpoint at pass. The code never entered the line 'pass' after searching > 100 articles. This doesn't seem right.

jaryaman commented 5 years ago

Fixed in https://github.com/jaryaman/propNews/pull/22