aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2020-11-27 18:57:16 -0600
committerAnthony Wang2020-11-27 18:57:16 -0600
commit47e6933a6a142040caa615f524aa6336c5f37385 (patch)
tree480358853a05d71fbd430452394d74c9d45b16e3
parente5a0b833ea962c91fda655a2f8397a8aa58a1d53 (diff)
Rename to mkbinder.py
-rw-r--r--mkbinder.py (renamed from make_binder.py)0
-rw-r--r--stars.txt3
-rw-r--r--test.py18
3 files changed, 3 insertions, 18 deletions
diff --git a/make_binder.py b/mkbinder.py
index 2c02ef5..2c02ef5 100644
--- a/make_binder.py
+++ b/mkbinder.py
diff --git a/stars.txt b/stars.txt
index b4cb0f7..32ea747 100644
--- a/stars.txt
+++ b/stars.txt
@@ -1,2 +1,5 @@
https://en.wikipedia.org/wiki/Hertzsprung%E2%80%93Russell_diagram
https://astronomy.swin.edu.au/cosmos/h/hertzsprung-russell+diagram
+https://www.britannica.com/science/star-astronomy/Stellar-spectra
+https://courses.lumenlearning.com/astronomy/chapter/the-spectra-of-stars-and-brown-dwarfs/
+https://en.wikipedia.org/wiki/Light_curve
diff --git a/test.py b/test.py
deleted file mode 100644
index a781051..0000000
--- a/test.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# import pdfkit
-import weasyprint
-import re
-
-file = open("stars.txt", "r")
-links = file.readlines()
-for link in links:
- print("Downloading: " + link)
- # print(re.sub(r'(?u)[^-\w.]', '', link[5:])+".pdf")
- try:
- # weasyprint seems faster?
- # pdfkit.from_url(link, re.sub(r'(?u)[^-\w.]', '', link[5:])+".pdf")
- pdf = weasyprint.HTML(link).write_pdf()
- open(re.sub(r'(?u)[^-\w.]', '', link[5:]) + ".pdf", 'wb').write(pdf)
- except:
- # Ignore exceptions
- # Probably not a good idea
- pass