From d2b3f67e42010132017723710b3aba80aaa30c86 Mon Sep 17 00:00:00 2001 From: rav4s Date: Sat, 6 Feb 2021 15:48:25 -0600 Subject: [PATCH 1/4] Added link to git repo --- Web_Dashboard/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web_Dashboard/templates/index.html b/Web_Dashboard/templates/index.html index 4eb2723..a7a8326 100644 --- a/Web_Dashboard/templates/index.html +++ b/Web_Dashboard/templates/index.html @@ -13,7 +13,7 @@
- iFixit Repairability Dashboard + iFixit Repairability Dashboard
From 68221f113ba8435fe616146ab529a7a251e19687 Mon Sep 17 00:00:00 2001 From: rav4s Date: Sat, 6 Feb 2021 16:33:40 -0600 Subject: [PATCH 2/4] Added readme file --- readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e211733 --- /dev/null +++ b/readme.md @@ -0,0 +1,15 @@ +# iFixit-Repairability-Dashboard + +Pulls repairability scores for various devices from iFixit, which are then displayed on a website in a few categories. + +## What does each file do? + +The scraper.py file scrapes iFixit's webpages at https://www.ifixit.com/smartphone-repairability, https://www.ifixit.com/laptop-repairability, and https://www.ifixit.com/tablet-repairability. It then takes the html and parses it to find three fields for each device: Manufacturer, Device Model, and Repairability Score. The data for these three fields is then written to one of three csv files (laptop.csv, smartphone.csv, and tablet.csv) based on the device type. + +Once these files are stored, you can run Web_Dashboard/app.py, which starts a waitress server that serves webpages for each repairability score. The webpage templates are located in the Web_Dashboard/templates directory and the stylesheets are located in the Web_Dashboard/static directory. The webserver will be accessible at 0.0.0.0:1235. + +## Live Demo + +A live demo of this project is available at repairability.yeetpc.com + +Note: this project is neither sponsored by nor affiliated with iFixit. From cf690fdb08cf47b83243c865be9987bd64583506 Mon Sep 17 00:00:00 2001 From: rav4s Date: Sat, 6 Feb 2021 16:34:37 -0600 Subject: [PATCH 3/4] Fixed live demo link --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index e211733..a61d3b7 100644 --- a/readme.md +++ b/readme.md @@ -10,6 +10,6 @@ Once these files are stored, you can run Web_Dashboard/app.py, which starts a wa ## Live Demo -A live demo of this project is available at repairability.yeetpc.com +A live demo of this project is available at https://repairability.yeetpc.com Note: this project is neither sponsored by nor affiliated with iFixit. From 3f732f52b92bc7f0f40a9d7fc90a1c5321edb1d1 Mon Sep 17 00:00:00 2001 From: rav4s Date: Sun, 28 Mar 2021 12:12:41 -0500 Subject: [PATCH 4/4] Added a rickroll --- Web_Dashboard/app.py | 6 ++++- Web_Dashboard/js/redirect.js | 1 + Web_Dashboard/templates/rickroll.html | 32 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Web_Dashboard/js/redirect.js create mode 100644 Web_Dashboard/templates/rickroll.html diff --git a/Web_Dashboard/app.py b/Web_Dashboard/app.py index 8594bb8..2a6d829 100644 --- a/Web_Dashboard/app.py +++ b/Web_Dashboard/app.py @@ -443,6 +443,10 @@ def ten(): return render_template('ten.html', smartphone=ten_smartphone, tablet=ten_tablet, laptop=ten_laptop) +@app.route('/rickroll') +def index(): + return render_template('rickroll.html') + if __name__ == '__main__': from waitress import serve - serve(app, host="0.0.0.0", port=1235) \ No newline at end of file + serve(app, host="0.0.0.0", port=1235) diff --git a/Web_Dashboard/js/redirect.js b/Web_Dashboard/js/redirect.js new file mode 100644 index 0000000..276d983 --- /dev/null +++ b/Web_Dashboard/js/redirect.js @@ -0,0 +1 @@ +setTimeout(() => { location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"; }, 1000); diff --git a/Web_Dashboard/templates/rickroll.html b/Web_Dashboard/templates/rickroll.html new file mode 100644 index 0000000..0603759 --- /dev/null +++ b/Web_Dashboard/templates/rickroll.html @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + Rickrolled! +

Rickrolled!

+ + +