-
Notifications
You must be signed in to change notification settings - Fork 1
/
khan_academy.sh
39 lines (36 loc) · 1.28 KB
/
khan_academy.sh
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
#!/bin/bash
url="https://www.khanacademy.org/api/v1/topic/"
first_topic='arithmetic'
url=$url$first_topic
echo $url
echo " "
echo " "
sleep 5s
curl $url > khan.json
python khan_academy.py
echo " "
echo " "
for i in {0..51}
do
url="https://www.khanacademy.org/api/v1/topic/"
array=('pre-algebra' 'early-math' 'algebra' 'geometry' 'trigonometry' 'precalculus'
'statistics-probability' 'ap-calculus-ab' 'ap-calculus-bc' 'multivariable-calculus'
'differential-calculus' 'linear-algebra' 'cc-kindergarten-math' 'cc-1st-grade-math'
'cc-2nd-grade-math' 'cc-third-grade-math' 'cc-fourth-grade-math' 'cc-fifth-grade-math'
'cc-sixth-grade-math' 'cc-seventh-grade-math' 'cc-eighth-grade-math' 'engageny'
'math-1-2-3' 'biology' 'physics' 'chemistry' 'cosmology-and-astronomy' 'health-and-medicine'
'electrical-engineering' 'organic-chemistry' 'ap-physics-1' 'ap-physics-2' 'ap-chemistry'
'ap-biology' 'computing' 'computer-programming' 'computer-science' 'hour-of-code' 'world-history'
'us-history' 'ap-us-history' 'art-history' 'grammar' 'microeconomics' 'macroeconomics'
'core-finance' 'entrepreneurship2' 'sat' 'mcat' 'nclex-rn' 'gmat' 'iit-jee-subject')
url=$url${array[i]}
echo $url
echo " "
echo " "
sleep 5s
curl $url > khan.json
python khan_academy_noheaders.py
echo " "
echo " "
done
exit 0