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
""" | |
CLI tool and library for fetching content via Chrome driven by Selenium. Has some tricks up its sleeve to evade | |
mechanized browser detection. | |
Pedram Amini | |
https://pedramamini.com | |
Requirements: | |
pip install selenium | |
pip install webdriver_manager |
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
#!/bin/bash | |
# Pedram Amini | |
# https://pedramamini.com | |
run_command() { | |
local cmd="$1" | |
local input_file="$2" | |
local output_file="$3" |
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
# You can export a Copilot Chat session in Visual Studio Code | |
# to a JSON file via `Ctrl+Shift+P | Chat: Export Session...` | |
# or by choosing `View > Command Palette | Chat: Export Session...` | |
# Inspired by https://github.com/Marijn-Bergman/copilot-chat-export-formatter | |
import sys | |
import json | |