-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlingodog.conf
40 lines (31 loc) · 1.33 KB
/
lingodog.conf
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
[Mandatory]
# Datadog credential: https://app.datadoghq.com/account/settings#api
api_key = <your_api_key>
# Duolingo credentials
username = <duolingo_username>
password = <duolingo_password>
[Detailed metric collection]
# Collects 3 more metrics:
# xp by language, language_level and missing xp until next level
# Requires the selenium module: `sudo pip install selenium`
language_details = False
# If language_details = True, browser name & executable_path are required for Selenium:
# a) browser should exactly match one of the following names: PhantomJS/Chrome/Firefox.
# b) driver executable:
# - Firefox: no executable needed. Just install Firefox on your machine. executable_path = .
# - Chrome: install Chrome + chromedriver (https://sites.google.com/a/chromium.org/chromedriver/home)
# - PhantomJS: just get a PhantomJS executable (https://github.com/eugene1g/phantomjs/releases)
browser = PhantomJS
executable_path = ./webdrivers/phantomjs
[Optional]
# Metric names
total_xp = duolingo.total_xp
# ^ always collected
language_xp = duolingo.language_xp
language_level = duolingo.language_level
language_xp_for_next_level = duolingo.language_xp_for_next_level
# ^ these 3 metrics are only collected with language_details
# Logging
log_level = INFO
log_filepath = lingodog.log
# ^ set log_level to DEBUG to get more information.