Closed gjost closed 2 years ago
ui.encyc.article_urls_titles()
cannot get a response from encycfront
. It gets a 403
from encycfront
:
>>> from django.conf import settings
>>> import requests
>>> from ui import encyc
>>> url = '%s/api/0.1/articles/' % settings.ENCYC_BASE
>>> url
'https://encyclopedia.densho.org/api/0.1/articles/'
>>> r = requests.get(url, timeout=10)
>>> r.status_code,r.reason
(403, 'Forbidden')
elinks
on the same server returns the API call just fine:
elinks https://encyclopedia.densho.org/api/0.1/articles/
Looks like this was getting blocked by CloudFlare rules set up to repel the First Russian Bot Attack of 2021 (that we know of).
AttributeError at _browse_topics4.zip