/
settings.py
53 lines (43 loc) · 1.03 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
import os.path
import sys
CURRENCY_API_KEY_FILE = 'currency_api_key'
if not os.path.exists(CURRENCY_API_KEY_FILE):
print "Create a file called %s and put your exchangerate-api.com API key in it." % CURRENCY_API_KEY_FILE
print "To get a (free) API key, go to http://exchangerate-api.com/api-key"
sys.exit(1)
CURRENCY_CONVERSION_API_KEY = open(CURRENCY_API_KEY_FILE).read().strip()
STORE_URL_BASE = 'https://store2.adobe.com/cfusion/store/html/index.cfm?store=OLS-%s&event=displayCatalog'
PATHS = [
'US',
'UK',
'AT',
'BE',
'EU',
'DK',
'FI',
'FR',
'DE',
'IE',
'SE',
'CH',
'NO',
]
BASE_CURRENCY = 'usd'
CURRENCIES = {
u'£': 'gbp',
u'US $': 'usd',
u'€': 'eur',
u'CHF': 'chf',
u'DKK': 'dkk',
u'NOK': 'nok',
u'SEK': 'sek',
}
REMOVE_FROM_STORE_NAMES = [
u'Adobe Store - ',
u'Adobe Store – ',
u'Adobe Download Store - ',
u'Adobe Online Store - ',
u'Boutique en ligne Adobe - ',
]
OUTPUT_FILE = "adobe_prices.json"