Last active
June 20, 2024 20:55
-
-
Save jsoma/794138a5df823ae6ddec661c803c1610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Rename the folder | |
Rename-Item -Path "C:\Users\nmradmin\Desktop\hands_on_classes\20240621-friday-scraping-license-and-violations-data-with-browser-automation-tools" -NewName "20240621-friday-scraping-licenses" | |
# 2. Download and extract the ZIP file | |
Invoke-WebRequest -Uri "https://github.com/jsoma/ire24-scraping/archive/refs/heads/main.zip" -OutFile "C:\Users\nmradmin\Desktop\hands_on_classes\20240621-friday-scraping-licenses\main.zip" | |
Expand-Archive -Path "C:\Users\nmradmin\Desktop\hands_on_classes\20240621-friday-scraping-licenses\main.zip" -DestinationPath "C:\Users\nmradmin\Desktop\hands_on_classes\20240621-friday-scraping-licenses" -Force | |
Remove-Item -Path "C:\Users\nmradmin\Desktop\hands_on_classes\20240621-friday-scraping-licenses\main.zip" | |
# 3. Move batch file to desktop | |
Move-Item -Path "C:\Users\nmradmin\Desktop\hands_on_classes\20240621-friday-scraping-licenses\ire24-scraping-main\license-scraping.bat" -Destination "C:\Users\nmradmin\Desktop\license-scraping.bat" | |
# 3. Create a virtual environment and install Jupyter Notebook and ipykernel==6.28.0 | |
Set-Location -Path "C:\Users\nmradmin\Desktop\hands_on_classes\20240621-friday-scraping-licenses" | |
python -m venv env | |
& ".\env\Scripts\Activate.ps1" | |
pip install jupyter notebook ipykernel==6.28.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment