Closed redshiftzero closed 4 years ago
thanks for reviewing! the last commit (e8ec6bc0a696695ca5935fcc5aeff067aceb9da7) is the new change here, the prior commits are just rebasing on the latest
@redshiftzero This latest change looks great. I can merge once this is up-to-date with the base branch.
Closes #269. Followup to #262.
This PR:
requests
, parses the page content usinglxml
, then sees if there is anonion-location
meta tagThe easiest way to test once on this branch is to:
make dev-scan
http://127.0.0.1:8000/api/v1/sites/
onion_available
. Otherwise, Propublica should haveonion_available
as true, and techcrunch should haveonion_available
as false.