From 7bd3fb1de671373b982a4779d8937ffa369f0ba7 Mon Sep 17 00:00:00 2001
From: AnsonLai <8443835+AnsonLai@users.noreply.github.com>
Date: Mon, 23 May 2022 12:06:03 -0700
Subject: [PATCH 1/3] Create LICENSE
---
LICENSE | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..be47c82
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 AnsonLai
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
From 1d96f3ec0297bac16065ddb6dcf5df9290cea442 Mon Sep 17 00:00:00 2001
From: AnsonLai <8443835+AnsonLai@users.noreply.github.com>
Date: Mon, 23 May 2022 13:42:18 -0700
Subject: [PATCH 2/3] Update README.md
---
README.md | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 7b1002e..3446c26 100644
--- a/README.md
+++ b/README.md
@@ -6,11 +6,12 @@ This script will download the Tesla Service Manual onto a local doc folder for o
1. Go into `secrets.py` and fill out `tesla_account_email` and `tesla_account_password` with your account and password.
2. Go into `scrape.py` and enter the index URL of the manual you want saved. It is defaulted to the Model 3.
-3. Setup selenium for Python. To use the required stealth module, you must use the Chromium webdriver. See tutorial at:
-4. Pip download the required packages including:
- 1. `selenium-stealth`
- 2. `beautifulsoup4`
-5. Run `scrape.py`
+3. Setup Python 3. See tutorial at:
+4. Setup selenium for Python. To use the required stealth module, you **must** use the Chromium webdriver. See tutorial at:
+5. Pip install the required packages (including `requests`, `selenium`, `selenium-stealth`, and `beautifulsoup4`). On windows, you run the following commands on command prompt (CMD):
+ 1. `cd C:\Users\Anson\Desktop\TeslaServiceManualScraper` [template, the path should go wherever you saved this readme]
+ 2. `run pip install -r requirements.txt`
+6. Run `scrape.py` by typing `python scrape.py`
## Tips
@@ -31,4 +32,4 @@ This script will download the Tesla Service Manual onto a local doc folder for o
* jquery.magnific-popup.min.js
* jquery-3.5.1.min.js
* lunr.js
- * search.js
\ No newline at end of file
+ * search.js
From 8152b1e52d61863ebdb4470ea8d5344f9bd77af7 Mon Sep 17 00:00:00 2001
From: AnsonLai <8443835+AnsonLai@users.noreply.github.com>
Date: Mon, 23 May 2022 13:59:04 -0700
Subject: [PATCH 3/3] Update README.md
Warning that this is Windows only.
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3446c26..336b637 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Tesla Service Manual Scraper
-This script will download the Tesla Service Manual onto a local doc folder for offline access.
+This script will download the Tesla Service Manual onto a local doc folder for offline access. This is geared for Windows only.
## Setup
@@ -33,3 +33,4 @@ This script will download the Tesla Service Manual onto a local doc folder for o
* jquery-3.5.1.min.js
* lunr.js
* search.js
+* This script can likely be modified for MacOS easily, but I'm not familiar with how to install Selenium and chromedriver on MacOS. **Windows only for now.**