https://github.com/galenreich/pyodide-cli-test
Testing using command line tools with Pyodide
https://github.com/galenreich/pyodide-cli-test
command-line pyodide
Last synced: 5 months ago
JSON representation
Testing using command line tools with Pyodide
- Host: GitHub
- URL: https://github.com/galenreich/pyodide-cli-test
- Owner: GalenReich
- License: mit
- Created: 2023-12-06T15:25:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T16:28:18.000Z (over 2 years ago)
- Last Synced: 2023-12-06T17:31:00.759Z (over 2 years ago)
- Topics: command-line, pyodide
- Language: HTML
- Homepage: https://galenreich.github.io/pyodide-cli-test/
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyodide-cli-test
This is a repo for testing using command line tools with Pyodide. It demonstrates using the Bellingcat [Reddit Post Scraping Tool](https://github.com/bellingcat/reddit-post-scraping-tool/).
## Instructions
>[!IMPORTANT]
>Due to Cross Origin Resource Sharing (CORS) restrictions implemented by browsers, for this test to work, CORS checks must be turned off.
>
>You can do this in Google Chrome with the [Cross Domain - CORS](https://chromewebstore.google.com/detail/cross-domain-cors/mjhpgnbimicffchbodmgfnemoghjakai) extension. For this demo it is recommended to just disable CORS checking for `reddit.com`.
Run `python3 -m http.server` in the root directory.
Navigate to the hosted address, usually `http://localhost:8000`
Open the browser console (`Ctrl-Shift-I` in Google Chrome) to view the output.