-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.htm
More file actions
41 lines (39 loc) · 2.28 KB
/
README.htm
File metadata and controls
41 lines (39 loc) · 2.28 KB
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
<h1 id="installation">Installation</h1>
<ol style="list-style-type: decimal">
<li><p>Run http server</p>
<div class="sourceCode"><pre class="sourceCode python"><code class="sourceCode python">.<span class="op">/</span>server.py</code></pre></div></li>
<li><p>Make sure there are 3 files named <em>to_upload</em>, <em>scheduler_data</em> and <em>new</em> in <em>data</em> directory.</p>
<pre><code>data/
|-- to_upload
|-- scheduler_data
|-- new</code></pre>
<p>Make sure that the <em>data/scheduler_data</em> file contains at least following line.</p>
<pre><code>[]</code></pre></li>
<li><p>Plan scheduler and uploader to run every day. For example add this line into crontab:</p>
<pre><code>0 4 * * * <path_to_this_dir>/day_routine.sh >> <path_to_this_dir>/day_routine.log 2>&1</code></pre></li>
<li><p>Install <em>chrome extension</em></p></li>
</ol>
<h1 id="architecture-overview">Architecture overview</h1>
<pre><code>utils.py - some handy functions
conf.json - configuration of py files
get_quizlet_access_token.php - script for obtaining access token thats written in config file
chrome-extension -> server.py -> data/new - add new keyword here
-> quizlet.py -> recreate new set
cron -> day_routine.sh
|
|
| data/new
| |
| |
|---> scheduler.py <-> data/scheduler_data
| --> data/to_upload
|
|---> uploader.py <-- data/to_upload
--> quizlet.py --> create daily set
--> remove new set
</code></pre>
<h1 id="usage">Usage</h1>
<h2 id="chrome-extension">Chrome extension</h2>
<p>This extension will <strong>inject</strong> it's icons into <em>slovnik.cz</em>. If you click these icons, the word pair will be added into your wordlist.</p>
<p>You can click the extension <strong>icon in the top of the chrome</strong> and you well be able to add your own pair into wordlist.</p>
<p>It is good idea to <strong>configure search engines</strong> in chrome for fast searching in slovnik.cz.</p>