Skip to content

Commit

Permalink
Small updates. Hotfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLemayian committed Jun 14, 2017
1 parent 3ce71fa commit a7d25a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions healthtools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

# sites to be scraped
SITES = {
"DOCTORS": "http://medicalboard.co.ke/online-services/retention/?currpage={}",
"FOREIGN_DOCTORS": "http://medicalboard.co.ke/online-services/foreign-doctors-license-register/?currpage={}",
"CLINICAL_OFFICERS": "http://clinicalofficerscouncil.org/online-services/retention/?currpage={}",
"TOKEN_URL" : "http://api.kmhfl.health.go.ke/o/token/"
'DOCTORS': 'http://medicalboard.co.ke/online-services/retention/?currpage={}',
'FOREIGN_DOCTORS': 'http://medicalboard.co.ke/online-services/foreign-doctors-license-register/?currpage={}',
'CLINICAL_OFFICERS': 'http://clinicalofficerscouncil.org/online-services/retention/?currpage={}',
'TOKEN_URL': 'http://api.kmhfl.health.go.ke/o/token/'
}

AWS = {
"aws_access_key_id": os.getenv("MORPH_AWS_ACCESS_KEY_ID"),
"aws_access_key_id": os.getenv("MORPH_AWS_ACCESS_KEY"),
"aws_secret_access_key": os.getenv("MORPH_AWS_SECRET_KEY"),
"region_name": os.getenv("MORPH_AWS_REGION"),
"region_name": 'eu-west-1',
# Doctors document endpoint
"cloudsearch_doctors_endpoint": "http://doc-cfa-healthtools-ke-doctors-m34xee6byjmzcgzmovevkjpffy.eu-west-1.cloudsearch.amazonaws.com/",
# Clinical document endpoint
Expand Down
2 changes: 1 addition & 1 deletion healthtools/scrapers/base_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self):
self.s3 = boto3.client("s3", **{
"aws_access_key_id": AWS["aws_access_key_id"],
"aws_secret_access_key": AWS["aws_secret_access_key"],
"region_name": AWS["region_name"],
"region_name": 'eu-west-1',
})

def scrape_site(self):
Expand Down

0 comments on commit a7d25a4

Please sign in to comment.